Skip to content

Commit a2aed05

Browse files
authored
Merge pull request #42350 from pegasas/kustomize
Improvement for k8s.io/docs/tasks/configmap-secret/managing-secret-us…
2 parents 08fbe83 + 52e3b3a commit a2aed05

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

content/en/docs/tasks/configmap-secret/managing-secret-using-kustomize.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,31 @@ When a Secret is generated, the Secret name is created by hashing
8989
the Secret data and appending the hash value to the name. This ensures that
9090
a new Secret is generated each time the data is modified.
9191
92-
To verify that the Secret was created and to decode the Secret data, refer to
93-
[Managing Secrets using kubectl](/docs/tasks/configmap-secret/managing-secret-using-kubectl/#verify-the-secret).
92+
To verify that the Secret was created and to decode the Secret data,
93+
94+
```shell
95+
kubectl get -k <directory-path> -o jsonpath='{.data}'
96+
```
97+
98+
The output is similar to:
99+
100+
```
101+
{ "password": "UyFCXCpkJHpEc2I9", "username": "YWRtaW4=" }
102+
```
103+
104+
```
105+
echo 'UyFCXCpkJHpEc2I9' | base64 --decode
106+
```
107+
108+
The output is similar to:
109+
110+
```
111+
S!B\*d$zDsb=
112+
```
113+
114+
For more information, refer to
115+
[Managing Secrets using kubectl](/docs/tasks/configmap-secret/managing-secret-using-kubectl/#verify-the-secret) and
116+
[Declarative Management of Kubernetes Objects Using Kustomize](/docs/tasks/manage-kubernetes-objects/kustomization/).
94117

95118
## Edit a Secret {#edit-secret}
96119

0 commit comments

Comments
 (0)