konstraint icon indicating copy to clipboard operation
konstraint copied to clipboard

Allow to add metadata like annotations to constraint automatically

Open Mattes83 opened this issue 1 year ago • 2 comments

Hi,

we recently switched to konstraint and I think this great tool will save us a lot of work in the future.

Unfortunately there is a small drawback. We are using argo cd to rollout new constraints and therefore we need an annotation on the constraints, see https://argo-cd.readthedocs.io/en/stable/user-guide/sync-options/#skip-dry-run-for-new-custom-resources-types

If I see it correctly there is no way to do this with konstraint, right?

Mattes83 avatar Aug 30 '22 11:08 Mattes83

At the moment there is not. It has been discussed briefly in the past, but has yet to be implemented.

Relates to: https://github.com/plexsystems/konstraint/issues/236

jpreese avatar Aug 30 '22 11:08 jpreese

I opened a pull request to address this. Do you want to have a look? #324

Mattes83 avatar Sep 06 '22 04:09 Mattes83

fixed by https://github.com/plexsystems/konstraint/pull/324

Mattes83 avatar Oct 19 '22 12:10 Mattes83