Kaynağa Gözat

Merge pull request #13445 from richardkchapman/helm-standard

HPCC-23649 Rename utils.tpl and add standard templates
Gavin Halliday 5 yıl önce
ebeveyn
işleme
b1e1916c1e

+ 21 - 21
dockerfiles/hpcc/templates/_util.tpl

@@ -1,7 +1,7 @@
 {{/*
 {{/*
 Expand the name of the chart.
 Expand the name of the chart.
 */}}
 */}}
-{{- define "hpcc.utils.name" -}}
+{{- define "hpcc.name" -}}
 {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
 {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
 {{- end -}}
 {{- end -}}
 
 
@@ -10,7 +10,7 @@ Create a default fully qualified app name.
 We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
 We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
 If release name contains chart name it will be used as a full name.
 If release name contains chart name it will be used as a full name.
 */}}
 */}}
-{{- define "hpcc.utils.fullname" -}}
+{{- define "hpcc.fullname" -}}
 {{- if .Values.fullnameOverride -}}
 {{- if .Values.fullnameOverride -}}
 {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
 {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
 {{- else -}}
 {{- else -}}
@@ -26,12 +26,12 @@ If release name contains chart name it will be used as a full name.
 {{/*
 {{/*
 Create chart name and version as used by the chart label.
 Create chart name and version as used by the chart label.
 */}}
 */}}
-{{- define "hpcc.utils.chart" -}}
+{{- define "hpcc.chart" -}}
 {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
 {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
 {{- end -}}
 {{- end -}}
 
 
 {{- /* Translate a port list to a comma-separated list */ -}}
 {{- /* Translate a port list to a comma-separated list */ -}}
-{{- define "hpcc.utils.portListToCommas" -}}
+{{- define "hpcc.portListToCommas" -}}
  {{- if hasPrefix "[]" (typeOf .) -}}
  {{- if hasPrefix "[]" (typeOf .) -}}
   {{- $local := dict "first" true -}}
   {{- $local := dict "first" true -}}
   {{- range $key, $value := . -}}{{- if not $local.first -}},{{- end -}}{{- $value -}}{{- $_ := set $local "first" false -}}{{- end -}}
   {{- range $key, $value := . -}}{{- if not $local.first -}},{{- end -}}{{- $value -}}{{- $_ := set $local "first" false -}}{{- end -}}
@@ -42,7 +42,7 @@ Create chart name and version as used by the chart label.
 
 
 {{- /* Generate local config info into config section */ -}}
 {{- /* Generate local config info into config section */ -}}
 {{- /* Pass in a dictionary with root and me defined */ -}}
 {{- /* Pass in a dictionary with root and me defined */ -}}
-{{- define "hpcc.utils.generateComponentConfigMap" -}}
+{{- define "hpcc.generateComponentConfigMap" -}}
 {{- if hasKey .me "configFile" -}}
 {{- if hasKey .me "configFile" -}}
 {{- $filename := (printf "files/%s" .me.configFile) -}}
 {{- $filename := (printf "files/%s" .me.configFile) -}}
 {{- .me.name -}}.yaml: |
 {{- .me.name -}}.yaml: |
@@ -55,7 +55,7 @@ Create chart name and version as used by the chart label.
 
 
 {{- /* Generate a ConfigMap for a component */ -}}
 {{- /* Generate a ConfigMap for a component */ -}}
 {{- /* Pass in a dictionary with root and me defined */ -}}
 {{- /* Pass in a dictionary with root and me defined */ -}}
-{{- define "hpcc.utils.generateConfigMap" }}
+{{- define "hpcc.generateConfigMap" }}
 kind: ConfigMap 
 kind: ConfigMap 
 apiVersion: v1 
 apiVersion: v1 
 metadata:
 metadata:
@@ -66,61 +66,61 @@ data:
     Global:
     Global:
       imageVersion: {{ .root.Values.global.image.version | quote }}
       imageVersion: {{ .root.Values.global.image.version | quote }}
       singleNode: {{ .root.Values.global.singleNode }}
       singleNode: {{ .root.Values.global.singleNode }}
-{{ include "hpcc.utils.generateComponentConfigMap" . | indent 2 }}
+{{ include "hpcc.generateComponentConfigMap" . | indent 2 }}
 {{ end -}}
 {{ end -}}
 
 
 {{- /* Add a ConfigMap volume for a component */ -}}
 {{- /* Add a ConfigMap volume for a component */ -}}
-{{- define "hpcc.utils.addConfigVolume" -}}
+{{- define "hpcc.addConfigVolume" -}}
 - name: {{ .name }}-configmap-volume
 - name: {{ .name }}-configmap-volume
   configMap:
   configMap:
     name: {{ .name }}-configmap
     name: {{ .name }}-configmap
 {{- end -}}
 {{- end -}}
 
 
 {{- /* Add a ConfigMap volume mount for a component */ -}}
 {{- /* Add a ConfigMap volume mount for a component */ -}}
-{{- define "hpcc.utils.addConfigVolumeMount" -}}
+{{- define "hpcc.addConfigVolumeMount" -}}
 - name: {{ .name }}-configmap-volume
 - name: {{ .name }}-configmap-volume
   mountPath: /etc/config
   mountPath: /etc/config
 {{- end -}}
 {{- end -}}
 
 
 {{- /* Add data volume mount for a component */ -}}
 {{- /* Add data volume mount for a component */ -}}
-{{- define "hpcc.utils.addDataVolumeMount" -}}
+{{- define "hpcc.addDataVolumeMount" -}}
 - name: datastorage-pv
 - name: datastorage-pv
   mountPath: "/var/lib/HPCCSystems/hpcc-data"
   mountPath: "/var/lib/HPCCSystems/hpcc-data"
 {{- end -}}
 {{- end -}}
 
 
 {{- /* Add standard volumes for a component */ -}}
 {{- /* Add standard volumes for a component */ -}}
-{{- define "hpcc.utils.addVolumes" -}}
+{{- define "hpcc.addVolumes" -}}
 - name: dllserver-pv-storage
 - name: dllserver-pv-storage
   persistentVolumeClaim:
   persistentVolumeClaim:
-    claimName: {{ .Values.global.dllserver.existingClaim | default (printf "%s-dllserver-pv-claim" (include "hpcc.utils.fullname" .)) }}
+    claimName: {{ .Values.global.dllserver.existingClaim | default (printf "%s-dllserver-pv-claim" (include "hpcc.fullname" .)) }}
 - name: datastorage-pv
 - name: datastorage-pv
   persistentVolumeClaim:
   persistentVolumeClaim:
-    claimName: {{ .Values.global.dataStorage.existingClaim | default (printf "%s-datastorage-pv-claim" (include "hpcc.utils.fullname" .)) }}
+    claimName: {{ .Values.global.dataStorage.existingClaim | default (printf "%s-datastorage-pv-claim" (include "hpcc.fullname" .)) }}
 {{- end -}}
 {{- end -}}
 
 
 {{- /* Add standard volume mounts for a component */ -}}
 {{- /* Add standard volume mounts for a component */ -}}
-{{- define "hpcc.utils.addVolumeMounts" -}}
+{{- define "hpcc.addVolumeMounts" -}}
 volumeMounts:
 volumeMounts:
-{{ include "hpcc.utils.addConfigVolumeMount" . }}
-{{ include "hpcc.utils.addDataVolumeMount" . }}
+{{ include "hpcc.addConfigVolumeMount" . }}
+{{ include "hpcc.addDataVolumeMount" . }}
 - name: dllserver-pv-storage
 - name: dllserver-pv-storage
   mountPath: "/var/lib/HPCCSystems/queries"
   mountPath: "/var/lib/HPCCSystems/queries"
 {{- end -}}
 {{- end -}}
 
 
 {{- /* Add config arg for a component */ -}}
 {{- /* Add config arg for a component */ -}}
-{{- define "hpcc.utils.configArg" -}}
+{{- define "hpcc.configArg" -}}
 {{- if or (hasKey . "configFile") (hasKey . "config") -}}
 {{- if or (hasKey . "configFile") (hasKey . "config") -}}
 "--config=/etc/config/{{ .name }}.yaml", {{ end -}}
 "--config=/etc/config/{{ .name }}.yaml", {{ end -}}
 "--global=/etc/config/global.yaml"
 "--global=/etc/config/global.yaml"
 {{- end -}}
 {{- end -}}
 
 
 {{- /* Add dali arg for a component */ -}}
 {{- /* Add dali arg for a component */ -}}
-{{- define "hpcc.utils.daliArg" -}}
+{{- define "hpcc.daliArg" -}}
 "--daliServers={{ (index .Values.dali 0).name }}"
 "--daliServers={{ (index .Values.dali 0).name }}"
 {{- end -}}
 {{- end -}}
 
 
 {{- /* Get image name */ -}}
 {{- /* Get image name */ -}}
-{{- define "hpcc.utils.imageName" -}}
+{{- define "hpcc.imageName" -}}
 {{- /* Pass in a dictionary with root, me and imagename defined */ -}}
 {{- /* Pass in a dictionary with root, me and imagename defined */ -}}
 {{- if .me.image -}}
 {{- if .me.image -}}
 {{ .me.image.root | default .root.Values.global.image.root | default "hpccsystems" }}/{{ .imagename }}:{{ .me.image.version | default .root.Values.global.image.version }}
 {{ .me.image.root | default .root.Values.global.image.root | default "hpccsystems" }}/{{ .imagename }}:{{ .me.image.version | default .root.Values.global.image.version }}
@@ -131,8 +131,8 @@ volumeMounts:
 
 
 {{- /* Add image attributes for a component */ -}}
 {{- /* Add image attributes for a component */ -}}
 {{- /* Pass in a dictionary with root, me and imagename defined */ -}}
 {{- /* Pass in a dictionary with root, me and imagename defined */ -}}
-{{- define "hpcc.utils.addImageAttrs" -}}
-image: {{ include "hpcc.utils.imageName" . | quote }}
+{{- define "hpcc.addImageAttrs" -}}
+image: {{ include "hpcc.imageName" . | quote }}
 {{ if .me.image -}}
 {{ if .me.image -}}
 imagePullPolicy: {{ .me.image.pullPolicy | default .root.Values.global.image.pullPolicy | default "IfNotPresent" }}
 imagePullPolicy: {{ .me.image.pullPolicy | default .root.Values.global.image.pullPolicy | default "IfNotPresent" }}
 {{- else -}}
 {{- else -}}

+ 5 - 5
dockerfiles/hpcc/templates/dali.yaml

@@ -16,15 +16,15 @@ spec:
       containers:
       containers:
       - name: {{ .name | quote }}
       - name: {{ .name | quote }}
         args: [
         args: [
-                # {{ include "hpcc.utils.configArg" . }} - dali does not support this yet
+                # {{ include "hpcc.configArg" . }} - dali does not support this yet
               ]
               ]
-{{ include "hpcc.utils.addImageAttrs" (dict "root" $ "me" . "imagename" "dali") | indent 8 }}
+{{ include "hpcc.addImageAttrs" (dict "root" $ "me" . "imagename" "dali") | indent 8 }}
         volumeMounts:
         volumeMounts:
-{{ include "hpcc.utils.addConfigVolumeMount" . | indent 8 }}
+{{ include "hpcc.addConfigVolumeMount" . | indent 8 }}
       volumes:
       volumes:
-{{ include "hpcc.utils.addConfigVolume" . | indent 6 }}
+{{ include "hpcc.addConfigVolume" . | indent 6 }}
 ---
 ---
-{{- include "hpcc.utils.generateConfigMap" (dict "root" $ "me" .) -}}
+{{- include "hpcc.generateConfigMap" (dict "root" $ "me" .) -}}
 ---
 ---
 apiVersion: v1
 apiVersion: v1
 kind: Service
 kind: Service

+ 3 - 3
dockerfiles/hpcc/templates/datastorage.yaml

@@ -2,12 +2,12 @@
 apiVersion: v1
 apiVersion: v1
 kind: PersistentVolumeClaim
 kind: PersistentVolumeClaim
 metadata:
 metadata:
-  name: {{ printf "%s-datastorage-pv-claim" (include "hpcc.utils.fullname" .) }}
+  name: {{ printf "%s-datastorage-pv-claim" (include "hpcc.fullname" .) }}
   labels:
   labels:
-    app.kubernetes.io/name: {{ printf "%s-datastorage-pv-claim" (include "hpcc.utils.fullname" .) }}
+    app.kubernetes.io/name: {{ printf "%s-datastorage-pv-claim" (include "hpcc.fullname" .) }}
     app.kubernetes.io/instance: {{ .Release.Name }}
     app.kubernetes.io/instance: {{ .Release.Name }}
     app.kubernetes.io/managed-by: {{ .Release.Service }}
     app.kubernetes.io/managed-by: {{ .Release.Service }}
-    helm.sh/chart: {{ include "hpcc.utils.chart" . }}
+    helm.sh/chart: {{ include "hpcc.chart" . }}
 spec:
 spec:
   accessModes:
   accessModes:
     - ReadWriteMany
     - ReadWriteMany

+ 3 - 3
dockerfiles/hpcc/templates/dllserver-claim.yaml

@@ -2,12 +2,12 @@
 apiVersion: v1
 apiVersion: v1
 kind: PersistentVolumeClaim
 kind: PersistentVolumeClaim
 metadata:
 metadata:
-  name: {{ printf "%s-dllserver-pv-claim" (include "hpcc.utils.fullname" .) }}
+  name: {{ printf "%s-dllserver-pv-claim" (include "hpcc.fullname" .) }}
   labels:
   labels:
-    app.kubernetes.io/name: {{ printf "%s-dllserver-pv-claim" (include "hpcc.utils.fullname" .) }}
+    app.kubernetes.io/name: {{ printf "%s-dllserver-pv-claim" (include "hpcc.fullname" .) }}
     app.kubernetes.io/instance: {{ .Release.Name }}
     app.kubernetes.io/instance: {{ .Release.Name }}
     app.kubernetes.io/managed-by: {{ .Release.Service }}
     app.kubernetes.io/managed-by: {{ .Release.Service }}
-    helm.sh/chart: {{ include "hpcc.utils.chart" . }}
+    helm.sh/chart: {{ include "hpcc.chart" . }}
 spec:
 spec:
   accessModes:
   accessModes:
     - ReadWriteMany
     - ReadWriteMany

+ 13 - 13
dockerfiles/hpcc/templates/eclagent.yaml

@@ -17,16 +17,16 @@ spec:
       containers:
       containers:
       - name: {{ .name | quote }}
       - name: {{ .name | quote }}
         args: [ 
         args: [ 
-                {{ include "hpcc.utils.configArg" . }},
-                {{ include "hpcc.utils.daliArg" $ }}
+                {{ include "hpcc.configArg" . }},
+                {{ include "hpcc.daliArg" $ }}
               ]
               ]
-{{ include "hpcc.utils.addImageAttrs" (dict "root" $ "me" . "imagename" "eclagent") | indent 8 }}
-{{ include "hpcc.utils.addVolumeMounts" . | indent 8 }}
+{{ include "hpcc.addImageAttrs" (dict "root" $ "me" . "imagename" "eclagent") | indent 8 }}
+{{ include "hpcc.addVolumeMounts" . | indent 8 }}
       volumes:
       volumes:
-{{ include "hpcc.utils.addConfigVolume" . | indent 6 }}
-{{ include "hpcc.utils.addVolumes" $ | indent 6 }}
+{{ include "hpcc.addConfigVolume" . | indent 6 }}
+{{ include "hpcc.addVolumes" $ | indent 6 }}
 ---
 ---
-{{- include "hpcc.utils.generateConfigMap" (dict "root" $ "me" .) }}
+{{- include "hpcc.generateConfigMap" (dict "root" $ "me" .) }}
   jobspec.yaml: |
   jobspec.yaml: |
     apiVersion: batch/v1
     apiVersion: batch/v1
     kind: Job
     kind: Job
@@ -38,7 +38,7 @@ spec:
         spec:
         spec:
           containers:
           containers:
           - name: %jobname
           - name: %jobname
-            image: {{ include "hpcc.utils.imageName" (dict "root" $ "me" . "imagename" "eclagent") }}
+            image: {{ include "hpcc.imageName" (dict "root" $ "me" . "imagename" "eclagent") }}
             resources:
             resources:
               requests:
               requests:
                 #request-memory
                 #request-memory
@@ -48,14 +48,14 @@ spec:
                 #limit-cpu
                 #limit-cpu
             command: [
             command: [
                         "eclagent",
                         "eclagent",
-                        {{ include "hpcc.utils.configArg" . }},
-                        {{ include "hpcc.utils.daliArg" $ }},
+                        {{ include "hpcc.configArg" . }},
+                        {{ include "hpcc.daliArg" $ }},
                         %args
                         %args
                      ]
                      ]
-{{ include "hpcc.utils.addVolumeMounts" . | indent 12 }}
+{{ include "hpcc.addVolumeMounts" . | indent 12 }}
           volumes:
           volumes:
-{{ include "hpcc.utils.addConfigVolume" . | indent 10 }}
-{{ include "hpcc.utils.addVolumes" $ | indent 10 }}
+{{ include "hpcc.addConfigVolume" . | indent 10 }}
+{{ include "hpcc.addVolumes" $ | indent 10 }}
           restartPolicy: Never
           restartPolicy: Never
       backoffLimit: 0
       backoffLimit: 0
       
       

+ 13 - 13
dockerfiles/hpcc/templates/eclccserver.yaml

@@ -19,16 +19,16 @@ spec:
       - name: {{ .name | quote }}
       - name: {{ .name | quote }}
         args: [
         args: [
                 "--containerPerCompile=1",
                 "--containerPerCompile=1",
-                {{ include "hpcc.utils.configArg" . }},
-                {{ include "hpcc.utils.daliArg" $ }}
+                {{ include "hpcc.configArg" . }},
+                {{ include "hpcc.daliArg" $ }}
               ]
               ]
-{{ include "hpcc.utils.addImageAttrs" (dict "root" $ "me" . "imagename" "eclccserver") | indent 8 }}
-{{ include "hpcc.utils.addVolumeMounts" . | indent 8 }}
+{{ include "hpcc.addImageAttrs" (dict "root" $ "me" . "imagename" "eclccserver") | indent 8 }}
+{{ include "hpcc.addVolumeMounts" . | indent 8 }}
       volumes:
       volumes:
-{{ include "hpcc.utils.addConfigVolume" . | indent 6 }}
-{{ include "hpcc.utils.addVolumes" $ | indent 6 }}
+{{ include "hpcc.addConfigVolume" . | indent 6 }}
+{{ include "hpcc.addVolumes" $ | indent 6 }}
 ---
 ---
-{{- include "hpcc.utils.generateConfigMap" (dict "root" $ "me" .) }}
+{{- include "hpcc.generateConfigMap" (dict "root" $ "me" .) }}
   jobspec.yaml: |
   jobspec.yaml: |
     apiVersion: batch/v1
     apiVersion: batch/v1
     kind: Job
     kind: Job
@@ -40,7 +40,7 @@ spec:
         spec:
         spec:
           containers:
           containers:
           - name: %jobname
           - name: %jobname
-            image: {{ include "hpcc.utils.imageName" (dict "root" $ "me" . "imagename" "eclccserver") }}
+            image: {{ include "hpcc.imageName" (dict "root" $ "me" . "imagename" "eclccserver") }}
             resources:
             resources:
               requests:
               requests:
                 #request-memory
                 #request-memory
@@ -50,14 +50,14 @@ spec:
                 #limit-cpu
                 #limit-cpu
             command: [
             command: [
                         "eclccserver",
                         "eclccserver",
-                        {{ include "hpcc.utils.configArg" . }},
-                        {{ include "hpcc.utils.daliArg" $ }},
+                        {{ include "hpcc.configArg" . }},
+                        {{ include "hpcc.daliArg" $ }},
                         %args
                         %args
                      ]
                      ]
-{{ include "hpcc.utils.addVolumeMounts" . | indent 12 }}
+{{ include "hpcc.addVolumeMounts" . | indent 12 }}
           volumes:
           volumes:
-{{ include "hpcc.utils.addConfigVolume" . | indent 10 }}
-{{ include "hpcc.utils.addVolumes" $ | indent 10 }}
+{{ include "hpcc.addConfigVolume" . | indent 10 }}
+{{ include "hpcc.addVolumes" $ | indent 10 }}
           restartPolicy: Never
           restartPolicy: Never
       backoffLimit: 0
       backoffLimit: 0
       
       

+ 7 - 7
dockerfiles/hpcc/templates/esp.yaml

@@ -16,16 +16,16 @@ spec:
       containers:
       containers:
       - name: {{ .name | quote }}
       - name: {{ .name | quote }}
         args: [
         args: [
-                # {{ include "hpcc.utils.configArg" . }},
-                # {{ include "hpcc.utils.daliArg" $ }}
+                # {{ include "hpcc.configArg" . }},
+                # {{ include "hpcc.daliArg" $ }}
               ]
               ]
-{{ include "hpcc.utils.addImageAttrs" (dict "root" $ "me" . "imagename" "esp") | indent 8 }}
-{{ include "hpcc.utils.addVolumeMounts" . | indent 8 }}
+{{ include "hpcc.addImageAttrs" (dict "root" $ "me" . "imagename" "esp") | indent 8 }}
+{{ include "hpcc.addVolumeMounts" . | indent 8 }}
       volumes:
       volumes:
-{{ include "hpcc.utils.addConfigVolume" . | indent 6 }}
-{{ include "hpcc.utils.addVolumes" $ | indent 6 }}
+{{ include "hpcc.addConfigVolume" . | indent 6 }}
+{{ include "hpcc.addVolumes" $ | indent 6 }}
 ---
 ---
-{{- include "hpcc.utils.generateConfigMap" (dict "root" $ "me" .) -}}
+{{- include "hpcc.generateConfigMap" (dict "root" $ "me" .) -}}
 ---
 ---
 apiVersion: v1
 apiVersion: v1
 kind: Service
 kind: Service

+ 8 - 8
dockerfiles/hpcc/templates/localroxie.yaml

@@ -19,19 +19,19 @@ spec:
       containers:
       containers:
       - name: {{ $roxie.name | quote }}
       - name: {{ $roxie.name | quote }}
         args: [
         args: [
-                {{ include "hpcc.utils.configArg" $roxie }},
-                {{ include "hpcc.utils.daliArg" $ }},
-                "--serverPorts={{ template "hpcc.utils.portListToCommas" $roxie.ports }}", 
+                {{ include "hpcc.configArg" $roxie }},
+                {{ include "hpcc.daliArg" $ }},
+                "--serverPorts={{ template "hpcc.portListToCommas" $roxie.ports }}", 
                 "--localSlave=true",
                 "--localSlave=true",
                 "--resolveLocally=false"
                 "--resolveLocally=false"
               ]
               ]
-{{ include "hpcc.utils.addImageAttrs" (dict "root" $ "me" . "imagename" "roxie") | indent 8 }}
-{{ include "hpcc.utils.addVolumeMounts" . | indent 8 }}
+{{ include "hpcc.addImageAttrs" (dict "root" $ "me" . "imagename" "roxie") | indent 8 }}
+{{ include "hpcc.addVolumeMounts" . | indent 8 }}
       volumes:
       volumes:
-{{ include "hpcc.utils.addConfigVolume" . | indent 6 }}
-{{ include "hpcc.utils.addVolumes" $ | indent 6 }}
+{{ include "hpcc.addConfigVolume" . | indent 6 }}
+{{ include "hpcc.addVolumes" $ | indent 6 }}
 ---
 ---
-{{- include "hpcc.utils.generateConfigMap" (dict "root" $ "me" $roxie ) -}}
+{{- include "hpcc.generateConfigMap" (dict "root" $ "me" $roxie ) -}}
 ---
 ---
 {{- end }}
 {{- end }}
 {{- end }}
 {{- end }}

+ 18 - 18
dockerfiles/hpcc/templates/roxie.yaml

@@ -21,11 +21,11 @@ spec:
       containers:
       containers:
       - name: {{ $toponame | quote }}
       - name: {{ $toponame | quote }}
         args: [ "--port={{ $topoport }}" ]
         args: [ "--port={{ $topoport }}" ]
-{{ include "hpcc.utils.addImageAttrs" (dict "root" $ "me" $roxie "imagename" "toposerver") | indent 8 }}
+{{ include "hpcc.addImageAttrs" (dict "root" $ "me" $roxie "imagename" "toposerver") | indent 8 }}
         volumeMounts:
         volumeMounts:
-{{ include "hpcc.utils.addConfigVolumeMount" . | indent 8 }}
+{{ include "hpcc.addConfigVolumeMount" . | indent 8 }}
       volumes:
       volumes:
-{{ include "hpcc.utils.addConfigVolume" . | indent 6 }}
+{{ include "hpcc.addConfigVolume" . | indent 6 }}
 
 
 ---
 ---
 
 
@@ -44,7 +44,7 @@ spec:
 
 
 ---
 ---
 
 
-{{- include "hpcc.utils.generateConfigMap" (dict "root" $ "me" $roxie) -}}
+{{- include "hpcc.generateConfigMap" (dict "root" $ "me" $roxie) -}}
 
 
 ---
 ---
 
 
@@ -67,19 +67,19 @@ spec:
       containers:
       containers:
       - name: {{ $servername | quote }}
       - name: {{ $servername | quote }}
         args: [
         args: [
-                {{ include "hpcc.utils.configArg" . }},
-                {{ include "hpcc.utils.daliArg" $ }},
+                {{ include "hpcc.configArg" . }},
+                {{ include "hpcc.daliArg" $ }},
                 "--numChannels={{ $numChannels }}",
                 "--numChannels={{ $numChannels }}",
-                "--serverPorts={{ template "hpcc.utils.portListToCommas" $roxie.ports }}", 
+                "--serverPorts={{ template "hpcc.portListToCommas" $roxie.ports }}", 
                 "--topologyServers={{ $toponame }}:{{ $roxie.topoport }}",
                 "--topologyServers={{ $toponame }}:{{ $roxie.topoport }}",
                 "--localSlave=false", 
                 "--localSlave=false", 
                 "--resolveLocally=false"
                 "--resolveLocally=false"
               ]
               ]
-{{ include "hpcc.utils.addImageAttrs" (dict "root" $ "me" $roxie "imagename" "roxie") | indent 8 }}
-{{ include "hpcc.utils.addVolumeMounts" . | indent 8 }}
+{{ include "hpcc.addImageAttrs" (dict "root" $ "me" $roxie "imagename" "roxie") | indent 8 }}
+{{ include "hpcc.addVolumeMounts" . | indent 8 }}
       volumes:
       volumes:
-{{ include "hpcc.utils.addConfigVolume" . | indent 6 }}
-{{ include "hpcc.utils.addVolumes" $ | indent 6 }}
+{{ include "hpcc.addConfigVolume" . | indent 6 }}
+{{ include "hpcc.addVolumes" $ | indent 6 }}
 ---
 ---
 
 
 {{ end -}}
 {{ end -}}
@@ -104,19 +104,19 @@ spec:
       containers:
       containers:
       - name: {{ $name | quote}}
       - name: {{ $name | quote}}
         args: [ 
         args: [ 
-                {{ include "hpcc.utils.configArg" $roxie }},
-                {{ include "hpcc.utils.daliArg" $ }},
+                {{ include "hpcc.configArg" $roxie }},
+                {{ include "hpcc.daliArg" $ }},
                 "--channels={{ $channel }}", 
                 "--channels={{ $channel }}", 
-                "--serverPorts={{ if not $roxie.serverReplicas }}{{ template "hpcc.utils.portListToCommas" $roxie.ports }}{{ end }}",
+                "--serverPorts={{ if not $roxie.serverReplicas }}{{ template "hpcc.portListToCommas" $roxie.ports }}{{ end }}",
                 "--numChannels={{ $numChannels }}",
                 "--numChannels={{ $numChannels }}",
                 "--localSlave=false", 
                 "--localSlave=false", 
                 "--topologyServers={{ $toponame }}:{{ $roxie.topoport }}",
                 "--topologyServers={{ $toponame }}:{{ $roxie.topoport }}",
               ]
               ]
-{{ include "hpcc.utils.addImageAttrs" (dict "root" $ "me" $roxie "imagename" "roxie") | indent 8 }}
-{{ include "hpcc.utils.addVolumeMounts" $roxie | indent 8 }}
+{{ include "hpcc.addImageAttrs" (dict "root" $ "me" $roxie "imagename" "roxie") | indent 8 }}
+{{ include "hpcc.addVolumeMounts" $roxie | indent 8 }}
       volumes:
       volumes:
-{{ include "hpcc.utils.addConfigVolume" . | indent 6 }}
-{{ include "hpcc.utils.addVolumes" $ | indent 6 }}
+{{ include "hpcc.addConfigVolume" . | indent 6 }}
+{{ include "hpcc.addVolumes" $ | indent 6 }}
 
 
 ---
 ---
 
 

+ 13 - 13
dockerfiles/hpcc/templates/thor.yaml

@@ -22,16 +22,16 @@ spec:
         ports:
         ports:
           - containerPort: {{ $masterPort }}
           - containerPort: {{ $masterPort }}
         args: [
         args: [
-                {{ include "hpcc.utils.configArg" . }},
-                {{ include "hpcc.utils.daliArg" $ }},
+                {{ include "hpcc.configArg" . }},
+                {{ include "hpcc.daliArg" $ }},
                 --masterport={{ $masterPort }},
                 --masterport={{ $masterPort }},
                 --numSlaves={{ $thor.numSlaves }}
                 --numSlaves={{ $thor.numSlaves }}
               ]
               ]
-{{ include "hpcc.utils.addImageAttrs" (dict "root" $ "me" . "imagename" "thormaster") | indent 8 }}
-{{ include "hpcc.utils.addVolumeMounts" . | indent 8 }}
+{{ include "hpcc.addImageAttrs" (dict "root" $ "me" . "imagename" "thormaster") | indent 8 }}
+{{ include "hpcc.addVolumeMounts" . | indent 8 }}
       volumes:
       volumes:
-{{ include "hpcc.utils.addConfigVolume" . | indent 6 }}
-{{ include "hpcc.utils.addVolumes" $ | indent 6 }}
+{{ include "hpcc.addConfigVolume" . | indent 6 }}
+{{ include "hpcc.addVolumes" $ | indent 6 }}
 ---
 ---
 apiVersion: apps/v1
 apiVersion: apps/v1
 kind: Deployment
 kind: Deployment
@@ -50,18 +50,18 @@ spec:
       containers:
       containers:
         - name: {{ $slaveName | quote }}
         - name: {{ $slaveName | quote }}
           args: [
           args: [
-                  {{ include "hpcc.utils.configArg" . }},
-                  {{ include "hpcc.utils.daliArg" $ }},
+                  {{ include "hpcc.configArg" . }},
+                  {{ include "hpcc.daliArg" $ }},
                   --slaveport={{ $slavePort }},
                   --slaveport={{ $slavePort }},
                   --master={{ printf "%s:%v" $serviceName $masterPort }}
                   --master={{ printf "%s:%v" $serviceName $masterPort }}
                 ]
                 ]
-{{ include "hpcc.utils.addImageAttrs" (dict "root" $ "me" . "imagename" "thorslave") | indent 10 }}
+{{ include "hpcc.addImageAttrs" (dict "root" $ "me" . "imagename" "thorslave") | indent 10 }}
           ports:
           ports:
             - containerPort: {{ $slavePort }}
             - containerPort: {{ $slavePort }}
-{{ include "hpcc.utils.addVolumeMounts" . | indent 10 }}
+{{ include "hpcc.addVolumeMounts" . | indent 10 }}
       volumes:
       volumes:
-{{ include "hpcc.utils.addConfigVolume" . | indent 6 }}
-{{ include "hpcc.utils.addVolumes" $ | indent 6 }}
+{{ include "hpcc.addConfigVolume" . | indent 6 }}
+{{ include "hpcc.addVolumes" $ | indent 6 }}
 ---
 ---
 apiVersion: v1
 apiVersion: v1
 kind: Service
 kind: Service
@@ -76,5 +76,5 @@ spec:
     run: {{ .name | quote }}
     run: {{ .name | quote }}
   type: ClusterIP
   type: ClusterIP
 ---
 ---
-{{- include "hpcc.utils.generateConfigMap" (dict "root" $ "me" .) -}}
+{{- include "hpcc.generateConfigMap" (dict "root" $ "me" .) -}}
 {{- end }}
 {{- end }}

+ 1 - 1
dockerfiles/hpcc/values.yaml

@@ -15,7 +15,7 @@ global:
     # existingClaim: ""
     # existingClaim: ""
   
   
   dataStorage:
   dataStorage:
-    storageSize: 1G
+    storageSize: 1Gi
     ## If defined, storageClassName: <storageClass>
     ## If defined, storageClassName: <storageClass>
     ## If set to "-", storageClassName: "", which disables dynamic provisioning
     ## If set to "-", storageClassName: "", which disables dynamic provisioning
     ## If undefined (the default) or set to null, no storageClassName spec is
     ## If undefined (the default) or set to null, no storageClassName spec is