Alternative for .Release.Time in Helm v3
Asked Answered
C

1

11

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

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

Crook answered 10/4, 2020 at 12:52 Comment(1)
All I've found so far is this thread: github.com/helm/helm/issues/5732Crook
C
9

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

For example:

metadata:
    annotations:
        timestamp: {{ now | quote }}
Crook answered 10/4, 2020 at 15:35 Comment(1)
At least from the implementation standpoint, using now always returns a new value while the .Release.time might not (from a quick code read, it looks like its getting initalizied once). Depending on what you do with 'now' it might not be the same as .Release.timeBeitris

© 2022 - 2024 — McMap. All rights reserved.