Merge pull request #71553 from WanLinghao/token-projected-volume-fix

fix a bug in 'kubectl describe'
pull/564/head
Kubernetes Prow Robot 2018-12-02 22:44:15 -08:00 committed by GitHub
commit dde084fc55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -881,8 +881,8 @@ func printProjectedVolumeSource(projected *corev1.ProjectedVolumeSource, w Prefi
" ConfigMapOptional:\t%v\n",
source.ConfigMap.Name, source.ConfigMap.Optional)
} else if source.ServiceAccountToken != nil {
w.Write(LEVEL_2, "TokenExpirationSeconds:\t%v\n",
source.ServiceAccountToken.ExpirationSeconds)
w.Write(LEVEL_2, "TokenExpirationSeconds:\t%d\n",
*source.ServiceAccountToken.ExpirationSeconds)
}
}
}