Skip to content

Commit

Permalink
🧹 fix env for nodes and containers (#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
imilchev authored Apr 30, 2024
1 parent 3ff5a45 commit 67305a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha2/mondooauditconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions config/crd/bases/k8s.mondoo.com_mondooauditconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 67305a5

Please sign in to comment.