Skip to content

Commit c162d55

Browse files
committed
feat: adds new field for helm values input for cilium CNI
1 parent a209459 commit c162d55

File tree

5 files changed

+145
-0
lines changed

5 files changed

+145
-0
lines changed

api/v1alpha1/addon_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ type CNI struct {
115115
// +kubebuilder:default=HelmAddon
116116
// +kubebuilder:validation:Enum=ClusterResourceSet;HelmAddon
117117
Strategy *AddonStrategy `json:"strategy,omitempty"`
118+
119+
// ValuesRef is an object reference to Configmap/Secret which contains inline YAML
120+
// representing the values for the Helm chart when HelmAddon is the strategy.
121+
// +kubebuilder:validation:Optional
122+
ValuesRef *corev1.ObjectReference `json:"valuesRef,omitempty"`
118123
}
119124

120125
// NFD tells us to enable or disable the node feature discovery addon.

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,51 @@ spec:
101101
- ClusterResourceSet
102102
- HelmAddon
103103
type: string
104+
valuesRef:
105+
description: |-
106+
ValuesRef is an object reference to Configmap/Secret which contains inline YAML
107+
representing the values for the Helm chart when HelmAddon is the strategy.
108+
properties:
109+
apiVersion:
110+
description: API version of the referent.
111+
type: string
112+
fieldPath:
113+
description: |-
114+
If referring to a piece of an object instead of an entire object, this string
115+
should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
116+
For example, if the object reference is to a container within a pod, this would take on a value like:
117+
"spec.containers{name}" (where "name" refers to the name of the container that triggered
118+
the event) or if no container name is specified "spec.containers[2]" (container with
119+
index 2 in this pod). This syntax is chosen only to have some well-defined way of
120+
referencing a part of an object.
121+
type: string
122+
kind:
123+
description: |-
124+
Kind of the referent.
125+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
126+
type: string
127+
name:
128+
description: |-
129+
Name of the referent.
130+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
131+
type: string
132+
namespace:
133+
description: |-
134+
Namespace of the referent.
135+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
136+
type: string
137+
resourceVersion:
138+
description: |-
139+
Specific resourceVersion to which this reference is made, if any.
140+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
141+
type: string
142+
uid:
143+
description: |-
144+
UID of the referent.
145+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
146+
type: string
147+
type: object
148+
x-kubernetes-map-type: atomic
104149
required:
105150
- provider
106151
type: object

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,51 @@ spec:
101101
- ClusterResourceSet
102102
- HelmAddon
103103
type: string
104+
valuesRef:
105+
description: |-
106+
ValuesRef is an object reference to Configmap/Secret which contains inline YAML
107+
representing the values for the Helm chart when HelmAddon is the strategy.
108+
properties:
109+
apiVersion:
110+
description: API version of the referent.
111+
type: string
112+
fieldPath:
113+
description: |-
114+
If referring to a piece of an object instead of an entire object, this string
115+
should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
116+
For example, if the object reference is to a container within a pod, this would take on a value like:
117+
"spec.containers{name}" (where "name" refers to the name of the container that triggered
118+
the event) or if no container name is specified "spec.containers[2]" (container with
119+
index 2 in this pod). This syntax is chosen only to have some well-defined way of
120+
referencing a part of an object.
121+
type: string
122+
kind:
123+
description: |-
124+
Kind of the referent.
125+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
126+
type: string
127+
name:
128+
description: |-
129+
Name of the referent.
130+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
131+
type: string
132+
namespace:
133+
description: |-
134+
Namespace of the referent.
135+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
136+
type: string
137+
resourceVersion:
138+
description: |-
139+
Specific resourceVersion to which this reference is made, if any.
140+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
141+
type: string
142+
uid:
143+
description: |-
144+
UID of the referent.
145+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
146+
type: string
147+
type: object
148+
x-kubernetes-map-type: atomic
104149
required:
105150
- provider
106151
type: object

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,51 @@ spec:
101101
- ClusterResourceSet
102102
- HelmAddon
103103
type: string
104+
valuesRef:
105+
description: |-
106+
ValuesRef is an object reference to Configmap/Secret which contains inline YAML
107+
representing the values for the Helm chart when HelmAddon is the strategy.
108+
properties:
109+
apiVersion:
110+
description: API version of the referent.
111+
type: string
112+
fieldPath:
113+
description: |-
114+
If referring to a piece of an object instead of an entire object, this string
115+
should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
116+
For example, if the object reference is to a container within a pod, this would take on a value like:
117+
"spec.containers{name}" (where "name" refers to the name of the container that triggered
118+
the event) or if no container name is specified "spec.containers[2]" (container with
119+
index 2 in this pod). This syntax is chosen only to have some well-defined way of
120+
referencing a part of an object.
121+
type: string
122+
kind:
123+
description: |-
124+
Kind of the referent.
125+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
126+
type: string
127+
name:
128+
description: |-
129+
Name of the referent.
130+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
131+
type: string
132+
namespace:
133+
description: |-
134+
Namespace of the referent.
135+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
136+
type: string
137+
resourceVersion:
138+
description: |-
139+
Specific resourceVersion to which this reference is made, if any.
140+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
141+
type: string
142+
uid:
143+
description: |-
144+
UID of the referent.
145+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
146+
type: string
147+
type: object
148+
x-kubernetes-map-type: atomic
104149
required:
105150
- provider
106151
type: object

api/v1alpha1/zz_generated.deepcopy.go

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

0 commit comments

Comments
 (0)