Fix schema for env variables

Operator expects a {name,value} object, so we were unable to set envs with the existing CRD schema

Change-Id: Icf81caea3e141c56b0669e901dd1175c2b3465fe
This commit is contained in:
Damian Fajfer 2024-05-16 11:46:42 +02:00
parent b723bc761b
commit fef7c272f7
2 changed files with 11 additions and 2 deletions

View File

@ -23,6 +23,9 @@ spec:
externalConfig: externalConfig:
kubernetes: kubernetes:
secretName: nodepool-kube-config secretName: nodepool-kube-config
# env:
# - name: EXAMPLE
# value: example
# #
# uncomment the following if the k8s cluster has less than 3 nodes: # uncomment the following if the k8s cluster has less than 3 nodes:
# database: # database:

View File

@ -61,8 +61,14 @@ spec:
storageClassName: storageClassName:
type: string type: string
env: env:
type: object type: array
x-kubernetes-preserve-unknown-fields: true items:
type: object
properties:
name:
type: string
value:
type: string
scheduler: scheduler:
type: object type: object
properties: properties: