When CRDs and CRs are deployed in the same apply, the apply will fail due to race condition #1179
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What would you like to be added:
I would like kubectl to optionally wait for CustomResourceDefinitions to be established before attempting to apply a Custom Resource that is dependent on it.
A suitable workflow is to just apply all CRDs, do the equivalent of ```kubectl wait --for=condition=established -f crds.yaml`` and then apply other resources
Why is this needed:
When deploying CRDs and CRs in the same apply, the apply of CRs will initially fail. Although you can then run another apply which will then work, this is messy
See kubernetes-sigs/kustomize#3502
The text was updated successfully, but these errors were encountered: