Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions api/v1alpha1/addon_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ type GenericAddons struct {
ServiceLoadBalancer *ServiceLoadBalancer `json:"serviceLoadBalancer,omitempty"`
}

type AddonMetadataSpec struct {
// Reference to a ConfigMap containing configuration for addons Helm charts.
// +kubebuilder:validation:Required
ConfigMapRef LocalObjectReference `json:"configMapRef"`
}

type AddonStrategy string

// CNI required for providing CNI configuration.
Expand Down
5 changes: 5 additions & 0 deletions api/v1alpha1/clusterconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ type AWSClusterConfigSpec struct {

GenericClusterConfigSpec `json:",inline"`

// Configuration for all addons. This configuration is stored in a ConfigMap and refererenced in the Cluster object.
// This configuration is optional. If not provided, the default configuration will be used.
// +kubebuilder:validation:Optional
AddonsMetadata *AddonMetadataSpec `json:"addonsMetadata,omitempty"`

// +kubebuilder:validation:Optional
Addons *AWSAddons `json:"addons,omitempty"`

Expand Down
20 changes: 20 additions & 0 deletions api/v1alpha1/crds/caren.nutanix.com_awsclusterconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,26 @@ spec:
- provider
type: object
type: object
addonsMetadata:
description: |-
Configuration for all addons. This configuration is stored in a ConfigMap and refererenced in the Cluster object.
This configuration is optional. If not provided, the default configuration will be used.
properties:
configMapRef:
description: Reference to a ConfigMap containing configuration for addons Helm charts.
properties:
name:
description: |-
Name of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
minLength: 1
type: string
required:
- name
type: object
required:
- configMapRef
type: object
aws:
description: AWS cluster configuration.
properties:
Expand Down
21 changes: 21 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading