_warnings.tpl 650 B

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