From 52a9346cc3215f534b97aa43d82c88505df4c922 Mon Sep 17 00:00:00 2001 From: Jorge Turrado Date: Tue, 12 Mar 2024 12:44:17 +0100 Subject: [PATCH] fix: TriggerAuthentication.podIdentity validation allows 'none' Signed-off-by: Jorge Turrado --- apis/keda/v1alpha1/triggerauthentication_types.go | 2 +- config/crd/bases/keda.sh_clustertriggerauthentications.yaml | 4 ++++ config/crd/bases/keda.sh_triggerauthentications.yaml | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apis/keda/v1alpha1/triggerauthentication_types.go b/apis/keda/v1alpha1/triggerauthentication_types.go index 61d1c19d65f..d1564e2eaf0 100644 --- a/apis/keda/v1alpha1/triggerauthentication_types.go +++ b/apis/keda/v1alpha1/triggerauthentication_types.go @@ -139,7 +139,7 @@ const ( // AuthPodIdentity allows users to select the platform native identity // mechanism type AuthPodIdentity struct { - // +kubebuilder:validation:Enum=azure;azure-workload;gcp;aws;aws-eks;aws-kiam + // +kubebuilder:validation:Enum=azure;azure-workload;gcp;aws;aws-eks;aws-kiam;none Provider PodIdentityProvider `json:"provider"` // +optional IdentityID *string `json:"identityId"` diff --git a/config/crd/bases/keda.sh_clustertriggerauthentications.yaml b/config/crd/bases/keda.sh_clustertriggerauthentications.yaml index 05c21c07497..95eadea50c0 100644 --- a/config/crd/bases/keda.sh_clustertriggerauthentications.yaml +++ b/config/crd/bases/keda.sh_clustertriggerauthentications.yaml @@ -157,6 +157,7 @@ spec: - aws - aws-eks - aws-kiam + - none type: string roleArn: description: RoleArn sets the AWS RoleArn to be used. Mutually @@ -256,6 +257,7 @@ spec: - aws - aws-eks - aws-kiam + - none type: string roleArn: description: RoleArn sets the AWS RoleArn to be used. Mutually @@ -369,6 +371,7 @@ spec: - aws - aws-eks - aws-kiam + - none type: string roleArn: description: RoleArn sets the AWS RoleArn to be used. Mutually @@ -485,6 +488,7 @@ spec: - aws - aws-eks - aws-kiam + - none type: string roleArn: description: RoleArn sets the AWS RoleArn to be used. Mutually diff --git a/config/crd/bases/keda.sh_triggerauthentications.yaml b/config/crd/bases/keda.sh_triggerauthentications.yaml index 6bb8748c429..f15d9f94e63 100644 --- a/config/crd/bases/keda.sh_triggerauthentications.yaml +++ b/config/crd/bases/keda.sh_triggerauthentications.yaml @@ -156,6 +156,7 @@ spec: - aws - aws-eks - aws-kiam + - none type: string roleArn: description: RoleArn sets the AWS RoleArn to be used. Mutually @@ -255,6 +256,7 @@ spec: - aws - aws-eks - aws-kiam + - none type: string roleArn: description: RoleArn sets the AWS RoleArn to be used. Mutually @@ -368,6 +370,7 @@ spec: - aws - aws-eks - aws-kiam + - none type: string roleArn: description: RoleArn sets the AWS RoleArn to be used. Mutually @@ -484,6 +487,7 @@ spec: - aws - aws-eks - aws-kiam + - none type: string roleArn: description: RoleArn sets the AWS RoleArn to be used. Mutually