相关疑难解决方法(0)

将发布时间戳附加到头盔模板名称

I'm struggling with finding a way to include the Release.Time builtin as part of a helm name.

If I just include it as: name: {{ template "myapp.name" . }}-{{ .Release.Time }}

Dry run shows this: name: myapp-seconds:1534946206 nanos:143228281

It seems like this is a *timestamp.Timestamp object or something because {{ .Release.Time | trimPrefix "seconds:" | trunc 10 }} outputs wrong type for value; expected string; got *timestamp.Timestamp

I can hack the string parsing by doing: {{ .Release.Time | toString | …

kubernetes kubernetes-helm

7
推荐指数
1
解决办法
2386
查看次数

标签 统计

kubernetes ×1

kubernetes-helm ×1