X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=tutorials%2FApacheCNF%2Ftemplates%2Fcba%2FTemplates%2Fk8s-configs%2Fdeployment-config%2Fcharts%2Fcommon%2Ftemplates%2F_warnings.tpl;fp=tutorials%2FApacheCNF%2Ftemplates%2Fcba%2FTemplates%2Fk8s-configs%2Fdeployment-config%2Fcharts%2Fcommon%2Ftemplates%2F_warnings.tpl;h=ae10fa41ee7de24aa566849a262c92b2af82cd20;hb=a112ebd160d3acc20e6766d8550d757a0581797d;hp=0000000000000000000000000000000000000000;hpb=f491b9fa0e1f5481065f9071aca469180635778e;p=demo.git diff --git a/tutorials/ApacheCNF/templates/cba/Templates/k8s-configs/deployment-config/charts/common/templates/_warnings.tpl b/tutorials/ApacheCNF/templates/cba/Templates/k8s-configs/deployment-config/charts/common/templates/_warnings.tpl new file mode 100644 index 00000000..ae10fa41 --- /dev/null +++ b/tutorials/ApacheCNF/templates/cba/Templates/k8s-configs/deployment-config/charts/common/templates/_warnings.tpl @@ -0,0 +1,14 @@ +{{/* vim: set filetype=mustache: */}} +{{/* +Warning about using rolling tag. +Usage: +{{ include "common.warnings.rollingTag" .Values.path.to.the.imageRoot }} +*/}} +{{- define "common.warnings.rollingTag" -}} + +{{- if and (contains "bitnami/" .repository) (not (.tag | toString | regexFind "-r\\d+$|sha256:")) }} +WARNING: Rolling tag detected ({{ .repository }}:{{ .tag }}), please note that it is strongly recommended to avoid using rolling tags in a production environment. ++info https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/ +{{- end }} + +{{- end -}}