Files
chart/library/ix-dev/community/passbolt/templates/_passbolt.tpl
Stavros Kois 7513fcf82b add passbolt to community train (#1650)
* init commit

* add `passbolt` to `community` train

* roofs

* mount var run

* probes

* try init user

* fix app url

* add metadata

* remove init user

* add questions and revert to user 33

* plump hostnet and add hostnet values for ci

* fix perms and UI
2023-10-20 23:59:13 +03:00

60 lines
2.0 KiB
Smarty

{{- define "passbolt.workload" -}}
workload:
passbolt:
enabled: true
primary: true
type: Deployment
podSpec:
hostNetwork: {{ .Values.passboltNetwork.hostNetwork }}
containers:
passbolt:
enabled: true
primary: true
imageSelector: image
securityContext:
runAsUser: 33
runAsGroup: 33
readOnlyRootFilesystem: false
envFrom:
- secretRef:
name: passbolt-creds
- configMapRef:
name: passbolt-config
{{ with .Values.passboltConfig.additionalEnvs }}
envList:
{{ range $env := . }}
- name: {{ $env.name }}
value: {{ $env.value }}
{{ end }}
{{ end }}
probes:
{{- $port := 8080 -}}
{{- $protocol := "http" -}}
{{- if .Values.passboltNetwork.certificateID -}}
{{- $port = 4433 -}}
{{- $protocol = "https" -}}
{{- end }}
liveness:
enabled: true
type: {{ $protocol }}
port: {{ $port }}
path: /healthcheck/status
readiness:
enabled: true
type: {{ $protocol }}
port: {{ $port }}
path: /healthcheck/status
startup:
enabled: true
type: {{ $protocol }}
port: {{ $port }}
path: /healthcheck/status
initContainers:
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
"UID" 33
"GID" 33
"type" "install") | nindent 8 }}
{{- include "ix.v1.common.app.mariadbWait" (dict "name" "02-mariadb-wait"
"secretName" "mariadb-creds") | nindent 8 }}
{{- end -}}