Skip to content

Commit

Permalink
update also cron runner and consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzondervan committed Apr 23, 2024
1 parent 29c8e34 commit fe98d2d
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 58 deletions.
Binary file modified api/helm/commonground-gateway-1.5.6.tgz
Binary file not shown.
19 changes: 18 additions & 1 deletion api/helm/commonground-gateway/templates/consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ spec:
- name: vendor
persistentVolumeClaim:
claimName: {{ include "commonground-gateway.fullname" . }}-vendor
{{- if .Values.security.postgresCert }}
- name: postgres-certificate
projected:
sources:
- secret:
name: {{ include "commonground-gateway.fullname" . }}-postgresCert
{{- end }}
initContainers:
- name: {{ include "commonground-gateway.fullname" . }}-init
securityContext:
Expand Down Expand Up @@ -86,7 +93,13 @@ spec:
- mountPath: /var/run/idp
name: idp-certificate
readOnly: true
{{- end }}
{{- end }}
{{- if .Values.security.postgresCert }}
- mountPath: /srv/api/var/certs/postgres.crt
subPath: certificate.crt
name: postgres-certificate
readOnly: true
{{- end }}
- mountPath: /srv/api/vendor
subPath: vendor
name: vendor
Expand Down Expand Up @@ -161,6 +174,8 @@ spec:
secretKeyRef:
key: database-url
name: {{ include "commonground-gateway.fullname" . }}
- name: DATABASE_ROOT_CERT
value: /srv/api/var/certs/postgres.crt
- name: CACHE_URL
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -247,6 +262,8 @@ spec:
configMapKeyRef:
key: redis-port
name: {{ include "commonground-gateway.fullname" . }}
- name: REDIS_PROTOCOL
value: {{ .Values.security.redisProtocol }}
{{- end }}
- name: SAML_ENABLED
valueFrom:
Expand Down
19 changes: 18 additions & 1 deletion api/helm/commonground-gateway/templates/cron-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,14 @@ spec:
- name: vendor
persistentVolumeClaim:
claimName: {{ include "commonground-gateway.fullname" . }}-vendor


{{- if .Values.security.postgresCert }}
- name: postgres-certificate
projected:
sources:
- secret:
name: {{ include "commonground-gateway.fullname" . }}-postgresCert
{{- end }}
initContainers:
- name: {{ include "commonground-gateway.fullname" . }}-init
securityContext:
Expand Down Expand Up @@ -120,6 +127,12 @@ spec:
subPath: bundles.php
name: vendor
readOnly: false
{{- if .Values.security.postgresCert }}
- mountPath: /srv/api/var/certs/postgres.crt
subPath: certificate.crt
name: postgres-certificate
readOnly: true
{{- end }}
args:
- bin/console
- cronjob:command
Expand Down Expand Up @@ -169,6 +182,8 @@ spec:
secretKeyRef:
key: database-url
name: {{ include "commonground-gateway.fullname" . }}
- name: DATABASE_ROOT_CERT
value: /srv/api/var/certs/postgres.crt
- name: CACHE_URL
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -257,6 +272,8 @@ spec:
configMapKeyRef:
key: redis-port
name: {{ include "commonground-gateway.fullname" . }}
- name: REDIS_PROTOCOL
value: {{ .Values.security.redisProtocol }}
{{- end }}
- name: SAML_ENABLED
valueFrom:
Expand Down
Loading

0 comments on commit fe98d2d

Please sign in to comment.