-
Notifications
You must be signed in to change notification settings - Fork 26
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
BUG: deploying kustomizationRefs fails when resources are not ordered correctly #568
Comments
Thanks @rbjorklin That might have unintended consequences. I looked at the helm you started from, and there CRDs are listed before anything else. Sveltos essentially tries in the order resources are provided to it and stop when there is an error. Would you mind changing this from bug (as of today that is the expected behaviour) to feature request? I am thinking on adding "ContinueOnError" field. That would be false by default (so on error Sveltos would stop), but if true Sveltos will continue to next resource. It will then probably come in v0.32.0. Thank you again for reporting issues and enhancement requests! |
Ah. I guess because I split each resource into its own file I have brought this problem onto myself... My workflow is as follows:
I guess my issue should instead be reported against the I'm okay with this outcome however if you still want to continue the conversation I think you as a repo owner can convert a GH issue to a discussion. If you don't care to go down this rabbit hole please just go ahead and close this when you see it. Thanks for your time @gianlucam76! ❤️ |
Thank you. For now I will close this (as it is current expected behaviour) and open a Poll. |
First of all: big thanks for fixing #565! That enabled me to get a bit further!
Problem Description
My deployment is now failing with the following error:
This error presents itself as the
Alertmanager
appears before the corresponding CRD in mykustomization.yaml
file. I managed to work around this by patching the ksort kubectl plugin but expecting everyone who uses Kustomize to sort their list of resources seems a bit inconvenient. Is there a way the apply could continue with the next resource in the list allowing the state to eventually reconcile?System Information
CLUSTERAPI VERSION:
v1.7.2
SVELTOS VERSION:
0.31.0
KUBERNETES VERSION:
1.30.1
The text was updated successfully, but these errors were encountered: