feat(argo-rollouts): Add ability to define dashboard service node port (#1138)

* feat(argo-rollouts): Add ability to define dashboard service node port

Signed-off-by: Jean Mainguy <9969006+jhandguy@users.noreply.github.com>

* Apply changes from code review

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
Jean Mainguy 2022-02-21 00:01:39 +01:00 committed by GitHub
parent 1aabc80985
commit 3be6c52a64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View file

@ -34,6 +34,9 @@ spec:
protocol: TCP
port: {{ .Values.dashboard.service.port }}
targetPort: {{ .Values.dashboard.service.targetPort }}
{{- if and (eq .Values.dashboard.service.type "NodePort") .Values.dashboard.service.nodePort }}
nodePort: {{ .Values.dashboard.service.nodePort }}
{{- end }}
selector:
app.kubernetes.io/component: {{ .Values.dashboard.component }}
{{- include "argo-rollouts.selectorLabels" . | nindent 4 }}