1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00

add missing default values for spec.target (#1431)

Add missing default values for ExternalSecretTarget on CRD definition
Fixes #1233

Signed-off-by: Helena Steck <steckhelena@gmail.com>
This commit is contained in:
Helena Steck 2022-08-08 16:27:13 -03:00 committed by GitHub
parent dfb5c9419b
commit 2b5710d8d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 0 deletions

View file

@ -271,6 +271,7 @@ type FindName struct {
// ExternalSecretSpec defines the desired state of ExternalSecret.
type ExternalSecretSpec struct {
SecretStoreRef SecretStoreRef `json:"secretStoreRef"`
// +kubebuilder:default={creationPolicy:Owner,deletionPolicy:Retain}
// +optional
Target ExternalSecretTarget `json:"target,omitempty"`

View file

@ -220,6 +220,9 @@ spec:
- name
type: object
target:
default:
creationPolicy: Owner
deletionPolicy: Retain
description: ExternalSecretTarget defines the Kubernetes Secret
to be created There can be only one target per ExternalSecret.
properties:

View file

@ -453,6 +453,9 @@ spec:
- name
type: object
target:
default:
creationPolicy: Owner
deletionPolicy: Retain
description: ExternalSecretTarget defines the Kubernetes Secret to
be created There can be only one target per ExternalSecret.
properties:

View file

@ -186,6 +186,9 @@ spec:
- name
type: object
target:
default:
creationPolicy: Owner
deletionPolicy: Retain
description: ExternalSecretTarget defines the Kubernetes Secret to be created There can be only one target per ExternalSecret.
properties:
creationPolicy:
@ -2949,6 +2952,9 @@ spec:
- name
type: object
target:
default:
creationPolicy: Owner
deletionPolicy: Retain
description: ExternalSecretTarget defines the Kubernetes Secret to be created There can be only one target per ExternalSecret.
properties:
creationPolicy: