File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
content/en/docs/tasks/configmap-secret Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,8 @@ The output is similar to:
131
131
132
132
` ` ` yaml
133
133
apiVersion: v1
134
+ data:
135
+ config.yaml: YXBpVXJsOiAiaHR0cHM6Ly9teS5hcGkuY29tL2FwaS92MSIKdXNlcm5hbWU6IHt7dXNlcm5hbWV9fQpwYXNzd29yZDoge3twYXNzd29yZH19
134
136
kind: Secret
135
137
metadata:
136
138
creationTimestamp: 2018-11-15T20:40:59Z
@@ -139,8 +141,6 @@ metadata:
139
141
resourceVersion: "7225"
140
142
uid: c280ad2e-e916-11e8-98f2-025000000001
141
143
type: Opaque
142
- data:
143
- config.yaml: YXBpVXJsOiAiaHR0cHM6Ly9teS5hcGkuY29tL2FwaS92MSIKdXNlcm5hbWU6IHt7dXNlcm5hbWV9fQpwYXNzd29yZDoge3twYXNzd29yZH19
144
144
` ` `
145
145
146
146
The commands `kubectl get` and `kubectl describe` avoid showing the contents of a `Secret` by
@@ -168,6 +168,8 @@ Results in the following Secret:
168
168
169
169
` ` ` yaml
170
170
apiVersion: v1
171
+ data:
172
+ username: YWRtaW5pc3RyYXRvcg==
171
173
kind: Secret
172
174
metadata:
173
175
creationTimestamp: 2018-11-15T20:46:46Z
@@ -176,8 +178,6 @@ metadata:
176
178
resourceVersion: "7579"
177
179
uid: 91460ecb-e917-11e8-98f2-025000000001
178
180
type: Opaque
179
- data:
180
- username: YWRtaW5pc3RyYXRvcg==
181
181
` ` `
182
182
183
183
Where `YWRtaW5pc3RyYXRvcg==` decodes to `administrator`.
You can’t perform that action at this time.
0 commit comments