diff --git a/hack/kind.sh b/hack/kind.sh new file mode 100644 index 000000000..75a479fd0 --- /dev/null +++ b/hack/kind.sh @@ -0,0 +1,24 @@ +# spin up kind cluster +cat < /tmp/config +chown $USER:$USER /tmp/config +if [[ -d ~/.kube ]] && [[ -f ~/.kube/config ]] +then + export KUBECONFIG=~/.kube/config:/tmp/config + oc config view --flatten > merged-config.yaml + mv merged-config.yaml ~/.kube/config +else + mv /tmp/config ~/.kube/config +fi +chmod go-r ~/.kube/config + +oc config use-context kind-kind