-
Notifications
You must be signed in to change notification settings - Fork 579
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
Remove .metadata.clusterName usage #3322
Remove .metadata.clusterName usage #3322
Conversation
Upstream plans to drop ObjectMeta.ClusterName field as it has always been force cleared by the API server. See kubernetes/kubernetes#108717.
/test? |
/test pull-cluster-api-provider-aws-e2e-eks |
@@ -196,7 +196,7 @@ func (s *Service) translateAPIToAddon(addons []ekscontrolplanev1.Addon) []*eksad | |||
convertedAddon := &eksaddons.EKSAddon{ | |||
Name: &addon.Name, | |||
Version: &addon.Version, | |||
Tags: ngTags(s.scope.Cluster.ClusterName, s.scope.AdditionalTags()), | |||
Tags: ngTags(s.scope.Cluster.Name, s.scope.AdditionalTags()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this name should be the Kubernetes cluster name instead of CAPI cluster name, since they are different in EKS.
Not sure though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean EKS cluster name? I don't know why the original code is using CAPI cluster name but that is a great point.
Let's ask @richardcase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be tempted to use s.scope.Cluster.Name
and not the eks cluster name. An addon is always a child of a EKS cluster (and so you have the name).
@pydctw: This issue is currently awaiting triage. If CAPA/CAPI contributors determines this is a relevant issue, they will accept it by applying the The 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. |
@pydctw: The following commands are available to trigger required jobs:
The following commands are available to trigger optional jobs:
Use
In response to this:
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. |
Bad CI day |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: richardcase 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 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
k8s upstream plans to drop ObjectMeta.ClusterName field as it has always been force cleared by the API server.
See kubernetes/kubernetes#108717.
Searched CAPA codebase and there is only one occasion where
ObjectMeta.ClusterName
is used.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 #3321
Special notes for your reviewer:
Checklist:
Release note: