Skip to content

Commit

Permalink
fixes for kind config (#438)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Harrison <[email protected]>

Co-authored-by: Simon Harrison <[email protected]>
  • Loading branch information
SimonHarrisonSH and SimonHarrisonSH authored Jun 20, 2022
1 parent e28e9e0 commit 33f4474
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/kind/test/e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ create_kind_cluster() {
kind create cluster --name "$CLUSTER_NAME" --config test/kind-config.yaml --image "kindest/node:$K8S_VERSION" --wait 60s

echo 'Copying kubeconfig to container...'
docker cp /root/.kube/config ct:/root/.kube/config
docker_exec mkdir /root/.kube
docker cp /root/.kube/kind-config ct:/root/.kube/config

docker_exec kubectl cluster-info
echo
Expand Down
2 changes: 1 addition & 1 deletion examples/kind/test/kind-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker

0 comments on commit 33f4474

Please sign in to comment.