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

🐛 ClusterClass : fix propagate metadata to machines, KCP fix propagate annotations #5173

Merged

Conversation

sbueringer
Copy link
Member

Signed-off-by: Stefan Büringer [email protected]
Co-authored-by: fabriziopandini [email protected]

What this PR does / why we need it:
WIth this PR metadata is propagated to control plane and MachineDeployment machines.

There were also two bugs in KCP:

  • the webhook didn't allow changes to metadata
  • KCP didn't propagate annotations

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #5168

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 27, 2021
@sbueringer sbueringer changed the title ClusterClass: propagate metadata to machines 🐛 ClusterClass : fix propagate metadata to machines, KCP fix propagate annoations Aug 27, 2021
@sbueringer sbueringer changed the title 🐛 ClusterClass : fix propagate metadata to machines, KCP fix propagate annoations 🐛 ClusterClass : fix propagate metadata to machines, KCP fix propagate annotations Aug 27, 2021
@sbueringer sbueringer force-pushed the pr-propagate-metadata branch from d2f6425 to 07d0206 Compare August 27, 2021 18:28
@sbueringer
Copy link
Member Author

/retest
flakes

@sbueringer sbueringer force-pushed the pr-propagate-metadata branch from 07d0206 to de49ed4 Compare August 27, 2021 18:41
@fabriziopandini
Copy link
Member

/assign @vincepri
This fixes label/annotation propagation from ClusterClass/Topology to ControlPlane and MachineDeployments.
TL;DR; we are propagating labels only to machines, not to ControlPlane, MachineDeployments and templates objects.

Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 30, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 30, 2021
@fabriziopandini
Copy link
Member

/hold
for squash

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 30, 2021
Signed-off-by: Stefan Büringer [email protected]

Co-authored-by: fabriziopandini <[email protected]>
@sbueringer sbueringer force-pushed the pr-propagate-metadata branch from 7559f5e to 85953a9 Compare August 30, 2021 16:14
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 30, 2021
@fabriziopandini
Copy link
Member

/hold cancel
/lgtm

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 30, 2021
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 30, 2021
@sbueringer
Copy link
Member Author

/retest

@k8s-ci-robot k8s-ci-robot merged commit 8e43e3a into kubernetes-sigs:master Aug 30, 2021
@k8s-ci-robot k8s-ci-robot added this to the v0.4 milestone Aug 30, 2021
@sbueringer sbueringer deleted the pr-propagate-metadata branch August 30, 2021 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ClusterClass: Topology metadata is not propagated to machines
4 participants