From cee6115a9e296eee3003e346dfc2557449011d90 Mon Sep 17 00:00:00 2001 From: Bojan Zelic Date: Mon, 20 Nov 2023 16:52:01 -0700 Subject: [PATCH] allow setting vault TriggerAuthentication defaults via ENV variables --- apis/keda/v1alpha1/triggerauthentication_types.go | 8 ++++++-- .../crd/bases/keda.sh_clustertriggerauthentications.yaml | 2 -- config/crd/bases/keda.sh_triggerauthentications.yaml | 2 -- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apis/keda/v1alpha1/triggerauthentication_types.go b/apis/keda/v1alpha1/triggerauthentication_types.go index 9483abedb6b..8f6447bb518 100644 --- a/apis/keda/v1alpha1/triggerauthentication_types.go +++ b/apis/keda/v1alpha1/triggerauthentication_types.go @@ -170,9 +170,13 @@ type AuthEnvironment struct { // HashiCorpVault is used to authenticate using Hashicorp Vault type HashiCorpVault struct { - Address string `json:"address"` + Secrets []VaultSecret `json:"secrets"` + + // +optional + Address string `json:"address"` + + // +optional Authentication VaultAuthentication `json:"authentication"` - Secrets []VaultSecret `json:"secrets"` // +optional Namespace string `json:"namespace,omitempty"` diff --git a/config/crd/bases/keda.sh_clustertriggerauthentications.yaml b/config/crd/bases/keda.sh_clustertriggerauthentications.yaml index cc9cacc688f..1e96dfd9fe5 100644 --- a/config/crd/bases/keda.sh_clustertriggerauthentications.yaml +++ b/config/crd/bases/keda.sh_clustertriggerauthentications.yaml @@ -233,8 +233,6 @@ spec: type: object type: array required: - - address - - authentication - secrets type: object podIdentity: diff --git a/config/crd/bases/keda.sh_triggerauthentications.yaml b/config/crd/bases/keda.sh_triggerauthentications.yaml index 6589a44301b..a89265dbfd7 100644 --- a/config/crd/bases/keda.sh_triggerauthentications.yaml +++ b/config/crd/bases/keda.sh_triggerauthentications.yaml @@ -232,8 +232,6 @@ spec: type: object type: array required: - - address - - authentication - secrets type: object podIdentity: