few-psychiatrist-67663
09/07/2023, 8:11 PM# kubectl -n cattle-system exec -it helm-operation-w5xvd -- bash
Defaulted container "helm" out of: helm, proxy
> ls
operation000 rancher-webhook-2.0.5-up0.3.5.tgz values-rancher-webhook-2.0.5-up0.3.5.yaml
> cat /usr/local/bin/helm-cmd
#!/bin/sh
set -e
sleep 1
for i in $(seq 1 20); do
if kubectl version >/dev/null 2>&1; then
break
fi
echo Waiting for Kubernetes API to be available
if [ $i = 20 ]; then
echo Timeout waiting for kubernetes
exit 1
fi
sleep 1
done