Skip to content

Commit

Permalink
Merge pull request #18912 from ghalliday/issue32299
Browse files Browse the repository at this point in the history
HPCC-32299 Improve coverage of helm regression tests

Reviewed-by: Jake Smith <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Jul 31, 2024
2 parents cba649e + 16be60c commit 76f5109
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helm/hpcc/templates/dafilesrv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Generate network policies for spray services to allow ingress from dfuservers
{{- if hasKey $networkPolicyCtx.dfuServerMap .name -}}
{{- $_ := set $commonCtx "allowedDfuServers" (concat $commonCtx.allowedDfuServers (get $networkPolicyCtx.dfuServerMap .name)) -}}
{{- end -}}
{{- if $commonCtx.allowedDfuServers -}}
{{- if $commonCtx.allowedDfuServers }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
Expand Down
2 changes: 1 addition & 1 deletion helm/hpcc/templates/roxie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ kind: ConfigMap

{{- $_ := set $commonCtx "instanceNames" list -}}
{{ if $roxie.serverReplicas -}}
{{ $_ := set $commonCtx "instanceNames" (list $servername) -}}
{{ $_ := set $commonCtx "instanceNames" (list $servername) }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
2 changes: 1 addition & 1 deletion helm/hpcc/templates/thor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ data:
accessDali: "yes"
accessEsp: "yes"
{{- include "hpcc.generateHelmVersion" . | nindent 12 }}
{{- include "hpcc.addStandardLabels" (dict "root" $ "component" "eclagent" "name" "thor" "instance" $eclAgentJobName "instanceOf" (printf "%s-job" .eclAgentName)) | indent 8 }}
{{- include "hpcc.addStandardLabels" (dict "root" $ "component" "eclagent" "name" "thor" "instance" $eclAgentJobName "instanceOf" (printf "%s-job" .eclAgentName)) | indent 12 }}
{{- if hasKey .me "labels" }}
{{ toYaml .me.labels | indent 12 }}
{{- end }}
Expand Down
31 changes: 31 additions & 0 deletions testing/helm/tests/furthercoverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This values file is here to exrcise all of the different paths in the helm chart.
# It is a copy of values.yaml, all changes are marked with #CHANGE.
#
# - roxie: Enabling server replicas in roxie
# - thor: eclAgentUseChildProcesses=false

roxie:
- name: roxie
disabled: false
prefix: roxie
services:
- name: roxie
servicePort: 9876
listenQueue: 200
numThreads: 30
visibility: local
replicas: 2
numChannels: 2
singleNode: false
traceLevel: 1
serverReplicas: 4 #CHANGE
topoServer:
replicas: 1

thor:
- name: thor
prefix: thor
numWorkers: 2
maxJobs: 4
maxGraphs: 2
eclAgentUseChildProcesses: false #CHANGE

0 comments on commit 76f5109

Please sign in to comment.