-
Notifications
You must be signed in to change notification settings - Fork 126
Don't require version field in KeptnApp CRD #2461
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
Comments
I think you're using automatic app discovery right? So Keptn will manage the KeptnApp CR for you. To follow GitOps principles, you could take the keptn-generated KeptnApp resource and start to manage it manually in your GitOps repo. For Keptn to not manage it anymore, you just need to remove the Then you can adjust the KeptnApp to your liking and can also manage the version field however you like. |
To me it also seems like in this case the automatic app discovery is used, so the proposed solution by @mowies should do the trick. The version property in the KeptnApp is an essential one, as this is one of the properties that are required to properly wire together all related resources within an application (i.e. KeptnApp, KeptnAppVersion, KeptnWorkload, KeptnWorkloadVersion). But by removing the annotation that @mowies mentioned you should have full control over the KeptnApp and can therefore also add it into a GitOps repository without Keptn overwriting any of the configuration. |
Sorry, for not being more precise. My goal is to have keptn manage the KeptnApp (using automatic discovery), so it can set the version there. I don't want to manually set the version at all. So it boils down to the question how am I supposed to control a single property of an auto-generated CR? My first take at this would be to put the whole KeptnApp CR under my source control, as described above. Thus yielding the issue of having to be responsible for the If using Kustomize I might just patch the single property in, but that would not be possible with helm. |
Ahaa ok thanks for the explanation! |
Awesome! That's perfect. I'm looking forward to this feature being finished. |
The documentation for using deployment checks states:
According to GitOps principles I would put the KeptnApp CR under source control, therefor making it a part of my deployment.
But since the
version
field in the CR is required, every deployment reconciliation would overwrite theversion
determined and set by keptn, resulting in a loop.Please don't require the
version
in the CR, to avoid this conflict.The text was updated successfully, but these errors were encountered: