common.yaml 883 B

1234567891011121314151617181920212223
  1. {{- include "ix.v1.common.loader.init" . -}}
  2. {{/* Merge the templates with Values */}}
  3. {{- $_ := mustMergeOverwrite .Values (include "ddns.workload" $ | fromYaml) -}}
  4. {{- $_ := mustMergeOverwrite .Values (include "ddns.configuration" $ | fromYaml) -}}
  5. {{/* Create the configmap for portal manually*/}}
  6. {{- include "ddns.portal" $ -}}
  7. {{- $warnings := list -}}
  8. {{- range $item := .Values.ddnsConfig.config -}}
  9. {{- if $item.host -}}
  10. {{- $warnings = mustAppend $warnings (printf "- Provider [%s] has deprecated [Host] field set, with value [%s]" $item.provider $item.host) -}}
  11. {{- end -}}
  12. {{- end -}}
  13. {{- if $warnings -}}
  14. {{- $text := "WARNING: The following providers have deprecated fields set:" -}}
  15. {{- $text = printf "%s\n%s" $text (join "\n" $warnings) -}}
  16. {{- $_ := set .Values.notes "custom" $text -}}
  17. {{- end -}}
  18. {{- include "ix.v1.common.loader.apply" . -}}