upgrade vikunja to version 0.23.0

This commit is contained in:
Jan-Niklas Weghorn 2024-02-21 17:57:53 +01:00
parent 0415c0a079
commit 64d260491a
8 changed files with 67 additions and 187 deletions

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.4 version: 0.1.5
appVersion: "0.22.1" appVersion: "0.23.0"
dependencies: dependencies:
- condition: postgresql.enabled - condition: postgresql.enabled
name: postgresql name: postgresql

View File

@ -1,6 +1,6 @@
# vikunja # vikunja
![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) ![Version: 0.1.5](https://img.shields.io/badge/Version-0.1.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.23.0](https://img.shields.io/badge/AppVersion-0.23.0-informational?style=flat-square)
The to-do app to organize your life The to-do app to organize your life
@ -27,15 +27,6 @@ The to-do app to organize your life
| autoscaling.maxReplicas | int | `100` | | | autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | | | autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | | | autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| backend.extraEnv | list | `[]` | |
| backend.extraVolumeMounts | list | `[]` | |
| backend.extraVolumes | list | `[]` | |
| backend.image.pullPolicy | string | `"IfNotPresent"` | |
| backend.image.repository | string | `"vikunja/api"` | |
| backend.image.tag | string | `"latest"` | |
| backend.initContainers | list | `[]` | |
| backend.service.port | int | `3456` | |
| backend.service.type | string | `"ClusterIP"` | |
| config.cache.enabled | bool | `false` | | | config.cache.enabled | bool | `false` | |
| config.cache.maxElementSize | int | `1000` | | | config.cache.maxElementSize | int | `1000` | |
| config.cache.redis.enabled | bool | `false` | | | config.cache.redis.enabled | bool | `false` | |
@ -48,29 +39,29 @@ The to-do app to organize your life
| config.db.secretKeys.dbPasswordKey | string | `"user-password"` | | | config.db.secretKeys.dbPasswordKey | string | `"user-password"` | |
| config.db.type | string | `"postgres"` | | | config.db.type | string | `"postgres"` | |
| config.db.user | string | `""` | | | config.db.user | string | `""` | |
| config.frontendUrl | string | `"https://tasks.local"` | |
| config.jwt.existingSecret | string | `""` | | | config.jwt.existingSecret | string | `""` | |
| config.jwt.secretKeys.jwtSecretKey | string | `"jwt-secret"` | | | config.jwt.secretKeys.jwtSecretKey | string | `"jwt-secret"` | |
| config.linkSharing | bool | `true` | | | config.linkSharing | bool | `true` | |
| config.log.level | string | `"ERROR"` | | | config.log.level | string | `"ERROR"` | |
| config.publicUrl | string | `"https://tasks.local"` | |
| config.registration | bool | `true` | | | config.registration | bool | `true` | |
| config.taskAttachments | bool | `true` | | | config.taskAttachments | bool | `true` | |
| frontend.extraEnv | list | `[]` | | | extraEnv | list | `[]` | |
| frontend.extraVolumeMounts | list | `[]` | | | extraVolumeMounts | list | `[]` | |
| frontend.extraVolumes | list | `[]` | | | extraVolumes | list | `[]` | |
| frontend.image.pullPolicy | string | `"IfNotPresent"` | |
| frontend.image.repository | string | `"vikunja/frontend"` | |
| frontend.image.tag | string | `"latest"` | |
| frontend.initContainers | list | `[]` | |
| frontend.service.port | int | `80` | |
| frontend.service.type | string | `"ClusterIP"` | |
| fullnameOverride | string | `""` | | | fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"vikunja/vikunja"` | |
| image.tag | string | `""` | |
| imagePullSecrets | list | `[]` | | | imagePullSecrets | list | `[]` | |
| ingress.annotations | object | `{}` | | | ingress.annotations | object | `{}` | |
| ingress.className | string | `""` | | | ingress.className | string | `""` | |
| ingress.enabled | bool | `false` | | | ingress.enabled | bool | `false` | |
| ingress.hosts[0].host | string | `"tasks.local"` | | | ingress.hosts[0].host | string | `"tasks.local"` | |
| ingress.hosts[0].paths[0].path | string | `"/"` | |
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
| ingress.tls | list | `[]` | | | ingress.tls | list | `[]` | |
| initContainers | list | `[]` | |
| nameOverride | string | `""` | | | nameOverride | string | `""` | |
| nodeSelector | object | `{}` | | | nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | | | podAnnotations | object | `{}` | |
@ -81,6 +72,8 @@ The to-do app to organize your life
| replicaCount | int | `1` | | | replicaCount | int | `1` | |
| resources | object | `{}` | | | resources | object | `{}` | |
| securityContext | object | `{}` | | | securityContext | object | `{}` | |
| service.port | int | `3456` | |
| service.type | string | `"ClusterIP"` | |
| serviceAccount.annotations | object | `{}` | | | serviceAccount.annotations | object | `{}` | |
| serviceAccount.create | bool | `true` | | | serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | | | serviceAccount.name | string | `""` | |

View File

@ -1,15 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "vikunja.fullname" . }}-api
labels:
{{- include "vikunja.labels" . | nindent 4 }}
spec:
type: {{ .Values.backend.service.type }}
ports:
- port: {{ .Values.backend.service.port }}
targetPort: api
protocol: TCP
name: api
selector:
{{- include "vikunja.selectorLabels" . | nindent 4 }}

View File

@ -1,7 +1,7 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ include "vikunja.fullname" . }}-backend name: {{ include "vikunja.fullname" . }}
labels: labels:
{{- include "vikunja.labels" . | nindent 4 }} {{- include "vikunja.labels" . | nindent 4 }}
spec: spec:
@ -27,32 +27,32 @@ 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.backend.extraVolumes ) }} {{- if not (empty .Values.extraVolumes ) }}
volumes: volumes:
{{- toYaml .Values.backend.extraVolumes | nindent 8 }} {{- toYaml .Values.extraVolumes | nindent 8 }}
{{- end }} {{- end }}
{{- if not (empty .Values.backend.initContainers)}} {{- if not (empty .Values.initContainers)}}
initContainers: initContainers:
{{- toYaml .Values.backend.initContainers | nindent 10}} {{- toYaml .Values.initContainers | nindent 10}}
{{- end }} {{- end }}
containers: containers:
- name: {{ .Chart.Name }}-backend - name: {{ .Chart.Name }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.backend.image.repository }}:{{ .Values.backend.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.backend.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
ports: ports:
- name: api - name: http
containerPort: {{ .Values.backend.service.port }} containerPort: {{ .Values.service.port }}
protocol: TCP protocol: TCP
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /api/v1/info path: /api/v1/info
port: api port: http
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /api/v1/info path: /api/v1/info
port: api port: http
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
env: env:
@ -87,14 +87,14 @@ spec:
{{- end }} {{- end }}
- name: VIKUNJA_DATABASE_USER - name: VIKUNJA_DATABASE_USER
value: {{ .Values.config.db.user }} value: {{ .Values.config.db.user }}
- name: VIKUNJA_SERVICE_FRONTENDURL - name: VIKUNJA_SERVICE_PUBLICURL
value: {{ .Values.config.frontendUrl }} value: {{ .Values.config.publicUrl }}
{{- if not (empty .Values.backend.extraEnv) }} {{- if not (empty .Values.extraEnv) }}
{{- toYaml .Values.backend.extraEnv | nindent 12 }} {{- toYaml .Values.extraEnv | nindent 12 }}
{{- end }} {{- end }}
{{- if not (empty .Values.backend.extraVolumeMounts) }} {{- if not (empty .Values.extraVolumeMounts) }}
volumeMounts: volumeMounts:
{{- toYaml .Values.backend.extraVolumeMounts | nindent 12 }} {{- toYaml .Values.extraVolumeMounts | nindent 12 }}
{{- end}} {{- end}}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:

View File

@ -1,77 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "vikunja.fullname" . }}-frontend
labels:
{{- include "vikunja.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "vikunja.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "vikunja.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "vikunja.serviceAccountName" . }}
securityContext:
{{- 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:
- name: {{ .Chart.Name }}-frontend
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.frontend.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if not (empty .Values.backend.extraEnv) }}
env:
{{- toYaml .Values.backend.extraEnv | nindent 12 }}
{{- end }}
{{- if not (empty .Values.frontend.extraVolumeMounts) }}
volumeMounts:
{{- toYaml .Values.frontend.extraVolumeMounts | nindent 12 }}
{{- end}}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

View File

@ -1,5 +1,6 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "vikunja.fullname" . -}} {{- $fullName := include "vikunja.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} {{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
@ -40,33 +41,21 @@ spec:
- host: {{ .host | quote }} - host: {{ .host | quote }}
http: http:
paths: paths:
- path: / {{- range .paths }}
pathType: Prefix - path: {{ .path }}
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .pathType }}
{{- end }}
backend: backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service: service:
name: {{ $fullName }}-frontend name: {{ $fullName }}
port: port:
name: http number: {{ $svcPort }}
- path: /api {{- else }}
pathType: Prefix serviceName: {{ $fullName }}
backend: servicePort: {{ $svcPort }}
service: {{- end }}
name: {{ $fullName }}-api {{- end }}
port:
name: api
- path: /dav
pathType: Prefix
backend:
service:
name: {{ $fullName }}-api
port:
name: api
- path: /.well-known
pathType: Prefix
backend:
service:
name: {{ $fullName }}-api
port:
name: api
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -1,13 +1,13 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ include "vikunja.fullname" . }}-frontend name: {{ include "vikunja.fullname" . }}
labels: labels:
{{- include "vikunja.labels" . | nindent 4 }} {{- include "vikunja.labels" . | nindent 4 }}
spec: spec:
type: {{ .Values.frontend.service.type }} type: {{ .Values.service.type }}
ports: ports:
- port: {{ .Values.frontend.service.port }} - port: {{ .Values.service.port }}
targetPort: http targetPort: http
protocol: TCP protocol: TCP
name: http name: http

View File

@ -4,32 +4,19 @@
replicaCount: 1 replicaCount: 1
frontend: image:
image: repository: vikunja/vikunja
repository: vikunja/frontend pullPolicy: IfNotPresent
pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion.
# Overrides the image tag whose default is the chart appVersion. tag: ""
tag: latest service:
service: type: ClusterIP
type: ClusterIP port: 3456
port: 80
extraEnv: [] extraEnv: []
extraVolumes: [] extraVolumes: []
extraVolumeMounts: [] extraVolumeMounts: []
initContainers: [] initContainers: []
backend:
image:
repository: vikunja/api
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: latest
service:
type: ClusterIP
port: 3456
extraEnv: []
extraVolumes: []
extraVolumeMounts: []
initContainers: []
ingress: ingress:
enabled: false enabled: false
@ -39,6 +26,9 @@ ingress:
# kubernetes.io/tls-acme: "true" # kubernetes.io/tls-acme: "true"
hosts: hosts:
- host: tasks.local - host: tasks.local
paths:
- path: /
pathType: ImplementationSpecific
tls: [] tls: []
# - secretName: chart-example-tls # - secretName: chart-example-tls
@ -127,7 +117,7 @@ config:
existingSecret: "" existingSecret: ""
secretKeys: secretKeys:
dbPasswordKey: user-password dbPasswordKey: user-password
frontendUrl: https://tasks.local publicUrl: https://tasks.local
registration: true registration: true
linkSharing: true linkSharing: true
taskAttachments: true taskAttachments: true