Since Helm v3 built-in object .Release.Time
is removed.
What is the preferred way of injecting a release time into a template now?
The storage is changed in Helm 3 as follows: Releases are stored as Secrets by default. Storage is in the namespace of the release. Naming is changed to sh.
tpl? Helm allows for the use of Go templating in resource files for Kubernetes. A file named _helpers.tpl is usually used to define Go template helpers with this syntax: {{- define "yourFnName" -}} {{- printf "%s-%s" .Values.name .Values.version | trunc 63 -}} {{- end -}}
ReleaseName is the name you assigned to this installation instance. RevisionNumber is the value from the Helm history command. Namespace is the name space in which the BRM Kubernetes objects reside.
{{- (with the dash and space added) indicates that whitespace should be chomped left, while -}} means whitespace to the right should be consumed.
It looks like one of the sprig date functions is the way to go now.
For example:
metadata:
annotations:
timestamp: {{ now | quote }}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With