mantisbt Verion 0.2.1

This commit is contained in:
titver968
2025-12-12 13:08:35 +01:00
parent 50d884aa37
commit 028200031f
9 changed files with 50 additions and 65 deletions

View File

@@ -3,17 +3,17 @@ entries:
mantisbt:
- apiVersion: v2
appVersion: 2.27.0
created: "2025-12-12T12:22:54.356905+01:00"
created: "2025-12-12T13:08:18.430148+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: a5b80b8132571b592d7b95aeb639c6bfacd295aa41ca4991903f0cb735b7d5ed
digest: 52b7f4e87844b92e5978ec2d2ef92a00a99369887d9bb9bacb6351de213c6fb0
name: mantisbt
type: application
urls:
- https://gitea.innovation-hub-niedersachsen.de/innohub/charts/raw/main/mantisbt/mantisbt-0.2.0.tgz
version: 0.2.0
generated: "2025-12-12T12:22:54.353886+01:00"
- https://gitea.innovation-hub-niedersachsen.de/innohub/charts/raw/main/mantisbt/mantisbt-0.2.1.tgz
version: 0.2.1
generated: "2025-12-12T13:08:18.42706+01:00"

Binary file not shown.

BIN
mantisbt/mantisbt-0.2.1.tgz Normal file

Binary file not shown.

View File

@@ -3,4 +3,4 @@ dependencies:
repository: https://charts.bitnami.com/bitnami
version: 19.1.2
digest: sha256:25a0f863a58cb121e8d182e46a12f83d1d6ce7312008e10c49d3c04b6306b6c8
generated: "2025-12-12T12:22:05.643054+01:00"
generated: "2025-12-12T12:28:34.395287+01:00"

View File

@@ -2,7 +2,7 @@ apiVersion: v2
name: mantisbt
description: MantisBT Bug Tracker - A Helm chart for Kubernetes
type: application
version: "0.2.0"
version: "0.2.1"
appVersion: "2.27.0"
dependencies:

View File

@@ -65,8 +65,8 @@ Create the name of the service account to use
Create a default fully qualified database name.
*/}}
{{- define "mantisbt.databaseHost" -}}
{{- if .Values.postgresql.enabled }}
{{- printf "%s-postgresql" (include "mantisbt.fullname" .) }}
{{- if .Values.mariadb.enabled }}
{{- printf "%s-mariadb" (include "mantisbt.fullname" .) }}
{{- else }}
{{- .Values.externalDatabase.host }}
{{- end }}
@@ -76,10 +76,10 @@ Create a default fully qualified database name.
Get database port
*/}}
{{- define "mantisbt.databasePort" -}}
{{- if .Values.postgresql.enabled }}
{{- printf "5432" }}
{{- if .Values.mariadb.enabled }}
{{- printf "3306" }}
{{- else }}
{{- .Values.externalDatabase.port | default "5432" }}
{{- .Values.externalDatabase.port | default "3306" }}
{{- end }}
{{- end }}
@@ -87,8 +87,8 @@ Get database port
Get database name
*/}}
{{- define "mantisbt.databaseName" -}}
{{- if .Values.postgresql.enabled }}
{{- .Values.postgresql.auth.database }}
{{- if .Values.mariadb.enabled }}
{{- .Values.mariadb.auth.database }}
{{- else }}
{{- .Values.externalDatabase.database }}
{{- end }}
@@ -98,8 +98,8 @@ Get database name
Get database user
*/}}
{{- define "mantisbt.databaseUser" -}}
{{- if .Values.postgresql.enabled }}
{{- .Values.postgresql.auth.username }}
{{- if .Values.mariadb.enabled }}
{{- .Values.mariadb.auth.username }}
{{- else }}
{{- .Values.externalDatabase.username }}
{{- end }}
@@ -109,8 +109,8 @@ Get database user
Get database password
*/}}
{{- define "mantisbt.databasePassword" -}}
{{- if .Values.postgresql.enabled }}
{{- .Values.postgresql.auth.password }}
{{- if .Values.mariadb.enabled }}
{{- .Values.mariadb.auth.password }}
{{- else }}
{{- .Values.externalDatabase.password }}
{{- end }}

View File

@@ -14,10 +14,10 @@ data:
# Database settings
$g_hostname = '{{ include "mantisbt.databaseHost" . }}';
$g_db_type = 'pgsql';
$g_db_type = 'mysqli';
$g_database_name = '{{ include "mantisbt.databaseName" . }}';
$g_db_username = '{{ include "mantisbt.databaseUser" . }}';
$g_db_password = getenv('MANTISBT_DATABASE_PASSWORD');
$g_db_password = '{{ include "mantisbt.databasePassword" . }}';
# Site settings
$g_window_title = '{{ .Values.mantisbt.siteName }}';
@@ -28,7 +28,7 @@ data:
$g_anonymous_account = '';
# Security
$g_crypto_master_salt = '{{ randAlphaNum 32 }}';
$g_crypto_master_salt = '{{ randAlphaNum 64 | b64enc }}';
{{- if .Values.mantisbt.email.enabled }}
# Email settings
@@ -40,7 +40,7 @@ data:
$g_enable_email_notification = ON;
{{- if .Values.mantisbt.email.smtpUsername }}
$g_smtp_username = '{{ .Values.mantisbt.email.smtpUsername }}';
$g_smtp_password = getenv('MANTISBT_SMTP_PASSWORD');
$g_smtp_password = '{{ .Values.mantisbt.email.smtpPassword }}';
{{- end }}
{{- else }}
# Email disabled
@@ -48,10 +48,14 @@ data:
{{- end }}
# Timezone
$g_default_timezone = 'Europe/Berlin';
$g_default_timezone = '{{ .Values.mantisbt.timezone | default "Europe/Berlin" }}';
# File uploads
$g_file_upload_method = DISK;
$g_absolute_path_default_upload_folder = '/var/www/html/uploads/';
$g_max_file_size = 10000000;
$g_allowed_files = 'png,gif,jpg,jpeg,pdf,doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,7z';
# Logging (disable in production)
$g_log_level = LOG_NONE;
$g_show_detailed_errors = OFF;

View File

@@ -23,6 +23,8 @@ 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" . }}
component: mantisbt
@@ -41,11 +43,13 @@ spec:
- sh
- -c
- |
echo "Waiting for database at {{ include "mantisbt.databaseHost" . }}:{{ include "mantisbt.databasePort" . }}..."
until nc -z {{ include "mantisbt.databaseHost" . }} {{ include "mantisbt.databasePort" . }}; do
echo "Waiting for database..."
sleep 2
echo "Database not ready, waiting..."
sleep 3
done
echo "Database is ready!"
sleep 5
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
@@ -55,34 +59,8 @@ spec:
- name: http
containerPort: 80
env:
- name: MANTISBT_DATABASE_HOST
value: {{ include "mantisbt.databaseHost" . | quote }}
- name: MANTISBT_DATABASE_PORT
value: {{ include "mantisbt.databasePort" . | quote }}
- name: MANTISBT_DATABASE_NAME
value: {{ include "mantisbt.databaseName" . | quote }}
- name: MANTISBT_DATABASE_USER
value: {{ include "mantisbt.databaseUser" . | quote }}
- name: MANTISBT_DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "mantisbt.fullname" . }}-secret
key: database-password
- name: MANTISBT_ADMIN_USER
value: {{ .Values.mantisbt.adminUser | quote }}
- name: MANTISBT_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "mantisbt.fullname" . }}-secret
key: admin-password
- name: MANTISBT_ADMIN_EMAIL
value: {{ .Values.mantisbt.adminEmail | quote }}
{{- if .Values.mantisbt.email.enabled }}
- name: MANTISBT_SMTP_HOST
value: {{ .Values.mantisbt.email.smtpHost | quote }}
- name: MANTISBT_SMTP_PORT
value: {{ .Values.mantisbt.email.smtpPort | quote }}
{{- end }}
- name: TZ
value: {{ .Values.mantisbt.timezone | default "Europe/Berlin" | quote }}
{{- range $key := .Values.env }}
{{- if .value }}
- name: {{ .name }}
@@ -114,17 +92,17 @@ spec:
{{- end }}
livenessProbe:
httpGet:
path: /
path: /login_page.php
port: http
initialDelaySeconds: 120
initialDelaySeconds: 180
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
readinessProbe:
httpGet:
path: /
path: /login_page.php
port: http
initialDelaySeconds: 60
initialDelaySeconds: 90
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 10

View File

@@ -7,8 +7,8 @@ serviceAccount:
automount: false
image:
repository: vimagick/mantisbt
tag: latest
repository: xlrl/mantisbt
tag: "2.27.0"
pullPolicy: IfNotPresent
replicaCount: 1
@@ -53,7 +53,7 @@ autoscaling:
deploymentLabels: {}
podLabels: {}
# Persistence for uploads only (not the whole /var/www/html!)
# Persistence for uploads and config
persistence:
enabled: true
accessMode: ReadWriteOnce
@@ -81,6 +81,9 @@ mantisbt:
siteName: "MantisBT"
siteUrl: "https://mantisbt.local"
# Timezone
timezone: "Europe/Berlin"
# Email configuration (optional)
email:
enabled: false
@@ -102,24 +105,24 @@ extraEnvFrom: []
extraDeploy: []
# PostgreSQL subchart configuration
postgresql:
# MariaDB subchart configuration
mariadb:
enabled: true
auth:
database: mantisbt
username: mantisbt
password: "mantisbt123"
postgresPassword: "rootpassword123"
rootPassword: "rootpassword123"
primary:
persistence:
enabled: true
size: 8Gi
storageClass: ""
# External database (if postgresql.enabled=false)
# External database (if mariadb.enabled=false)
externalDatabase:
host: ""
port: 5432
port: 3306
database: mantisbt
username: mantisbt
password: ""