_warnings.tpl 580 B

1234567891011121314
  1. {{/* vim: set filetype=mustache: */}}
  2. {{/*
  3. Warning about using rolling tag.
  4. Usage:
  5. {{ include "common.warnings.rollingTag" .Values.path.to.the.imageRoot }}
  6. */}}
  7. {{- define "common.warnings.rollingTag" -}}
  8. {{- if and (contains "bitnami/" .repository) (not (.tag | toString | regexFind "-r\\d+$|sha256:")) }}
  9. WARNING: Rolling tag detected ({{ .repository }}:{{ .tag }}), please note that it is strongly recommended to avoid using rolling tags in a production environment.
  10. +info https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/
  11. {{- end }}
  12. {{- end -}}