Skip to content

Commit

Permalink
Merge pull request #2 from snapp-incubator/disable-ui-option
Browse files Browse the repository at this point in the history
Disable UI option
  • Loading branch information
mehditeymorian authored Dec 29, 2022
2 parents 93db825 + f9a8c85 commit 15f50c2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion debezium/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
---
{{- if .Values.ui.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -103,4 +104,5 @@ spec:
{{- with .Values.ui.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end}}
2 changes: 1 addition & 1 deletion debezium/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
{{- if .Values.ui.ingress.enabled -}}
{{- if and .Values.ui.ingress.enabled .Values.ui.enabled -}}
apiVersion: route.openshift.io/v1
kind: Route
metadata:
Expand Down
2 changes: 2 additions & 0 deletions debezium/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
selector:
{{- include "debezium.selectorLabels.connect" . | nindent 4 }}
---
{{- if .Values.ui.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -30,3 +31,4 @@ spec:
name: {{ .Values.ui.service.name}}
selector:
{{- include "debezium.selectorLabels.ui" . | nindent 4 }}
{{- end}}
1 change: 1 addition & 0 deletions debezium/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ connect:
value: debezium_connect_statuses

ui:
enabled: true
replicaCount: 1
imagePullSecrets: [ ]

Expand Down

0 comments on commit 15f50c2

Please sign in to comment.