feat(argo-workflows): Allow NodePort to be specified for server service (#938)

* Allow NodePort to be specified for server service.

Signed-off-by: Peter Oruba <peter@oruba.de>

* Different version number and different condition in NodePort setting evaluation, both as per PR review suggested.

Signed-off-by: Peter Oruba <peter@oruba.de>
This commit is contained in:
Peter O 2021-09-27 09:14:34 +02:00 committed by GitHub
parent 87a83c3aad
commit 735f212f96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v2
name: argo-workflows name: argo-workflows
description: A Helm chart for Argo Workflows description: A Helm chart for Argo Workflows
type: application type: application
version: 0.6.0 version: 0.7.0
appVersion: "v3.1.8" appVersion: "v3.1.8"
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
@ -15,4 +15,4 @@ maintainers:
- name: benjaminws - name: benjaminws
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- "[Added]: Add controller metricsConfig.portName parameter" - "[Added]: Add server.serviceNodePort parameter"

View file

@ -17,6 +17,9 @@ spec:
name: {{ . }} name: {{ . }}
{{- end }} {{- end }}
targetPort: 2746 targetPort: 2746
{{- if and (eq .Values.server.serviceType "NodePort") .Values.server.serviceNodePort }}
nodePort: {{ .Values.server.serviceNodePort }}
{{- end }}
selector: selector:
{{- include "argo-workflows.selectorLabels" (dict "context" . "name" .Values.server.name) | nindent 4 }} {{- include "argo-workflows.selectorLabels" (dict "context" . "name" .Values.server.name) | nindent 4 }}
sessionAffinity: None sessionAffinity: None

View file

@ -223,6 +223,7 @@ server:
name: server name: server
serviceType: ClusterIP serviceType: ClusterIP
servicePort: 2746 servicePort: 2746
# serviceNodePort: 32746
# servicePortName: http # servicePortName: http
serviceAccount: serviceAccount:
create: true create: true