File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
charts/cluster-api-runtime-extensions-nutanix/addons/aws-load-balancer-controller
pkg/handlers/lifecycle/awsloadbalancercontroller Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1+ # The clusterName refers the kubernetes.io/cluster/ tag on AWS resources.
2+ # For EKS clusters, the name will be based on the cluster's namespace + a random suffix.
3+ # For AWS clusters, the name will just be based on the cluster name.
4+ {{- $capiProvider := index .Cluster.metadata.labels "cluster.x-k8s.io/provider" }}
5+ {{- if eq $capiProvider "eks" }}
16clusterName : " {{ .ControlPlane.spec.eksClusterName }}"
7+ {{- else }}
8+ clusterName : " {{ .Cluster.metadata.name }}"
9+ {{- end }}
Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ func (n *DefaultAWSLoadBalancerController) apply(
118118
119119 // For now, always enable the AWS Load Balancer Controller
120120 // FIXME: Add proper variable checking when APIs are added
121- if provider := utils .GetProvider (cluster ); provider != "eks" {
122- log .V (5 ).Info ("Skipping AWS Load Balancer Controller handler,not an EKS cluster" , provider )
121+ if provider := utils .GetProvider (cluster ); provider != "eks" && provider != "aws" {
122+ log .V (5 ).Info ("Skipping AWS Load Balancer Controller handler, not an EKS or AWS cluster" , provider )
123123 return
124124 }
125125
You can’t perform that action at this time.
0 commit comments