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:
kubernetes:
secretName: nodepool-kube-config
# env:
# - name: EXAMPLE
# value: example
#
# uncomment the following if the k8s cluster has less than 3 nodes:
# database:

View File

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