Skip to content
Snippets Groups Projects
Verified Commit 14861122 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

fix(hedgedoc): Futureproof helm chart

This patch adds the unreleased healthcheck path as well as setting
hedgedoc up for PSS of restricted.
parent 309ea066
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ keywords:
sources:
- https://github.com/hedgedoc/hedgedoc/tree/master
- https://git.shivering-isles.com/shivering-isles/infrastructure-gitops/-/tree/main/charts/hedgedoc
version: 0.2.3
version: 0.3.0
# renovate: image=quay.io/hedgedoc/hedgedoc
appVersion: 1.9.7
maintainers:
......
# hedgedoc
![Version: 0.2.3](https://img.shields.io/badge/Version-0.2.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.9.7](https://img.shields.io/badge/AppVersion-1.9.7-informational?style=flat-square)
![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.9.7](https://img.shields.io/badge/AppVersion-1.9.7-informational?style=flat-square)
A platform to write and share markdown.
......@@ -72,7 +72,10 @@ A platform to write and share markdown.
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | |
| podSecurityContext | object | `{}` | |
| podSecurityContext.allowPrivilegeEscalation | bool | `false` | |
| podSecurityContext.capabilities.drop[0] | string | `"ALL"` | |
| podSecurityContext.fsGroup | int | `10000` | |
| podSecurityContext.seccompProfile.type | string | `"RuntimeDefault"` | |
| postgresql.auth.database | string | `"hedgedoc"` | |
| postgresql.auth.existingSecret | string | `""` | |
| postgresql.auth.password | string | `""` | |
......@@ -80,7 +83,9 @@ A platform to write and share markdown.
| postgresql.enabled | bool | `true` | |
| postgresql.tls.enabled | bool | `false` | |
| resources | object | `{}` | |
| securityContext | object | `{}` | |
| securityContext.readOnlyRootFilesystem | bool | `true` | |
| securityContext.runAsNonRoot | bool | `true` | |
| securityContext.runAsUser | int | `10000` | |
| service.port | int | `80` | |
| service.type | string | `"ClusterIP"` | |
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
......
......@@ -52,11 +52,19 @@ spec:
protocol: TCP
livenessProbe:
httpGet:
{{- if (semverCompare ">1.9.7" .Chart.AppVersion)}}
path: /_health
{{- else }}
path: /status
{{- end }}
port: http
readinessProbe:
httpGet:
{{- if (semverCompare ">1.9.7" .Chart.AppVersion)}}
path: /_health
{{- else }}
path: /status
{{- end }}
port: http
{{- if .Values.postgresql.tls.enabled }}
volumeMounts:
......
......@@ -73,7 +73,7 @@ should match basic snapshot:
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /status
path: /_health
port: http
name: hedgedoc
ports:
......@@ -82,11 +82,21 @@ should match basic snapshot:
protocol: TCP
readinessProbe:
httpGet:
path: /status
path: /_health
port: http
resources: {}
securityContext: {}
securityContext: {}
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10000
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
fsGroup: 10000
seccompProfile:
type: RuntimeDefault
serviceAccountName: RELEASE-NAME-hedgedoc
3: |
apiVersion: networking.k8s.io/v1
......
......@@ -66,16 +66,19 @@ postgresql:
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
podSecurityContext:
allowPrivilegeEscalation: false
fsGroup: 10000
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10000
service:
type: ClusterIP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment