Disable deploying ui service when ui is disabled
**Why** We had previoulsy removed the UI deployment, but not the service. This potentially poses a security hole.
This commit is contained in:
parent
7343110ebf
commit
c3f6c2626d
2 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
apiVersion: v1
|
||||
description: A Helm chart for Kubernetes
|
||||
name: argo
|
||||
version: 0.2.0
|
||||
version: 0.2.1
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{ if .Values.ui.enabled }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
|
@ -15,3 +16,4 @@ spec:
|
|||
app: {{ .Release.Name }}-{{ .Values.uiName}}
|
||||
sessionAffinity: None
|
||||
type: {{ .Values.uiServiceType }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue