From 2c65e9643918ed80e765d12324e9f8815d609014 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sun, 8 May 2022 00:07:31 +0700 Subject: [PATCH 1/2] docs: fix syntax in Kubernetes provider examples --- docs/provider-kubernetes.md | 38 ++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/provider-kubernetes.md b/docs/provider-kubernetes.md index 1ce6380154f..e621ba75d43 100644 --- a/docs/provider-kubernetes.md +++ b/docs/provider-kubernetes.md @@ -40,12 +40,12 @@ spec: 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 @@ -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 From 91b2d5086333716e24730912048bb3801973b387 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sun, 8 May 2022 00:13:39 +0700 Subject: [PATCH 2/2] Remove some whitespaces --- docs/provider-kubernetes.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/provider-kubernetes.md b/docs/provider-kubernetes.md index e621ba75d43..23bac751bff 100644 --- a/docs/provider-kubernetes.md +++ b/docs/provider-kubernetes.md @@ -35,14 +35,14 @@ metadata: spec: provider: kubernetes: - server: - caProvider: + server: + caProvider: type: Secret name: mydefaulttoken key: ca.crt auth: token: - bearerToken: + bearerToken: name: mydefaulttoken key: token remoteNamespace: default