Skip to content

Commit

Permalink
allowing annotations on the storage api and formio definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Jan 22, 2020
1 parent 874c54c commit 2e88a57
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions microservices/formio/helm/formio/templates/dbPVC.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ metadata:
chart: {{ template "formio.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.storageAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
spec:
accessModes:
- ReadWriteOnce
Expand Down
2 changes: 2 additions & 0 deletions microservices/formio/helm/formio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ nodeConfig: '{\"mongo\": \"mongodb://forumApi:password@ocwa-formio-mongo.ocwa:27

createDatabase: true
storageClassName: default
storageAnnotations:
- volume.beta.kubernetes.io/storage-provisioner: netapp.io/trident
dbPod:
persistence: /data/db
adminEnv: MONGO_INITDB_ROOT_USERNAME
Expand Down
3 changes: 3 additions & 0 deletions microservices/storageApi/helm/storage-api/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ template "ocwaStorageApi.fullname" . }}-minio-pvc
{{- with .Values.storageAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
labels:
app: {{ template "ocwaStorageApi.name" . }}-minio
chart: {{ template "ocwaStorageApi.chart" . }}
Expand Down
2 changes: 2 additions & 0 deletions microservices/storageApi/helm/storage-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ ingress:
tls: []

storageClassName: default
storageAnnotations:
- volume.beta.kubernetes.io/storage-provisioner: netapp.io/trident
storageSize: 1Gi


Expand Down

0 comments on commit 2e88a57

Please sign in to comment.