You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As a Zarf practitioner, I want to have fine grained control over my wait command in times of automation, complex package deployments, tutorials, etc. I need to get extremely specific in terms of the things that I wait for. The given wait values do not work in certain cases, like for instance for StatefulSets. For these specific use-cases, I need to utilize a JSON path to point to a specific status in the object.
Describe the solution you'd like
Given that I issue a zarf tools wait-for
When the wait value has this pattern '{.x.y}'=z
Then I want zarf to interpret that is a JSONPath wait
Describe alternatives you've considered
Using kubectl
# --for=jsonpath='{}'=value# Wait for the pod "busybox1" to contain the status phase to be "Running".
kubectl wait --for=jsonpath=“{.status.availableReplicas}”=2 sts/test-sts
kubectl wait --for=jsonpath='{.status.phase}'=Running po/busybox1
kubectl wait --for=jsonpath='{.status.containerStatuses[0].ready}'=true po/busybox1
kubectl wait --for=jsonpath='{.spec.containers[0].ports[0].containerPort}'=80 po/busybox1
kubectl wait --for=jsonpath='{.spec.nodeName}'=knode0 po/busybox1
Additional context
Add any other context or screenshots about the feature request here.
Pain Points:
kubectl create -f -<<EOFapiVersion: apps/v1kind: StatefulSetmetadata:
creationTimestamp: nulllabels:
app: test-stsname: test-stsspec:
replicas: 23selector:
matchLabels:
app: test-ststemplate:
metadata:
creationTimestamp: nulllabels:
app: test-stsspec:
containers:
- image: nginxname: nginxresources: {}status: {}EOFzarf tools wait-for sts test-sts exists# Need finer grain control -- I want to know when all the replicas are ready# ./build/zarf-mac-apple tools wait-for sts test-sts '{.status.availableReplicas}'=23
In the examples/scraping-zarf-agent I am deploying an instance of Prometheus which makes the operator deploy a sts. I don't have a wait for the replicas to be ready and I don't want the user to continue until they are
Is your feature request related to a problem? Please describe.
As a Zarf practitioner, I want to have fine grained control over my wait command in times of automation, complex package deployments, tutorials, etc. I need to get extremely specific in terms of the things that I wait for. The given wait values do not work in certain cases, like for instance for StatefulSets. For these specific use-cases, I need to utilize a JSON path to point to a specific status in the object.
Describe the solution you'd like
zarf tools wait-for
'{.x.y}'=z
Describe alternatives you've considered
Using
kubectl
Additional context
Add any other context or screenshots about the feature request here.
Pain Points:
In the examples/scraping-zarf-agent I am deploying an instance of Prometheus which makes the operator deploy a
sts
. I don't have a wait for the replicas to be ready and I don't want the user to continue until they areThe text was updated successfully, but these errors were encountered: