Skip to content

Commit

Permalink
Merge pull request kubernetes#27424 from Shubham82/fix-secret_content…
Browse files Browse the repository at this point in the history
…_layout

Modified the output when retrieving Secrets.
  • Loading branch information
k8s-ci-robot authored May 10, 2021
2 parents 448df54 + 2b822af commit 98ae77b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ The output is similar to:

```yaml
apiVersion: v1
data:
config.yaml: YXBpVXJsOiAiaHR0cHM6Ly9teS5hcGkuY29tL2FwaS92MSIKdXNlcm5hbWU6IHt7dXNlcm5hbWV9fQpwYXNzd29yZDoge3twYXNzd29yZH19
kind: Secret
metadata:
creationTimestamp: 2018-11-15T20:40:59Z
Expand All @@ -139,8 +141,6 @@ metadata:
resourceVersion: "7225"
uid: c280ad2e-e916-11e8-98f2-025000000001
type: Opaque
data:
config.yaml: YXBpVXJsOiAiaHR0cHM6Ly9teS5hcGkuY29tL2FwaS92MSIKdXNlcm5hbWU6IHt7dXNlcm5hbWV9fQpwYXNzd29yZDoge3twYXNzd29yZH19
```

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

```yaml
apiVersion: v1
data:
username: YWRtaW5pc3RyYXRvcg==
kind: Secret
metadata:
creationTimestamp: 2018-11-15T20:46:46Z
Expand All @@ -176,8 +178,6 @@ metadata:
resourceVersion: "7579"
uid: 91460ecb-e917-11e8-98f2-025000000001
type: Opaque
data:
username: YWRtaW5pc3RyYXRvcg==
```

Where `YWRtaW5pc3RyYXRvcg==` decodes to `administrator`.
Expand Down

0 comments on commit 98ae77b

Please sign in to comment.