Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

81
Views
helm 3 .Release.time.Seconds does not exist

I am now working in the migration from helm 2 to 3.

I am using the value of .Release.time.Seconds in my charts. I have seen that in helm 3 .Release.time does not exists. Trying to use now as it is explained in this stackoverflow question, I can do the instalation, but I do not get the expected value.

For example, with the following code:

 template:
    metadata:
      labels:
        dateInSeconds: "{{ .Release.Time.Seconds }}" 

The label gets the value dateInSeconds: 1611923156

If I use the now function:

 template:
    metadata:
      labels:
        dateInSeconds: {{ now | quote }}  

The label gets the value dateInSeconds: "2021-02-01 12:05:28.6116854 +0100 CET m=+2.394553701"

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

I have found the solution in sprig. For getting the epoch time I can use unixEpoch.

So the solution is:

template:
    metadata:
      labels:
        dateInSeconds: {{ now | unixEpoch | quote}}   
over 4 years ago · Santiago Trujillo Report

0

You can use the below instead.

{{ now | unixEpoch }}
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!