Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

82
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

0

You can use the below instead.

{{ now | unixEpoch }}
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda