kubernetes-helmsprig-template-functions

Alternative for .Release.Time in Helm v3


Since Helm v3 built-in object .Release.Time is removed.

What is the preferred way of injecting a release time into a template now?


Solution

  • It looks like one of the sprig date functions is the way to go now.

    For example:

    metadata:
        annotations:
            timestamp: {{ now | quote }}