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

🌱 Add alias to GenericProviderReconciler type #725

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dmvolod
Copy link
Member

@dmvolod dmvolod commented Feb 12, 2025

What this PR does / why we need it:
This fix allows to import GenericProviderReconciler and embed it into the third-party golang code for testing and utilizing standalone without fork.
Also moves some useful labels to the API and make it public.

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 issue in #727

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 12, 2025
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Feb 12, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @dmvolod. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 12, 2025
Copy link

netlify bot commented Feb 12, 2025

Deploy Preview for kubernetes-sigs-cluster-api-operator ready!

Name Link
🔨 Latest commit b3cf2a0
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-operator/deploys/67b3160ecc69500008e7c477
😎 Deploy Preview https://deploy-preview-725--kubernetes-sigs-cluster-api-operator.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dmvolod dmvolod force-pushed the export-controller-type branch from 7047cc5 to e6d708e Compare February 13, 2025 04:44
@@ -38,9 +38,6 @@ import (
)

const (
configMapVersionLabel = "provider.cluster.x-k8s.io/version"
Copy link
Member

Choose a reason for hiding this comment

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

what is the benefit of moving these to API package? AFAICT, they are used in internal package only

Copy link
Member Author

@dmvolod dmvolod Feb 13, 2025

Choose a reason for hiding this comment

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

Yes, this is good question, but according to test data below, it seems to possible to have any ConfigMap name with following labels to be configured in air-gap mode, to avoid assigning name equals to provider version.

This would be an option for configuration. Seems to need to add this option to documentation.
What do you think about it?

provider.cluster.x-k8s.io/name: cluster-api
provider.cluster.x-k8s.io/type: core
provider.cluster.x-k8s.io/version: v1.7.7

@furkatgofurov7
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 13, 2025
@furkatgofurov7
Copy link
Member

can you run make-generate to fix api-diff issue?

@dmvolod dmvolod force-pushed the export-controller-type branch from e6d708e to b3cf2a0 Compare February 17, 2025 10:57
@dmvolod
Copy link
Member Author

dmvolod commented Feb 17, 2025

can you run make-generate to fix api-diff issue?

Yes, sure, @furkatgofurov7
ConfigMapVersionLabelName name was released in v0.16.0 and seems to shouldn't be renamed, right?

@furkatgofurov7
Copy link
Member

can you run make-generate to fix api-diff issue?

Yes, sure, @furkatgofurov7 ConfigMapVersionLabelName name was released in v0.16.0 and seems to shouldn't be renamed, right?

Not sure I am following, but changes look good to me

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: furkatgofurov7

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 Feb 18, 2025
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

3 participants