From 4dce844ebec695d09caaae86bf8f4f4c717bd5f1 Mon Sep 17 00:00:00 2001 From: Hans Kristian Flaatten Date: Tue, 15 Aug 2023 11:07:12 +0200 Subject: [PATCH] Fix secret nonce CRD scheme (#180) --- api/v1/unleash_types.go | 2 +- charts/unleasherator-crds/templates/unleash-crd.yaml | 2 +- config/crd/bases/unleash.nais.io_unleashes.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v1/unleash_types.go b/api/v1/unleash_types.go index 64e05f14..b385633d 100644 --- a/api/v1/unleash_types.go +++ b/api/v1/unleash_types.go @@ -118,7 +118,7 @@ type UnleashFederationConfig struct { // SecretNonce is the shared secret used for federation // +kubebuilder:validation:Optional // +kubebuilder:validation:Pattern=`^[a-z0-9]+$` - SecretNonce string `json:"sharedSecret,omitempty"` + SecretNonce string `json:"secretNonce,omitempty"` } // UnleashPrometheusConfig defines the prometheus configuration diff --git a/charts/unleasherator-crds/templates/unleash-crd.yaml b/charts/unleasherator-crds/templates/unleash-crd.yaml index bd2b372d..6bc718c6 100644 --- a/charts/unleasherator-crds/templates/unleash-crd.yaml +++ b/charts/unleasherator-crds/templates/unleash-crd.yaml @@ -3090,7 +3090,7 @@ spec: items: type: string type: array - sharedSecret: + secretNonce: description: SecretNonce is the shared secret used for federation pattern: ^[a-z0-9]+$ type: string diff --git a/config/crd/bases/unleash.nais.io_unleashes.yaml b/config/crd/bases/unleash.nais.io_unleashes.yaml index d68f5f4c..4cd05285 100644 --- a/config/crd/bases/unleash.nais.io_unleashes.yaml +++ b/config/crd/bases/unleash.nais.io_unleashes.yaml @@ -3138,7 +3138,7 @@ spec: items: type: string type: array - sharedSecret: + secretNonce: description: SecretNonce is the shared secret used for federation pattern: ^[a-z0-9]+$ type: string