Skip to content

Commit

Permalink
Update dbaas-operator chart to suit latest version of dbaas-operator (#…
Browse files Browse the repository at this point in the history
…32)

* chore: update dbaas-operator chart to suit latest version of dbaas-operator

* chore: add the enable providers feature flags

* chore: add the enable providers feature flags

* chore: formatting
  • Loading branch information
shreddedbacon authored Feb 15, 2022
1 parent 8d054b0 commit f5dea5c
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/dbaas-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ maintainers:

type: application

version: 0.2.1
version: 0.2.2

appVersion: v0.1.6
appVersion: v0.2.2
12 changes: 12 additions & 0 deletions charts/dbaas-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,24 @@ spec:
{{- toYaml .Values.securityContext | nindent 10 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion}}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: 5000
name: backend
command:
- /manager
{{- with .Values.extraArgs }}
args:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.enableMariaDBProviders }}
- --enable-mariadb-providers
{{- end }}
{{- if .Values.enableMongoDBProviders }}
- --enable-mongodb-providers
{{- end }}
{{- if .Values.enablePostreSQLProviders }}
- --enable-postgresql-providers
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 10 }}
{{- with .Values.nodeSelector }}
Expand Down
14 changes: 14 additions & 0 deletions charts/dbaas-operator/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,17 @@ spec:
name: https
selector:
{{- include "dbaas-operator.selectorLabels" . | nindent 4 }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "dbaas-operator.fullname" . }}-http
labels:
{{- include "dbaas-operator.labels" . | nindent 4 }}
spec:
ports:
- name: backend
port: 5000
targetPort: backend
selector:
{{- include "dbaas-operator.selectorLabels" . | nindent 4 }}
6 changes: 6 additions & 0 deletions charts/dbaas-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ extraArgs:
- "--metrics-addr=127.0.0.1:8080"
- "--enable-leader-election=true"

# enable the providers
# by default mariadb is enabled and the others are disabled
enableMariaDBProviders: true
enableMongoDBProviders: false
enablePostreSQLProviders: false

image:
repository: amazeeio/dbaas-operator
pullPolicy: IfNotPresent
Expand Down

0 comments on commit f5dea5c

Please sign in to comment.