Skip to content

Commit

Permalink
Merge pull request external-secrets#1113 from khuedoan/patch-1
Browse files Browse the repository at this point in the history
docs: fix syntax in Kubernetes provider examples
  • Loading branch information
paul-the-alien[bot] authored May 8, 2022
2 parents 3f0d0fd + 91b2d50 commit 1729deb
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions docs/provider-kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ metadata:
spec:
provider:
kubernetes:
server:
caProvider:
server:
caProvider:
type: Secret
name: mydefaulttoken
key: ca.crt
auth:
token:
bearerToken:
name: mydefaulttoken
key: token
remoteNamespace: default
auth:
token:
bearerToken:
name: mydefaulttoken
key: token
remoteNamespace: default
```
3. Create the local secret that will be synced

Expand Down Expand Up @@ -109,19 +109,19 @@ metadata:
name: example
spec:
provider:
kubernetes:
# If not remoteNamesapce is provided, default namespace is used
remoteNamespace: remote-namespace
server:
url: https://remote.kubernetes.api-server.address
# Add your encoded base64 to caBundle
caBundle: Cg==
auth:
# Adds referenced bearerToken
token:
bearerToken:
name: cluster-secrets
key: bearerToken
kubernetes:
# If not remoteNamesapce is provided, default namespace is used
remoteNamespace: remote-namespace
server:
url: https://remote.kubernetes.api-server.address
# Add your encoded base64 to caBundle
caBundle: Cg==
auth:
# Adds referenced bearerToken
token:
bearerToken:
name: cluster-secrets
key: bearerToken
```
4. Finally create the ExternalSecret resource

Expand Down

0 comments on commit 1729deb

Please sign in to comment.