Skip to content

Commit e431c8c

Browse files
committed
Add EnvVariablesOverride field in NooBaa CR
Signed-off-by: NoOverflow <[email protected]>
1 parent 1bf199c commit e431c8c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pkg/apis/noobaa/v1alpha1/noobaa_types.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ type NooBaaSpec struct {
9191
// +kubebuilder:validation:Enum=postgres
9292
DBType DBTypes `json:"dbType,omitempty"`
9393

94+
// EnvVariablesOverride (optional) overrides the environment variables for all NooBaa's pods
95+
// Can be used for exemple to add CONFIG_JS_ variables to modify core pod behaviour
96+
// +optional
97+
EnvVariablesOverride *EnvVariablesOverrideSpec `json:"envVariablesOverride,omitempty"`
98+
9499
// CoreResources (optional) overrides the default resource requirements for the server container
95100
// +optional
96101
CoreResources *corev1.ResourceRequirements `json:"coreResources,omitempty"`
@@ -245,6 +250,14 @@ type AutoscalerSpec struct {
245250
PrometheusNamespace string `json:"prometheusNamespace,omitempty"`
246251
}
247252

253+
// EnvVariablesOverrideSpec defines the env override structure for each component deploying pods (ex: StatefulSet)
254+
type EnvVariablesOverrideSpec struct {
255+
// Variables override for core statefulset
256+
Core []corev1.EnvVar `json:"core,omitempty"`
257+
}
258+
259+
260+
248261
// BucketLoggingSpec defines the bucket logging configuration
249262
type BucketLoggingSpec struct {
250263
// LoggingType specifies the type of logging for the bucket

0 commit comments

Comments
 (0)