-
Notifications
You must be signed in to change notification settings - Fork 738
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
Deployment labels and annotations are not duplicated #329
Comments
Labels were removed due to jenkins-x/jx#3920 Flagger does copy the pods labels and annotations but not the deployment one, what's your use case for annotations? |
We have an OPA rule that prevents us from making a deployment without a specific label. But I believe we don't need that rule anymore so we will remove it. |
Sorry to dig this up but I ran into an issue with this. I wonder if we could revisit this and to use a whitelist of labels instead of not copying any? |
We also have this issue. We read deployment labels to pull some configurations. When -primary resources are created, Flagger doesn't move over old labels and hence we get into issues. There is a workaround though, we can have a 2 step approach. 1 creating canary with same version 2nd creating canary with new version. This solves the problem but looks like a hack than recommended solution. |
Same issue here, problems with not having the labels set on deployments. In our metrics dashboard, we want to parse data from ReplicaSet based on labels, but because the labels are not set on the Deployment object, we don't see any of our Canary deployments. We have to hard-code the name of our Canary services in the dashboard to show them. Not very friendly on a scalability term. A whitelist system would great. |
I think we can have a |
Makes sense. I think I can take a stab at this. |
#709 will allow you to copy Kubernetes labels, but what about annotations? |
Hi @jean-sandberg, that's a good point. When I opened #709 it was to solve the labels problem caused by the gitops operators. |
@worldtiki you could add the annotations to your PR. Thanks! |
Yes, of course. |
We need to reopen this, still not working for us. |
When applying a canary manifest the deployment clone named -primary is missing the fields labels and annotation from the original one.
Reading the documentation about labels and annotations, one might argue that labels are meant to be identifying and thus not-copied in the new deployment (although in my case I would like them duplicated or at least altered but present) but I can't think of a reason for ignoring annotations.
The text was updated successfully, but these errors were encountered: