Allow disabling ui and deploying ui related resources (#31)
parent
c14d052fd7
commit
1205770646
|
@ -1,3 +1,4 @@
|
|||
{{- if .Values.ui.enabled -}}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
|
@ -27,3 +28,4 @@ rules:
|
|||
- get
|
||||
- list
|
||||
- watch
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if .Values.ui.enabled -}}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
|
@ -10,3 +11,4 @@ subjects:
|
|||
- kind: ServiceAccount
|
||||
name: {{ .Values.ui.serviceAccount }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if .Values.ui.enabled -}}
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
|
@ -30,3 +31,4 @@ spec:
|
|||
fieldPath: metadata.namespace
|
||||
- name: BASE_HREF
|
||||
value: /
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if .Values.ui.enabled -}}
|
||||
{{- if .Values.ui.ingress.enabled -}}
|
||||
{{- $serviceName := printf "%s-%s" .Release.Name .Values.ui.name -}}
|
||||
{{- $servicePort := .Values.ui.servicePort -}}
|
||||
|
@ -28,3 +29,4 @@ spec:
|
|||
{{ toYaml .Values.ui.ingress.tls | indent 4 }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{{- if .Values.ui.enabled -}}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ .Values.ui.serviceAccount }}
|
||||
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if .Values.ui.enabled -}}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
|
@ -21,3 +22,4 @@ spec:
|
|||
{{- if and (eq .Values.ui.serviceType "LoadBalancer") .Values.ui.loadBalancerSourceRanges }}
|
||||
loadBalancerSourceRanges:
|
||||
{{ toYaml .Values.ui.loadBalancerSourceRanges | indent 4 }}{{- end }}
|
||||
{{- end -}}
|
||||
|
|
|
@ -36,6 +36,7 @@ controller:
|
|||
globallevel: "0"
|
||||
|
||||
ui:
|
||||
enabled: true
|
||||
# optional map of annotations to be applied to the ui Pods
|
||||
podAnnotations: {}
|
||||
name: ui
|
||||
|
|
Loading…
Reference in New Issue