mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-13 19:01:10 -04:00
Merge pull request #40718 from janetkuo/secret-volume-describe-fix
Automatic merge from submit-queue (batch tested with PRs 40638, 40742, 40710, 40718, 40763)
Fix formatting issue of secret volume describer
Fixing a `kubectl describe` bug
**Before**:
```yaml
...
Volumes:
default-token-z7g96:
Type: Secret (a volume populated by a Secret)
SecretName: Optional: %v
%!(EXTRA string=default-token-z7g96, bool=false)QoS Class: BestEffort
...
```
**After**:
```yaml
...
Volumes:
default-token-z7g96:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-z7g96
Optional: false
QoS Class: BestEffort
...
```
This commit is contained in:
commit
dcf26ed855
1 changed files with 1 additions and 1 deletions
|
|
@ -694,7 +694,7 @@ func printGitRepoVolumeSource(git *api.GitRepoVolumeSource, w *PrefixWriter) {
|
|||
func printSecretVolumeSource(secret *api.SecretVolumeSource, w *PrefixWriter) {
|
||||
optional := secret.Optional != nil && *secret.Optional
|
||||
w.Write(LEVEL_2, "Type:\tSecret (a volume populated by a Secret)\n"+
|
||||
" SecretName:\t%v\n",
|
||||
" SecretName:\t%v\n"+
|
||||
" Optional:\t%v\n",
|
||||
secret.SecretName, optional)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue