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
OCPBUGS-17346: Avoid recreating some resources, created by prometheus-operator, during 4.13->4.14 upgrade #2066
Conversation
@machine424: This pull request references Jira Issue OCPBUGS-17346, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
…-operator, during 4.13->4.14 upgrade The option --labels was set to the prometheus-operator in openshift#1986 to make it add the label "app.kubernetes.io/part-of: openshift-monitoring" to resources it creates. prometheus-operator adds the labels to some controllers matchLabels as well (to the prometheus statefulset e.g.) which makes the prometheus-operator recreate the statefulset as matchLabels is an immutable field. Recreating the statefulset leads to downtime as the prometheus-operator run the deletion in a foreground mode, check prometheus-operator/prometheus-operator#3875 for the whys. We consider that adding the ownership labels is not worth the downtime, and we'll be thinking of a way to avoid it. Of course, this will lead to the recreation of these resources if openshift#1986 is alredy deployed.
@machine424: This pull request references Jira Issue OCPBUGS-17346, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: machine424, simonpasquier The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/jira refresh |
@machine424: This pull request references Jira Issue OCPBUGS-17346, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@machine424: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@machine424: Jira Issue OCPBUGS-17346: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-17346 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The option --labels was set to the prometheus-operator in #1986
to make it add the label "app.kubernetes.io/part-of: openshift-monitoring" to resources it creates.
prometheus-operator adds the labels to some controllers matchLabels as well (to the prometheus statefulset e.g.)
which makes the prometheus-operator recreate the statefulset as matchLabels is an immutable field.
Recreating the statefulset leads to downtime as the prometheus-operator run the deletion in a foreground mode, check
prometheus-operator/prometheus-operator#3875 for the whys.
We consider that adding the ownership labels is not worth the downtime, and we'll be thinking of a way to avoid it.
Of course, this will lead to the recreation of these resources if #1986