Skip to content

Commit decae77

Browse files
Merge branch 'main' into vijayr/109585-k8sagent-addon-2
2 parents f79c5a0 + 58197d6 commit decae77

File tree

47 files changed

+1224
-262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1224
-262
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/checkout@v5
3131

3232
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@v3
33+
uses: github/codeql-action/init@v4
3434
with:
3535
languages: ${{ matrix.language }}
3636

@@ -43,4 +43,4 @@ jobs:
4343
run: devbox run -- make build-snapshot
4444

4545
- name: Perform CodeQL Analysis
46-
uses: github/codeql-action/analyze@v3
46+
uses: github/codeql-action/analyze@v4

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ repos:
6262
language: system
6363
files: "hack/addons/helm-chart-bundler/repos.yaml"
6464
pass_filenames: false
65+
- id: check-list-images
66+
name: check-list-images
67+
entry: make --no-print-directory list-images
68+
language: system
69+
files: "^(charts/cluster-api-runtime-extensions-nutanix/|hack/tools/fetch-images/main.go$)"
70+
pass_filenames: false
6571
- id: check-devbox-lock
6672
name: check-devbox-lock
6773
entry: devbox install

api/external/sigs.k8s.io/cluster-api-provider-aws/v2/bootstrap/eks/api/v1beta2/nodeadmconfig_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type NodeadmConfigSpec struct {
2323

2424
// PreNodeadmCommands specifies extra commands to run before bootstrapping nodes.
2525
// +optional
26-
PreNodeadmCommands []string `json:"PreNodeadmCommands,omitempty"`
26+
PreNodeadmCommands []string `json:"preNodeadmCommands,omitempty"`
2727

2828
// Files specifies extra files to be passed to user_data upon creation.
2929
// +optional

api/v1alpha1/addon_types.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ const (
2929

3030
RegistryProviderCNCFDistribution = "CNCF Distribution"
3131

32+
IngressProviderAWSLoadBalancerController = "aws-lb-controller"
33+
3234
AddonStrategyClusterResourceSet AddonStrategy = "ClusterResourceSet"
3335
AddonStrategyHelmAddon AddonStrategy = "HelmAddon"
3436

@@ -65,6 +67,9 @@ type AWSAddons struct {
6567

6668
// +kubebuilder:validation:Optional
6769
CSI *AWSCSI `json:"csi,omitempty"`
70+
71+
// +kubebuilder:validation:Optional
72+
Ingress *Ingress `json:"ingress,omitempty"`
6873
}
6974

7075
type DockerAddons struct {
@@ -363,6 +368,13 @@ type RegistryAddon struct {
363368
Provider string `json:"provider"`
364369
}
365370

371+
type Ingress struct {
372+
// The Ingress provider to deploy.
373+
// +kubebuilder:validation:Required
374+
// +kubebuilder:validation:Enum="aws-lb-controller"
375+
Provider string `json:"provider"`
376+
}
377+
366378
type NutanixKonnectorAgent struct {
367379
// A reference to the Secret for credential information for the target Prism Central instance
368380
// +kubebuilder:validation:Optional
@@ -378,5 +390,5 @@ type NutanixKonnectorAgent struct {
378390
type NutanixKonnectorAgentCredentials struct {
379391
// A reference to the Secret containing the credentials used by the Konnector agent.
380392
// +kubebuilder:validation:Required
381-
SecretRef LocalObjectReference `json:"secretRef"`
393+
SecretRef LocalObjectReference `json:"secretRef"
382394
}

api/v1alpha1/crds/caren.nutanix.com_awsclusterconfigs.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,16 @@ spec:
226226
- defaultStorage
227227
- providers
228228
type: object
229+
ingress:
230+
properties:
231+
provider:
232+
description: The Ingress provider to deploy.
233+
enum:
234+
- aws-lb-controller
235+
type: string
236+
required:
237+
- provider
238+
type: object
229239
nfd:
230240
description: NFD tells us to enable or disable the node feature discovery addon.
231241
properties:

api/v1alpha1/crds/caren.nutanix.com_eksclusterconfigs.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,16 @@ spec:
228228
- defaultStorage
229229
- providers
230230
type: object
231+
ingress:
232+
properties:
233+
provider:
234+
description: The Ingress provider to deploy.
235+
enum:
236+
- aws-lb-controller
237+
type: string
238+
required:
239+
- provider
240+
type: object
231241
nfd:
232242
description: NFD tells us to enable or disable the node feature discovery addon.
233243
properties:

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/variables/aggregate_types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ type Addons struct {
6666
CSI *CSI `json:"csi,omitempty"`
6767

6868
COSI *COSI `json:"cosi,omitempty"`
69+
70+
Ingress *Ingress `json:"ingress,omitempty"`
6971

7072
NutanixKonnectorAgent *NutanixKonnectorAgent `json:"konnectorAgent,omitempty"`
7173
}
@@ -83,3 +85,7 @@ type CSI struct {
8385
type COSI struct {
8486
carenv1.GenericCOSI `json:",inline"`
8587
}
88+
89+
type Ingress struct {
90+
carenv1.Ingress `json:",inline"`
91+
}

charts/cluster-api-runtime-extensions-nutanix/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ A Helm chart for cluster-api-runtime-extensions-nutanix
4848
| helmRepository.securityContext.runAsUser | int | `65532` | |
4949
| hooks.ccm.aws.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
5050
| hooks.ccm.aws.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-aws-ccm-helm-values-template"` | |
51-
| hooks.ccm.aws.k8sMinorVersionToCCMVersion."1.30" | string | `"v1.30.8"` | |
52-
| hooks.ccm.aws.k8sMinorVersionToCCMVersion."1.31" | string | `"v1.31.5"` | |
53-
| hooks.ccm.aws.k8sMinorVersionToCCMVersion."1.32" | string | `"v1.32.1"` | |
51+
| hooks.ccm.aws.k8sMinorVersionToCCMVersion."1.30" | string | `"v1.30.9"` | |
52+
| hooks.ccm.aws.k8sMinorVersionToCCMVersion."1.31" | string | `"v1.31.7"` | |
53+
| hooks.ccm.aws.k8sMinorVersionToCCMVersion."1.32" | string | `"v1.32.3"` | |
5454
| hooks.ccm.aws.k8sMinorVersionToCCMVersion."1.33" | string | `"v1.33.0"` | |
55+
| hooks.ccm.aws.k8sMinorVersionToCCMVersion."1.34" | string | `"v1.34.0"` | |
5556
| hooks.ccm.nutanix.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
5657
| hooks.ccm.nutanix.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-nutanix-ccm-helm-values-template"` | |
5758
| hooks.clusterAutoscaler.crsStrategy.defaultInstallationConfigMap.name | string | `"cluster-autoscaler"` | |
@@ -87,6 +88,8 @@ A Helm chart for cluster-api-runtime-extensions-nutanix
8788
| hooks.csi.nutanix.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-nutanix-csi-helm-values-template"` | |
8889
| hooks.csi.snapshot-controller.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
8990
| hooks.csi.snapshot-controller.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-snapshot-controller-helm-values-template"` | |
91+
| hooks.ingress.awsLoadBalancerController.defaultValueTemplateConfigMap.create | bool | `true` | |
92+
| hooks.ingress.awsLoadBalancerController.defaultValueTemplateConfigMap.name | string | `"default-aws-load-balancer-controller-helm-values-template"` | |
9093
| hooks.konnectorAgent.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
9194
| hooks.konnectorAgent.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-konnector-agent-helm-values-template"` | |
9295
| hooks.nfd.crsStrategy.defaultInstallationConfigMap.name | string | `"node-feature-discovery"` | |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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" }}
6+
clusterName: "{{ .ControlPlane.spec.eksClusterName }}"
7+
{{- else }}
8+
clusterName: "{{ .Cluster.metadata.name }}"
9+
{{- end }}
10+
# Set this value to avoid stutter in the resource names.
11+
fullnameOverride: aws-load-balancer-controller

0 commit comments

Comments
 (0)