Skip to content

Commit 98ae77b

Browse files
authored
Merge pull request #27424 from Shubham82/fix-secret_content_layout
Modified the output when retrieving Secrets.
2 parents 448df54 + 2b822af commit 98ae77b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ The output is similar to:
131131

132132
```yaml
133133
apiVersion: v1
134+
data:
135+
config.yaml: YXBpVXJsOiAiaHR0cHM6Ly9teS5hcGkuY29tL2FwaS92MSIKdXNlcm5hbWU6IHt7dXNlcm5hbWV9fQpwYXNzd29yZDoge3twYXNzd29yZH19
134136
kind: Secret
135137
metadata:
136138
creationTimestamp: 2018-11-15T20:40:59Z
@@ -139,8 +141,6 @@ metadata:
139141
resourceVersion: "7225"
140142
uid: c280ad2e-e916-11e8-98f2-025000000001
141143
type: Opaque
142-
data:
143-
config.yaml: YXBpVXJsOiAiaHR0cHM6Ly9teS5hcGkuY29tL2FwaS92MSIKdXNlcm5hbWU6IHt7dXNlcm5hbWV9fQpwYXNzd29yZDoge3twYXNzd29yZH19
144144
```
145145

146146
The commands `kubectl get` and `kubectl describe` avoid showing the contents of a `Secret` by
@@ -168,6 +168,8 @@ Results in the following Secret:
168168

169169
```yaml
170170
apiVersion: v1
171+
data:
172+
username: YWRtaW5pc3RyYXRvcg==
171173
kind: Secret
172174
metadata:
173175
creationTimestamp: 2018-11-15T20:46:46Z
@@ -176,8 +178,6 @@ metadata:
176178
resourceVersion: "7579"
177179
uid: 91460ecb-e917-11e8-98f2-025000000001
178180
type: Opaque
179-
data:
180-
username: YWRtaW5pc3RyYXRvcg==
181181
```
182182

183183
Where `YWRtaW5pc3RyYXRvcg==` decodes to `administrator`.

0 commit comments

Comments
 (0)