[vikunja] removeOpenIdInitContainer and replace with general initContainers

This commit is contained in:
Jan-Niklas Weghorn 2024-02-09 23:05:06 +01:00
parent 42f9c8ab24
commit 0415c0a079
6 changed files with 37 additions and 27 deletions

View File

@ -1,6 +1,8 @@
# charts # charts
Here you can find a collection of oecis charts :) Here you can find a collection of oecis helm charts :)
You can see most of them in action at https://gitlab.com/oecis/fountain
# Publish charts # Publish charts

View File

@ -6,8 +6,8 @@ sources:
- https://kolaente.dev/vikunja/ - https://kolaente.dev/vikunja/
- https://gitlab.com/oecis/charts/-/tree/main/charts/vikunja - https://gitlab.com/oecis/charts/-/tree/main/charts/vikunja
type: application type: application
version: 0.1.3 version: 0.1.4
appVersion: "0.22.0" appVersion: "0.22.1"
dependencies: dependencies:
- condition: postgresql.enabled - condition: postgresql.enabled
name: postgresql name: postgresql

View File

@ -1,6 +1,6 @@
# vikunja # vikunja
![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.22.0](https://img.shields.io/badge/AppVersion-0.22.0-informational?style=flat-square) ![Version: 0.1.4](https://img.shields.io/badge/Version-0.1.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.22.1](https://img.shields.io/badge/AppVersion-0.22.1-informational?style=flat-square)
The to-do app to organize your life The to-do app to organize your life
@ -28,9 +28,12 @@ The to-do app to organize your life
| autoscaling.minReplicas | int | `1` | | | autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | | | autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| backend.extraEnv | list | `[]` | | | backend.extraEnv | list | `[]` | |
| backend.extraVolumeMounts | list | `[]` | |
| backend.extraVolumes | list | `[]` | |
| backend.image.pullPolicy | string | `"IfNotPresent"` | | | backend.image.pullPolicy | string | `"IfNotPresent"` | |
| backend.image.repository | string | `"vikunja/api"` | | | backend.image.repository | string | `"vikunja/api"` | |
| backend.image.tag | string | `"latest"` | | | backend.image.tag | string | `"latest"` | |
| backend.initContainers | list | `[]` | |
| backend.service.port | int | `3456` | | | backend.service.port | int | `3456` | |
| backend.service.type | string | `"ClusterIP"` | | | backend.service.type | string | `"ClusterIP"` | |
| config.cache.enabled | bool | `false` | | | config.cache.enabled | bool | `false` | |
@ -53,9 +56,12 @@ The to-do app to organize your life
| config.registration | bool | `true` | | | config.registration | bool | `true` | |
| config.taskAttachments | bool | `true` | | | config.taskAttachments | bool | `true` | |
| frontend.extraEnv | list | `[]` | | | frontend.extraEnv | list | `[]` | |
| frontend.extraVolumeMounts | list | `[]` | |
| frontend.extraVolumes | list | `[]` | |
| frontend.image.pullPolicy | string | `"IfNotPresent"` | | | frontend.image.pullPolicy | string | `"IfNotPresent"` | |
| frontend.image.repository | string | `"vikunja/frontend"` | | | frontend.image.repository | string | `"vikunja/frontend"` | |
| frontend.image.tag | string | `"latest"` | | | frontend.image.tag | string | `"latest"` | |
| frontend.initContainers | list | `[]` | |
| frontend.service.port | int | `80` | | | frontend.service.port | int | `80` | |
| frontend.service.type | string | `"ClusterIP"` | | | frontend.service.type | string | `"ClusterIP"` | |
| fullnameOverride | string | `""` | | | fullnameOverride | string | `""` | |
@ -67,9 +73,6 @@ The to-do app to organize your life
| ingress.tls | list | `[]` | | | ingress.tls | list | `[]` | |
| nameOverride | string | `""` | | | nameOverride | string | `""` | |
| nodeSelector | object | `{}` | | | nodeSelector | object | `{}` | |
| openIdInitContainer.config | object | `{}` | |
| openIdInitContainer.enabled | bool | `false` | |
| openIdInitContainer.env | list | `[]` | |
| podAnnotations | object | `{}` | | | podAnnotations | object | `{}` | |
| podSecurityContext | object | `{}` | | | podSecurityContext | object | `{}` | |
| postgresql.enabled | bool | `true` | | | postgresql.enabled | bool | `true` | |

View File

@ -27,21 +27,13 @@ spec:
serviceAccountName: {{ include "vikunja.serviceAccountName" . }} serviceAccountName: {{ include "vikunja.serviceAccountName" . }}
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if .Values.openIdInitContainer.enabled }} {{- if not (empty .Values.backend.extraVolumes ) }}
volumes: volumes:
- name: openid-config {{- toYaml .Values.backend.extraVolumes | nindent 8 }}
emptyDir: {{- end }}
medium: Memory {{- if not (empty .Values.backend.initContainers)}}
initContainers: initContainers:
- name: {{ .Chart.Name }}-openid-config-injector {{- toYaml .Values.backend.initContainers | nindent 10}}
image: busybox
volumeMounts:
- mountPath: /config
name: openid-config
command: ["/bin/sh"]
args: ["-c", {{ quote (printf "echo -e %q > /config/config.yaml" ( .Values.openIdInitContainer.config | toYaml ))}}]
env:
{{- toYaml .Values.openIdInitContainer.env | nindent 12}}
{{- end }} {{- end }}
containers: containers:
- name: {{ .Chart.Name }}-backend - name: {{ .Chart.Name }}-backend
@ -100,10 +92,9 @@ spec:
{{- if not (empty .Values.backend.extraEnv) }} {{- if not (empty .Values.backend.extraEnv) }}
{{- toYaml .Values.backend.extraEnv | nindent 12 }} {{- toYaml .Values.backend.extraEnv | nindent 12 }}
{{- end }} {{- end }}
{{- if .Values.openIdInitContainer.enabled }} {{- if not (empty .Values.backend.extraVolumeMounts) }}
volumeMounts: volumeMounts:
- mountPath: /etc/vikunja {{- toYaml .Values.backend.extraVolumeMounts | nindent 12 }}
name: openid-config
{{- end}} {{- end}}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:

View File

@ -27,6 +27,14 @@ spec:
serviceAccountName: {{ include "vikunja.serviceAccountName" . }} serviceAccountName: {{ include "vikunja.serviceAccountName" . }}
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if not (empty .Values.frontend.extraVolumes ) }}
volumes:
{{- toYaml .Values.frontend.extraVolumes | nindent 8 }}
{{- end }}
{{- if not (empty .Values.frontend.initContainers)}}
initContainers:
{{- toYaml .Values.frontend.initContainers | nindent 10}}
{{- end }}
containers: containers:
- name: {{ .Chart.Name }}-frontend - name: {{ .Chart.Name }}-frontend
securityContext: securityContext:
@ -51,6 +59,10 @@ spec:
env: env:
{{- toYaml .Values.backend.extraEnv | nindent 12 }} {{- toYaml .Values.backend.extraEnv | nindent 12 }}
{{- end }} {{- end }}
{{- if not (empty .Values.frontend.extraVolumeMounts) }}
volumeMounts:
{{- toYaml .Values.frontend.extraVolumeMounts | nindent 12 }}
{{- end}}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}

View File

@ -14,6 +14,9 @@ frontend:
type: ClusterIP type: ClusterIP
port: 80 port: 80
extraEnv: [] extraEnv: []
extraVolumes: []
extraVolumeMounts: []
initContainers: []
backend: backend:
image: image:
repository: vikunja/api repository: vikunja/api
@ -24,10 +27,9 @@ backend:
type: ClusterIP type: ClusterIP
port: 3456 port: 3456
extraEnv: [] extraEnv: []
openIdInitContainer: extraVolumes: []
enabled: false extraVolumeMounts: []
config: {} initContainers: []
env: []
ingress: ingress:
enabled: false enabled: false