Skip to content

d2iq-labs/kubectl-betterwait

Repository files navigation

kubectl-betterwait

The motivation for this project is an old outstanding kubectl feature request.

This can be used either as kubectl plugin or as container. The plugin uses the arguments from kubectl wait to first wait for the specified resources to exist by running kubectl get and then runs kubectl wait.

kubectl plugin

kubectl betterwait --for=condition=established --timeout=1m crds/clusters.cluster.x-k8s.io

container image

docker run -it                                \
  -v $KUBECONFIG:/kubeconfig                  \
  --env KUBECONFIG=/kubeconfig                \
  ghcr.io/d2iq-labs/kubectl-betterwait:v0.2.0 \
  --for=condition=established --timeout=1m crds/clusters.cluster.x-k8s.io