Skip to content

Commit 1b78767

Browse files
committed
feat: put AWS LB Controller behind an API
1 parent 687eec2 commit 1b78767

File tree

9 files changed

+6856
-7
lines changed

9 files changed

+6856
-7
lines changed

api/v1alpha1/addon_types.go

Lines changed: 12 additions & 0 deletions
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 {
@@ -359,3 +364,10 @@ type RegistryAddon struct {
359364
// +kubebuilder:validation:Enum="CNCF Distribution"
360365
Provider string `json:"provider"`
361366
}
367+
368+
type Ingress struct {
369+
// The Ingress provider to deploy.
370+
// +kubebuilder:validation:Required
371+
// +kubebuilder:validation:Enum="aws-lb-controller"
372+
Provider string `json:"provider"`
373+
}

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.

docs/content/addons/aws-load-balancer-controller.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ spec:
3131
- name: clusterConfig
3232
value:
3333
addons:
34-
# TODO: Define an API
34+
ingress:
35+
provider: "aws-lb-controller"
3536
```
3637
3738
## IAM Permissions

0 commit comments

Comments
 (0)