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

Merge pull request #3 from external-secrets/add-kind-and-fix-typos

Add Add Kind to ExternalSecret.spec.secretStoreRef and fix typos
This commit is contained in:
Jonatas Baldin 2020-11-24 15:41:24 +01:00 committed by GitHub
commit 3b3ce85f63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 9 deletions

View file

@ -21,8 +21,13 @@ import (
// SecretStoreRef defines which SecretStore to fetch the ExternalSecret data
type SecretStoreRef struct {
// Name of the ExternalSecret resource
// Name of the SecretStore resource
Name string `json:"name"`
// Kind of the SecretStore resource (SecretStore or ClusterSecretStore)
// Defaults to `SecretStore`
// +optional
Kind string `json:"kind,omitempty"`
}
// ExternalSecretCreationPolicy defines rules on how to create the resulting Secret
@ -106,7 +111,7 @@ type ExternalSecretSpec struct {
// +optional
RefreshInterval string `json:"refreshInterval,omitempty"`
// Data defines the connection betwen the Kubernetes Secret keys and the Provider data
// Data defines the connection between the Kubernetes Secret keys and the Provider data
// +optional
Data []ExternalSecretData `json:"data,omitempty"`

View file

@ -30,7 +30,7 @@ type AWSSMAuthSecretRef struct {
// Configures a store to sync secrets using the AWS Secret Manager provider
type AWSSMProvider struct {
// Auth defines the information necessary to authenticate agains AWS
// Auth defines the information necessary to authenticate against AWS
Auth AWSSMAuth `json:"auth"`
// Role is a Role ARN which the SecretManager provider will assume

View file

@ -35,7 +35,7 @@ spec:
description: ExternalSecretSpec defines the desired state of ExternalSecret
properties:
data:
description: Data defines the connection betwen the Kubernetes Secret
description: Data defines the connection between the Kubernetes Secret
keys and the Provider data
items:
description: ExternalSecretData defines the connection between the
@ -98,8 +98,12 @@ spec:
description: SecretStoreRef defines which SecretStore to fetch the ExternalSecret
data
properties:
kind:
description: Kind of the SecretStore resource (SecretStore or ClusterSecretStore)
Defaults to `SecretStore`
type: string
name:
description: Name of the ExternalSecret resource
description: Name of the SecretStore resource
type: string
required:
- name

View file

@ -40,7 +40,7 @@ spec:
properties:
auth:
description: Auth defines the information necessary to authenticate
agains AWS
against AWS
properties:
secretRef:
properties:

View file

@ -5,6 +5,7 @@ metadata:
spec:
secretStoreRef:
name: secretstore-sample
kind: SecretStore
target:
name: secret-to-be-created
@ -13,10 +14,11 @@ spec:
refreshInternal: 1h
data:
- secretKey: secret-key-to-be-created
- secretKey: secret-key-to-be-managed
remoteRef:
key: remote-key-in-the-provider
version: remote-version-in-the-provider
key: provider-key
version: provider-key-version
property: provider-key-property
dataFrom:
- remoteRef: