Skip to content

Commit

Permalink
Merge pull request kubernetes#71553 from WanLinghao/token-projected-v…
Browse files Browse the repository at this point in the history
…olume-fix

fix a bug in 'kubectl describe'
  • Loading branch information
k8s-ci-robot authored Dec 3, 2018
2 parents d158952 + a8639e5 commit dde084f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kubectl/describe/versioned/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit dde084f

Please sign in to comment.