mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 22:33:34 +00: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
@ -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 New Issue
Block a user