This commit is contained in:
leonnicolas
2021-11-17 00:20:35 +05:30
committed by GitHub
44 changed files with 101 additions and 98 deletions

View File

@@ -101,7 +101,7 @@ spec:
hostNetwork: true
containers:
- name: kilo
image: squat/kilo:test
image: kiloio/kilo:test
imagePullPolicy: Never
args:
- --hostname=$(NODE_NAME)
@@ -149,7 +149,7 @@ spec:
readOnly: false
initContainers:
- name: install-cni
image: squat/kilo:test
image: kiloio/kilo:test
imagePullPolicy: Never
command:
- /bin/sh

View File

@@ -4,7 +4,7 @@ KIND_CLUSTER="kind-cluster-kilo"
KIND_BINARY="${KIND_BINARY:-kind}"
KUBECTL_BINARY="${KUBECTL_BINARY:-kubectl}"
KGCTL_BINARY="${KGCTL_BINARY:-kgctl}"
KILO_IMAGE="${KILO_IMAGE:-squat/kilo}"
KILO_IMAGE="${KILO_IMAGE:-kiloio/kilo}"
retry() {
local COUNT="${1:-10}"
@@ -118,9 +118,9 @@ create_cluster() {
# Create the kind cluster.
_kind create cluster --name $KIND_CLUSTER --config <(echo "$CONFIG")
# Load the Kilo image into kind.
docker tag "$KILO_IMAGE" squat/kilo:test
docker tag "$KILO_IMAGE" kiloio/kilo:test
# This command does not accept the --kubeconfig flag, so call the command directly.
$KIND_BINARY load docker-image squat/kilo:test --name $KIND_CLUSTER
$KIND_BINARY load docker-image kiloio/kilo:test --name $KIND_CLUSTER
# Create the kubeconfig secret.
_kubectl create secret generic kubeconfig --from-file=kubeconfig="$KUBECONFIG" -n kube-system
# Apply Kilo the the cluster.