From 67305a55e3856686c5dafd5294aa6b6d5898059e Mon Sep 17 00:00:00 2001 From: Ivan Milchev Date: Tue, 30 Apr 2024 16:31:06 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20fix=20env=20for=20nodes=20and=20?= =?UTF-8?q?containers=20(#1103)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/v1alpha2/mondooauditconfig_types.go | 4 ++-- config/crd/bases/k8s.mondoo.com_mondooauditconfigs.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/v1alpha2/mondooauditconfig_types.go b/api/v1alpha2/mondooauditconfig_types.go index a9d0df4a..8b6c2584 100644 --- a/api/v1alpha2/mondooauditconfig_types.go +++ b/api/v1alpha2/mondooauditconfig_types.go @@ -116,7 +116,7 @@ type Nodes struct { PriorityClassName string `json:"priorityClassName,omitempty"` // Env allows setting extra environment variables for the node scanner. If the operator sets already an env // variable with the same name, the value specified here will override it. - Env []corev1.EnvVar `json:"envVar,omitempty"` + Env []corev1.EnvVar `json:"env,omitempty"` } type Admission struct { @@ -148,7 +148,7 @@ type Containers struct { Schedule string `json:"schedule,omitempty"` // Env allows setting extra environment variables for the node scanner. If the operator sets already an env // variable with the same name, the value specified here will override it. - Env []corev1.EnvVar `json:"envVar,omitempty"` + Env []corev1.EnvVar `json:"env,omitempty"` } type Image struct { diff --git a/config/crd/bases/k8s.mondoo.com_mondooauditconfigs.yaml b/config/crd/bases/k8s.mondoo.com_mondooauditconfigs.yaml index 7ce7c1f9..4ab1e99f 100644 --- a/config/crd/bases/k8s.mondoo.com_mondooauditconfigs.yaml +++ b/config/crd/bases/k8s.mondoo.com_mondooauditconfigs.yaml @@ -99,7 +99,7 @@ spec: properties: enable: type: boolean - envVar: + env: description: |- Env allows setting extra environment variables for the node scanner. If the operator sets already an env variable with the same name, the value specified here will override it. @@ -343,7 +343,7 @@ spec: properties: enable: type: boolean - envVar: + env: description: |- Env allows setting extra environment variables for the node scanner. If the operator sets already an env variable with the same name, the value specified here will override it.