mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #71553 from WanLinghao/token-projected-volume-fix
fix a bug in 'kubectl describe'
This commit is contained in:
commit
dde084fc55
@ -881,8 +881,8 @@ func printProjectedVolumeSource(projected *corev1.ProjectedVolumeSource, w Prefi
|
|||||||
" ConfigMapOptional:\t%v\n",
|
" ConfigMapOptional:\t%v\n",
|
||||||
source.ConfigMap.Name, source.ConfigMap.Optional)
|
source.ConfigMap.Name, source.ConfigMap.Optional)
|
||||||
} else if source.ServiceAccountToken != nil {
|
} else if source.ServiceAccountToken != nil {
|
||||||
w.Write(LEVEL_2, "TokenExpirationSeconds:\t%v\n",
|
w.Write(LEVEL_2, "TokenExpirationSeconds:\t%d\n",
|
||||||
source.ServiceAccountToken.ExpirationSeconds)
|
*source.ServiceAccountToken.ExpirationSeconds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user