-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Automating a release removes custom annotations #1044
Comments
@sebastianroesch We do go to some trouble not to disturb existing annotations; but clearly, it is far from perfect :-( May we see the full file that was altered (redacted, if necessary)? |
Sure, this is the (slightly redacted) file. The service has only two annotations, which were gone after automating the deployment.
|
Thanks @sebastianroesch . Flux doesn't cope with multiple docs in a file, for things it's trying to update (it's an annoying limitation, which comes about indirectly because we're trying to preserve comments in the YAMLs; see #1019 and https://github.com/weaveworks/flux/blob/master/site/requirements.md). Until we can improve on this situation, if you separate the deployment into its own file, it'll work as advertised. Sorry on flux's behalf for stomping on your yaml! |
After #976, flux handles multidocs, and won't botch this kind of update. |
I clicked on Automate in Weave Cloud, which created a new commit in my repository.
In this comment, the
flux.weave.works/automated: "true"
annotation was added to the service, but my custom annotations were removed.This is the diff:
Please do not modify existing annotations but rather add the required ones.
The text was updated successfully, but these errors were encountered: