Skip to content
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

Managed workloads are not compatible with kubectl rollout restart #4495

Open
alex-berger opened this issue Jul 18, 2023 · 1 comment
Open
Labels
bug Something isn't working operator Grafana Agent Operator related variant/operator Related to Grafana Agent Static Operator.

Comments

@alex-berger
Copy link

What's wrong?

Workloads (Deployment, StatefulSet, DaemonSet) owned and managed by the grafana agent operator do not work well with kubectl rollout restart .... This is because kubectl rollout restart works by setting annotation kubectl.kubernetes.io/restartedAt in .spec.template.metadata.annotations, but the grafana agent operator will immediately remove that annotation again and thus interrupt/stop th rollout.

The offending (missing) code is at

A possible fix could be to merge .spec.template.metadata.annotations (and maybe also .spec.template.metadata.labels) similar to what is already done for .metadata.annotations and .metadata.labels.

Steps to reproduce

This can be reproduced by restarting any workload managed by the grafana agent operator using kubectl rollout restart ....

System information

No response

Software version

No response

Configuration

No response

Logs

No response

@alex-berger alex-berger added the bug Something isn't working label Jul 18, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 9, 2023

This issue has not had any activity in the past 30 days, so the needs-attention label has been added to it.
If the opened issue is a bug, check to see if a newer release fixed your issue. If it is no longer relevant, please feel free to close this issue.
The needs-attention label signals to maintainers that something has fallen through the cracks. No action is needed by you; your issue will be kept open and you do not have to respond to this comment. The label will be removed the next time this job runs if there is new activity.
Thank you for your contributions!

@github-actions github-actions bot added the needs-attention An issue or PR has been sitting around and needs attention. label Sep 9, 2023
@rfratto rfratto added operator Grafana Agent Operator related and removed type/operator labels Nov 2, 2023
@rfratto rfratto added the variant/operator Related to Grafana Agent Static Operator. label Apr 9, 2024
@github-actions github-actions bot removed the needs-attention An issue or PR has been sitting around and needs attention. label Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working operator Grafana Agent Operator related variant/operator Related to Grafana Agent Static Operator.
Projects
No open projects
Development

No branches or pull requests

2 participants