Skip to content

Commit

Permalink
docs: Adds k8s provider example to ClusterSecretStore (external-secre…
Browse files Browse the repository at this point in the history
…ts#1368)

* Adds k8s provider example to ClusterSecretStore

* remove namespace from SecretStore example

Co-authored-by: Docs <[email protected]>
  • Loading branch information
rodrmartinez and Docs authored Jul 19, 2022
1 parent c620ad1 commit b18e320
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docs/provider-kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ spec:
auth:
serviceAccount:
name: "my-store"
namespace: "" # only ClusterSecretStore
remoteNamespace: default
```

Expand Down Expand Up @@ -198,10 +197,8 @@ spec:
clientCert:
name: "tls-secret"
key: "tls.crt"
namespace: "foobar" # only ClusterSecretStore
clientKey:
name: "tls-secret"
key: "tls.key"
namespace: "foobar" # only ClusterSecretStore
remoteNamespace: default
```
13 changes: 13 additions & 0 deletions docs/snippets/full-cluster-secret-store.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,19 @@ spec:
key: secret-access-credentials
namespace: example
projectID: myproject
# (3): Kubernetes provider
kubernetes:
server:
url: "https://myapiserver.tld"
caProvider:
type: Secret
name : my-cluster-secrets
namespace: example
key: ca.crt
auth:
serviceAccount:
name: "example-sa"
namespace: "example"
# (TODO): add more provider examples here

status:
Expand Down

0 comments on commit b18e320

Please sign in to comment.