diff --git a/mantisbt/index.yaml b/mantisbt/index.yaml index 965a630..e9a0ed7 100644 --- a/mantisbt/index.yaml +++ b/mantisbt/index.yaml @@ -3,17 +3,17 @@ entries: mantisbt: - apiVersion: v2 appVersion: 2.27.0 - created: "2025-12-15T10:03:29.074451+01:00" + created: "2025-12-15T10:51:10.80467+01:00" dependencies: - condition: mariadb.enabled name: mariadb repository: https://charts.bitnami.com/bitnami version: 19.*.* description: MantisBT Bug Tracker - A Helm chart for Kubernetes - digest: 5c8bc1c903ff7cdedf94c806ee454bb62e6acbf786b3df41138ce0b7c5b0b504 + digest: 2675bba9281e3fadc4ae19f86a22eaa8aa1ac813d71e49afc38b94efa4de3ec1 name: mantisbt type: application urls: - - https://gitea.innovation-hub-niedersachsen.de/innohub/charts/raw/main/mantisbt/mantisbt-0.3.1.tgz - version: 0.3.1 -generated: "2025-12-15T10:03:29.07142+01:00" + - https://gitea.innovation-hub-niedersachsen.de/innohub/charts/raw/main/mantisbt/mantisbt-0.4.0.tgz + version: 0.4.0 +generated: "2025-12-15T10:51:10.801839+01:00" diff --git a/mantisbt/mantisbt-0.3.1.tgz b/mantisbt/mantisbt-0.3.1.tgz deleted file mode 100644 index 7e55358..0000000 Binary files a/mantisbt/mantisbt-0.3.1.tgz and /dev/null differ diff --git a/mantisbt/mantisbt-0.4.0.tgz b/mantisbt/mantisbt-0.4.0.tgz new file mode 100644 index 0000000..1e5c640 Binary files /dev/null and b/mantisbt/mantisbt-0.4.0.tgz differ diff --git a/mantisbt/mantisbt/Chart.lock b/mantisbt/mantisbt/Chart.lock index 9f9a896..2deacf1 100644 --- a/mantisbt/mantisbt/Chart.lock +++ b/mantisbt/mantisbt/Chart.lock @@ -3,4 +3,4 @@ dependencies: repository: https://charts.bitnami.com/bitnami version: 19.1.2 digest: sha256:25a0f863a58cb121e8d182e46a12f83d1d6ce7312008e10c49d3c04b6306b6c8 -generated: "2025-12-15T09:44:25.687429+01:00" +generated: "2025-12-15T10:50:43.663313+01:00" diff --git a/mantisbt/mantisbt/Chart.yaml b/mantisbt/mantisbt/Chart.yaml index e7aa7d4..8f60eaf 100644 --- a/mantisbt/mantisbt/Chart.yaml +++ b/mantisbt/mantisbt/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: mantisbt description: MantisBT Bug Tracker - A Helm chart for Kubernetes type: application -version: "0.3.1" +version: "0.4.0" appVersion: "2.27.0" dependencies: diff --git a/mantisbt/mantisbt/templates/deployment.yaml b/mantisbt/mantisbt/templates/deployment.yaml index 9f50141..b767194 100644 --- a/mantisbt/mantisbt/templates/deployment.yaml +++ b/mantisbt/mantisbt/templates/deployment.yaml @@ -23,7 +23,6 @@ spec: template: metadata: annotations: - checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} labels: app: {{ template "mantisbt.name" . }} @@ -50,23 +49,6 @@ spec: done echo "Database is ready!" sleep 5 - - name: copy-config - image: busybox:1.36 - command: - - sh - - -c - - | - echo "Copying config files..." - cp /config-template/config_inc.php /config/config_inc.php - chown 33:33 /config/config_inc.php - chmod 644 /config/config_inc.php - echo "Config copied with correct permissions:" - ls -la /config/ - volumeMounts: - - name: config-template - mountPath: /config-template - - name: config - mountPath: /config containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" @@ -76,7 +58,8 @@ spec: - name: http containerPort: 80 env: - - name: TZ + # xlrl/mantisbt uses MANTIS_TIMEZONE and MANTIS_ENABLE_ADMIN + - name: MANTIS_TIMEZONE value: {{ .Values.mantisbt.timezone | default "Europe/Berlin" | quote }} - name: MANTIS_ENABLE_ADMIN value: {{ .Values.mantisbt.enableAdmin | default "1" | quote }} @@ -102,6 +85,7 @@ spec: resources: {{ toYaml .Values.resources | indent 12 }} volumeMounts: + # xlrl/mantisbt expects config as a volume mount - will be created on first run - name: config mountPath: /var/www/html/config {{- if .Values.persistence.enabled }} @@ -120,7 +104,7 @@ spec: httpGet: path: / port: http - initialDelaySeconds: 90 + initialDelaySeconds: 60 periodSeconds: 5 timeoutSeconds: 3 failureThreshold: 10 @@ -137,11 +121,10 @@ spec: {{ toYaml . | indent 8 }} {{- end }} volumes: - - name: config-template - configMap: - name: {{ template "mantisbt.fullname" . }}-config + # Persistent config volume - xlrl expects this to be writable - name: config - emptyDir: {} + persistentVolumeClaim: + claimName: {{ template "mantisbt.fullname" . }}-config {{- if .Values.persistence.enabled }} - name: uploads persistentVolumeClaim: diff --git a/mantisbt/mantisbt/templates/pvc.yaml b/mantisbt/mantisbt/templates/pvc.yaml index bbb8dbc..b7c2425 100644 --- a/mantisbt/mantisbt/templates/pvc.yaml +++ b/mantisbt/mantisbt/templates/pvc.yaml @@ -1,4 +1,33 @@ {{- if .Values.persistence.enabled -}} +# Config PVC - xlrl/mantisbt needs writable config directory +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ template "mantisbt.fullname" . }}-config + labels: + app: {{ template "mantisbt.name" . }} + chart: {{ template "mantisbt.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} + {{- with .Values.persistence.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + accessModes: + - {{ .Values.persistence.accessMode | quote }} + {{- if .Values.persistence.storageClass }} + {{- if (eq "-" .Values.persistence.storageClass) }} + storageClassName: "" + {{- else }} + storageClassName: {{ .Values.persistence.storageClass | quote }} + {{- end }} + {{- end }} + resources: + requests: + storage: "100Mi" +--- +# Uploads PVC apiVersion: v1 kind: PersistentVolumeClaim metadata: diff --git a/mantisbt/mantisbt/values.yaml b/mantisbt/mantisbt/values.yaml index 47599de..9df716d 100644 --- a/mantisbt/mantisbt/values.yaml +++ b/mantisbt/mantisbt/values.yaml @@ -7,8 +7,8 @@ serviceAccount: automount: false image: - # okainov/mantisbt is more modern (PHP 8.4) and better maintained - repository: okainov/mantisbt + # xlrl/mantisbt - well maintained, PHP 8.3, good documentation + repository: xlrl/mantisbt tag: "latest" pullPolicy: IfNotPresent @@ -72,27 +72,8 @@ mantisbt: # Enable admin folder for installation (set to "0" after install!) enableAdmin: "1" - # Admin credentials (change these!) - adminUser: administrator - adminPassword: "admin123" - adminEmail: "admin@example.com" - - # Site configuration - siteName: "MantisBT" - siteUrl: "https://mantisbt.local" - - # Timezone + # Timezone (xlrl uses MANTIS_TIMEZONE) timezone: "Europe/Berlin" - - # Email configuration (optional) - email: - enabled: false - smtpHost: "" - smtpPort: 25 - smtpUsername: "" - smtpPassword: "" - fromAddress: "mantisbt@example.com" - fromName: "MantisBT" # Environment variables env: []