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

✨ apis: use logicalcluster.Name in API types #3130

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sttts
Copy link
Member

@sttts sttts commented May 11, 2024

Summary

This PR changes the field type from string to logicalcluster.Name in

  1. Workspace.Spec.Cluster
  2. APIBinding.Status.APIExportClusterName

These changes do not influence the API, only the Go code.

The main adaption of code is: logicalcluster.NewPath(ws.Spec.Cluster) => ws.Spec.Cluster.Path().

Related issue(s)

Release Notes

Breaking code change (not API): turn Workspace.Spec.Cluster into a logicalcluster.Name.
Breaking code change (not API): turn APIBinding.Status.APIExportClusterName into a logicalcluster.Name.

sttts added 3 commits May 11, 2024 19:44
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
…er.Name

Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
@kcp-ci-bot kcp-ci-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has signed the DCO. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API labels May 11, 2024
@kcp-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from sttts. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@kcp-ci-bot kcp-ci-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 11, 2024
@sttts sttts changed the title :feature: apis: use logicalcluster.Name in API types ✨ apis: use logicalcluster.Name in API types May 11, 2024
@mjudeikis
Copy link
Contributor

/lgtm

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label May 11, 2024
@kcp-ci-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 4876cd31ddda42285d1261ee432c452e101327b2

@kcp-ci-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.
After a furter 30 days, they will turn rotten.
Mark the issue as fresh with /remove-lifecycle stale.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@kcp-ci-bot kcp-ci-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-signoff: yes Indicates the PR's author has signed the DCO. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API lgtm Indicates that a PR is ready to be merged. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. release-note Denotes a PR that will be considered when it comes time to generate release notes. 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.

None yet

3 participants