Sfoglia il codice sorgente

HPCC-23663 Remove configFile option for overriding entire config in helm

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 5 anni fa
parent
commit
7456f394a2
1 ha cambiato i file con 1 aggiunte e 7 eliminazioni
  1. 1 7
      dockerfiles/hpcc/templates/_helpers.tpl

+ 1 - 7
dockerfiles/hpcc/templates/_helpers.tpl

@@ -43,19 +43,13 @@ Create chart name and version as used by the chart label.
 {{/*
 Generate local config info into config section
 */}}
-{{- /* Pass in a dictionary with root, component and me defined */ -}}
+{{- /* Pass in a dictionary with component and me defined */ -}}
 {{- define "hpcc.generateComponentConfigMap" -}}
-{{- if hasKey .me "configFile" -}}
-{{- $filename := (printf "files/%s" .me.configFile) -}}
-{{- .me.name -}}.yaml: |
-{{ tpl (.root.Files.Get $filename) .root | indent 2 -}}
-{{- else -}}
 {{- .me.name -}}.yaml: |
   version: 1.0
   {{ .component }}:
 {{ toYaml .me | indent 4 -}}
 {{- end -}}
-{{- end -}}
 
 {{- /* Generate a ConfigMap for a component */ -}}
 {{- /* Pass in a dictionary with root, component and me defined */ -}}