-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Copy annotations from StatefulSet to owned ControllerRevisions #50263
Conversation
Hi @liyinan926. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. 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. |
/ok-to-test |
/retest |
/test pull-kubernetes-e2e-gce-etcd3 |
@kow3ns need a lgtm label. Thanks! |
@kow3ns Now need your approval again after the lgtm was added. Thanks! |
/approve |
/test pull-kubernetes-federation-e2e-gce |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: crimsonfaith91, kow3ns, liyinan926 Associated issue: 50158 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test pull-kubernetes-bazel |
/retest |
Automatic merge from submit-queue (batch tested with PRs 50173, 50324, 50288, 50263, 50333) |
Automatic merge from submit-queue (batch tested with PRs 50173, 50324, 50288, 50263, 50333) Copy annotations from StatefulSet to owned ControllerRevisions **What this PR does / why we need it**: This PR starts copying annotations from a `StatefulSet`'s metadata to the `ControllerRevision`s it owns. `DaemonSet` controller copies the annotations from a `DaemonSet`s metadata to the `ControllerRevision`s it owns. One of the annotation copied is `kubernetes.io/change-cause`, which is used in `DaemonSetHistoryViewer` to fill in the `CHANGE-CAUSE` column of revision history of a `DaemonSet`. For consistency, the `StatefulSet` controller should do the same, i.e., copy annotations in a `StatefulSet`'s metadata to the `ControllerRevision`s it owns for consistency. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes kubernetes#50158. **Special notes for your reviewer**: /assign @kow3ns **Release note**: ```release-note Copy annotations from a StatefulSet's metadata to the ControllerRevisions it owns ```
What this PR does / why we need it:
This PR starts copying annotations from a
StatefulSet
's metadata to theControllerRevision
s it owns.DaemonSet
controller copies the annotations from aDaemonSet
s metadata to theControllerRevision
s it owns. One of the annotation copied iskubernetes.io/change-cause
, which is used inDaemonSetHistoryViewer
to fill in theCHANGE-CAUSE
column of revision history of aDaemonSet
.For consistency, the
StatefulSet
controller should do the same, i.e., copy annotations in aStatefulSet
's metadata to theControllerRevision
s it owns for consistency.Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #50158.Special notes for your reviewer:
/assign @kow3ns
Release note: