* Deprecation warning for cross namespace parameters `builderNamespace`, `functionNamespace` and `disableOwnerReference` flag. * Do not mention the version --------- Signed-off-by: Md Soharab Ansari <soharab.ansari@infracloud.io>
21 lines
758 B
Smarty
21 lines
758 B
Smarty
{{- define "deprecationWarnings" -}}
|
|
{{- $deprecations := list -}}
|
|
|
|
{{- if .Values.builderNamespace -}}
|
|
{{- $deprecations = append $deprecations "The 'builderNamespace' parameter is deprecated and will be removed in future release." -}}
|
|
{{- end -}}
|
|
|
|
{{- if .Values.functionNamespace -}}
|
|
{{- $deprecations = append $deprecations "The 'functionNamespace' parameter is deprecated and will be removed in future release." -}}
|
|
{{- end -}}
|
|
|
|
{{- if .Values.disableOwnerReference -}}
|
|
{{- $deprecations = append $deprecations "The 'disableOwnerReference' flag is temporary addition and will be removed in future release." -}}
|
|
{{- end -}}
|
|
|
|
{{- if $deprecations -}}
|
|
{{- range $deprecations }}
|
|
{{- printf "WARNING: %s" . | nindent 0 }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}} |