-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to wait for CRD Resources to be ready #47
Comments
Some CRDs don't have simple status attributes that can be checked with a single JSONPath ( Like |
I'm really open to integrate something like this into the provider, I have faced the issue several times, and we have built-in "wait for status" for the most common standard resources only. What about using https://github.com/google/cel-go instead of Lua, it is much more embeddable and we won't need a full-blown VM here in a terraform provider :) |
I never personally used CEL but it looks like it could work. |
Hopefully the community can converge on some common status like kubernetes/enhancements#1624 |
Why not mimic the behavior in the https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest#wait_for |
Describe the solution you'd like to see
The ability to give a json path (or something similar) to wait for a certain value before the resource is considered ready.
Describe alternatives you've considered
Local exec to use kubectl and make a dependency chain somehow?
Additional context
Some CRDs have things in their status to determine if they are ready or not. So for example a cert-manager certificate.
Having some sort of way to select the Ready condition and waiting for it to be true.
Making something universal to work with any crd may be a bit difficult.
The text was updated successfully, but these errors were encountered: