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

✨ Extend cluster builtin to include UID #10822

Merged

Conversation

srm09
Copy link
Contributor

@srm09 srm09 commented Jul 2, 2024

What this PR does / why we need it:
This patch extends the cluster builtins to include the UID of the Cluster object. This can be used by the runtime extensions or JSON patches to set owner references on objects owned by the Cluster object.

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 #10823

/area runtime-sdk
/area clusterclass

@k8s-ci-robot k8s-ci-robot added area/runtime-sdk Issues or PRs related to Runtime SDK area/clusterclass Issues or PRs related to clusterclass cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 2, 2024
@srm09 srm09 force-pushed the add-uid-to-cluster-builtins branch from bac6d8a to d43cae4 Compare July 2, 2024 14:55
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 2, 2024
This patch extends the cluster builtins to include the UID of the
Cluster object. This can be used by the runtime extensions or JSON
patches to set owner references on objects owned by the Cluster object.

Signed-off-by: Sagar Muchhal <muchhals@vmware.com>
@srm09 srm09 force-pushed the add-uid-to-cluster-builtins branch from d43cae4 to ed38302 Compare July 3, 2024 06:49
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 3, 2024
@srm09
Copy link
Contributor Author

srm09 commented Jul 3, 2024

/retest

The failures are unrelated to the changes introduced

@srm09
Copy link
Contributor Author

srm09 commented Jul 3, 2024

/retest

@sbueringer
Copy link
Member

sbueringer commented Jul 3, 2024

Agree

@fabriziopandini can you please PTAL when you have some time? https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_cluster-api/10822/pull-cluster-api-test-main/1808538566179950592 (this CRS test seems familiar)

(Same test failing 2 of 3 times in a row)

@sbueringer
Copy link
Member

/retest

@sbueringer
Copy link
Member

Thank you!

/lgtm
/approve

@sbueringer
Copy link
Member

/cherry-pick release-1.7

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

LGTM label has been added.

Git tree hash: b5470cc7e10b577bc99ae5799c7ca39ad29f9804

@k8s-infra-cherrypick-robot

@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.7 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.7

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-sigs/prow repository.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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 Jul 4, 2024
@k8s-ci-robot k8s-ci-robot merged commit 9dd9b81 into kubernetes-sigs:main Jul 4, 2024
22 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.8 milestone Jul 4, 2024
@k8s-infra-cherrypick-robot

@sbueringer: new pull request created: #10831

In response to this:

/cherry-pick release-1.7

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-sigs/prow repository.

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. area/clusterclass Issues or PRs related to clusterclass area/runtime-sdk Issues or PRs related to Runtime SDK 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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make Cluster UID available within Cluster Builtins
4 participants