diff --git a/mantisbt/index.yaml b/mantisbt/index.yaml index 1389c65..965a630 100644 --- a/mantisbt/index.yaml +++ b/mantisbt/index.yaml @@ -3,17 +3,17 @@ entries: mantisbt: - apiVersion: v2 appVersion: 2.27.0 - created: "2025-12-15T09:44:59.829074+01:00" + created: "2025-12-15T10:03:29.074451+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: 58dc6878a9ef59371178502885a13979725a0abcc2d80cbc80b9c1e1ebb8fedd + digest: 5c8bc1c903ff7cdedf94c806ee454bb62e6acbf786b3df41138ce0b7c5b0b504 name: mantisbt type: application urls: - - https://gitea.innovation-hub-niedersachsen.de/innohub/charts/raw/main/mantisbt/mantisbt-0.3.0.tgz - version: 0.3.0 -generated: "2025-12-15T09:44:59.826746+01:00" + - 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" diff --git a/mantisbt/mantisbt-0.3.0.tgz b/mantisbt/mantisbt-0.3.0.tgz deleted file mode 100644 index 996b1f0..0000000 Binary files a/mantisbt/mantisbt-0.3.0.tgz and /dev/null differ diff --git a/mantisbt/mantisbt-0.3.1.tgz b/mantisbt/mantisbt-0.3.1.tgz new file mode 100644 index 0000000..7e55358 Binary files /dev/null and b/mantisbt/mantisbt-0.3.1.tgz differ diff --git a/mantisbt/mantisbt/Chart.yaml b/mantisbt/mantisbt/Chart.yaml index 589861e..e7aa7d4 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.0" +version: "0.3.1" appVersion: "2.27.0" dependencies: diff --git a/mantisbt/mantisbt/templates/deployment.yaml b/mantisbt/mantisbt/templates/deployment.yaml index 6521c74..9f50141 100644 --- a/mantisbt/mantisbt/templates/deployment.yaml +++ b/mantisbt/mantisbt/templates/deployment.yaml @@ -50,6 +50,23 @@ 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 }}" @@ -63,11 +80,6 @@ spec: value: {{ .Values.mantisbt.timezone | default "Europe/Berlin" | quote }} - name: MANTIS_ENABLE_ADMIN value: {{ .Values.mantisbt.enableAdmin | default "1" | quote }} - - name: MASTER_SALT - valueFrom: - secretKeyRef: - name: {{ template "mantisbt.fullname" . }}-secret - key: master-salt {{- range $key := .Values.env }} {{- if .value }} - name: {{ .name }} @@ -91,8 +103,7 @@ spec: {{ toYaml .Values.resources | indent 12 }} volumeMounts: - name: config - mountPath: /var/www/html/config/config_inc.php - subPath: config_inc.php + mountPath: /var/www/html/config {{- if .Values.persistence.enabled }} - name: uploads mountPath: /var/www/html/uploads @@ -126,9 +137,11 @@ spec: {{ toYaml . | indent 8 }} {{- end }} volumes: - - name: config + - name: config-template configMap: name: {{ template "mantisbt.fullname" . }}-config + - name: config + emptyDir: {} {{- if .Values.persistence.enabled }} - name: uploads persistentVolumeClaim: