我正在阅读文档,不清楚如何更改LAST-SCHEDULE
日期列的格式。对我来说,以小时( 4h )返回一个近似值:
kubectl get cronjob job-one
NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE
job-one 0 13 * * ? False 0 4h 20d
但在文档中格式不同,显示日期、时间和时区:
NAME SCHEDULE SUSPEND ACTIVE LAST-SCHEDULE
hello */1 * * * * False 0 Mon, 29 Aug 2016 14:34:00 -0700
如何更改格式LAST-SCHEDULE
以返回有关上次计划日期的更多信息?
客户结果kubectl version
:
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.0", GitCommit:"925c127ec6b946659ad0fd596fa959be43f0cc05", GitTreeState:"clean", BuildDate:"2017-12-15T21:07:38Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"windows/amd64"}