Merge pull request #27424 from Shubham82/fix-secret_content_layout
Modified the output when retrieving Secrets.
This commit is contained in:
@@ -131,6 +131,8 @@ The output is similar to:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
config.yaml: YXBpVXJsOiAiaHR0cHM6Ly9teS5hcGkuY29tL2FwaS92MSIKdXNlcm5hbWU6IHt7dXNlcm5hbWV9fQpwYXNzd29yZDoge3twYXNzd29yZH19
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: 2018-11-15T20:40:59Z
|
creationTimestamp: 2018-11-15T20:40:59Z
|
||||||
@@ -139,8 +141,6 @@ metadata:
|
|||||||
resourceVersion: "7225"
|
resourceVersion: "7225"
|
||||||
uid: c280ad2e-e916-11e8-98f2-025000000001
|
uid: c280ad2e-e916-11e8-98f2-025000000001
|
||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
|
||||||
config.yaml: YXBpVXJsOiAiaHR0cHM6Ly9teS5hcGkuY29tL2FwaS92MSIKdXNlcm5hbWU6IHt7dXNlcm5hbWV9fQpwYXNzd29yZDoge3twYXNzd29yZH19
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The commands `kubectl get` and `kubectl describe` avoid showing the contents of a `Secret` by
|
The commands `kubectl get` and `kubectl describe` avoid showing the contents of a `Secret` by
|
||||||
@@ -168,6 +168,8 @@ Results in the following Secret:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
username: YWRtaW5pc3RyYXRvcg==
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: 2018-11-15T20:46:46Z
|
creationTimestamp: 2018-11-15T20:46:46Z
|
||||||
@@ -176,8 +178,6 @@ metadata:
|
|||||||
resourceVersion: "7579"
|
resourceVersion: "7579"
|
||||||
uid: 91460ecb-e917-11e8-98f2-025000000001
|
uid: 91460ecb-e917-11e8-98f2-025000000001
|
||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
|
||||||
username: YWRtaW5pc3RyYXRvcg==
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Where `YWRtaW5pc3RyYXRvcg==` decodes to `administrator`.
|
Where `YWRtaW5pc3RyYXRvcg==` decodes to `administrator`.
|
||||||
|
|||||||
Reference in New Issue
Block a user