fix(openproject): Update Helm chart to v8.0.0 and explicitly template resources.

This commit is contained in:
Thorsten Roßner
2024-09-24 18:05:31 +02:00
parent deacbc9db5
commit 91e34aabaa
9 changed files with 70 additions and 12 deletions

View File

@@ -159,7 +159,7 @@ variables:
- "no"
RUN_TESTS:
description: "Triggers execution of E2E-tests."
value: "yes"
value: "no"
options:
- "yes"
- "no"

View File

@@ -135,6 +135,21 @@ global:
xwiki: "wiki"
```
In case you would like to use the updated hostnames you at least have to apply some manual changes. But do this at
your own risk. Be also aware that some of your user's bookmarks and links will stop working.
- Update the affected portal tiles:
- All tiles in the "Files" category.
- The "Projects" tile in the "Management" category.
- There are two options to change the link for the portal tiles:
- Use an admin account to access the portal's edit mode (on the bottom of the sidebar portal's menu).
- Utilize the UDM REST API to update the portal tile objects.
- Update the hostnames for the OpenProject-Nextcloud integration using a functional admin user for both components:
- In OpenProject: *Administration* > *Files* > *External file storages* > Select `Nextcloud at [your_domain]`
Edit *Details* - *General Information* - *Storage provider* and update the *hostname* to `files.<your_domain>`.
- In Nextcloud: *Administration* > *OpenProject* > *OpenProject server* update the *OpenProject host* to
to `projects.<your_domain>`.
#### Updated `global.imagePullSecrets`
Without using a custom registry, you can pull all the openDesk images without authentication.

View File

@@ -16,6 +16,8 @@ cleanup:
keepPVCOnDelete: {{ .Values.debug.cleanup.keepPVCOnDelete }}
config:
debug:
enabled: {{ .Values.debug.enabled }}
openproject:
fileshareName: "Nextcloud at {{ .Values.global.domain }}"
admin:

View File

@@ -21,7 +21,7 @@ releases:
values:
- "values.yaml.gotmpl"
installed: {{ .Values.openproject.enabled }}
timeout: 900
timeout: 1500
commonLabels:
deploy-stage: "component-1"

View File

@@ -8,6 +8,10 @@ global:
imagePullSecrets:
{{ .Values.global.imagePullSecrets | toYaml | nindent 4 }}
appInit:
resources:
{{ .Values.resources.openprojectAppInit | toYaml | nindent 4 }}
containerSecurityContext:
enabled: true
privileged: false
@@ -24,6 +28,15 @@ containerSecurityContext:
seLinuxOptions:
{{ .Values.seLinuxOptions.openproject | toYaml | nindent 4 }}
dbInit:
image:
registry: {{ coalesce .Values.repositories.image.dockerHub .Values.global.imageRegistry .Values.images.openprojectDbInit.registry | quote }}
repository: {{ .Values.images.openprojectDbInit.repository | quote }}
tag: {{ .Values.images.openprojectDbInit.tag | quote }}
imagePullPolicy: {{ .Values.global.imagePullPolicy | quote }}
resources:
{{ .Values.resources.openprojectDbInit | toYaml | nindent 4 }}
environment:
# For more details and more options see
# https://www.openproject.org/docs/installation-and-operations/configuration/environment/
@@ -81,13 +94,6 @@ image:
imagePullPolicy: {{ .Values.global.imagePullPolicy | quote }}
tag: {{ .Values.images.openproject.tag | quote }}
initdb:
image:
registry: {{ coalesce .Values.repositories.image.dockerHub .Values.global.imageRegistry .Values.images.openprojectInitDb.registry | quote }}
repository: {{ .Values.images.openprojectInitDb.repository | quote }}
tag: {{ .Values.images.openprojectInitDb.tag | quote }}
imagePullPolicy: {{ .Values.global.imagePullPolicy | quote }}
memcached:
bundled: false
connection:
@@ -182,5 +188,12 @@ s3:
seederJob:
annotations:
intents.otterize.com/service-name: "openproject-seeder"
resources:
{{ .Values.resources.openprojectSeederJob | toYaml | nindent 4 }}
workers:
default:
resources:
{{ .Values.resources.openprojectWorkers | toYaml | nindent 6 }}
...

View File

@@ -236,7 +236,7 @@ charts:
registry: "registry.opencode.de"
repository: "bmi/opendesk/components/supplier/openproject/charts-mirror"
name: "openproject"
version: "7.0.0"
version: "8.0.0"
verify: true
openprojectBootstrap:
# providerCategory: "Platform"

View File

@@ -576,7 +576,7 @@ images:
registry: "registry.opencode.de"
repository: "bmi/opendesk/components/platform-development/images/opendesk-openproject-bootstrap"
tag: "1.1.4@sha256:2fd97a316114428849aaeef87fb8755274e675830088a93afcafac91bb048d1d"
openprojectInitDb:
openprojectDbInit:
# providerCategory: "Community"
# providerResponsible: "OpenProject"
# upstreamRegistry: "https://registry-1.docker.io"

View File

@@ -275,6 +275,34 @@ resources:
requests:
cpu: 0.1
memory: "768Mi"
openprojectDbInit:
limits:
cpu: 99
memory: "768Mi"
requests:
cpu: 0.1
memory: "256Mi"
openprojectAppInit:
limits:
cpu: 99
memory: "768Mi"
requests:
cpu: 0.1
memory: "256Mi"
openprojectSeederJob:
limits:
cpu: 99
memory: "768Mi"
requests:
cpu: 0.1
memory: "256Mi"
openprojectWorkers:
limits:
cpu: 99
memory: "4Gi"
requests:
cpu: 0.25
memory: "512Mi"
openxchangeCoreDocumentConverter:
limits:
cpu: 99

View File

@@ -41,7 +41,7 @@ seLinuxOptions:
opendeskKeycloakBootstrap: ~
openproject: ~
openprojectBootstrap: ~
openprojectInitDb: ~
openprojectDbInit: ~
openxchangeBootstrap: ~
openxchangeCoreGuidedtours: ~
openxchangeCoreMW: ~