diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..3ce8ff5 Binary files /dev/null and b/.DS_Store differ diff --git a/mantisbt/index.yaml b/mantisbt/index.yaml new file mode 100644 index 0000000..46b41af --- /dev/null +++ b/mantisbt/index.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +entries: + mantisbt: + - apiVersion: v2 + appVersion: 2.27.0 + created: "2025-12-12T10:19:45.381062+01:00" + dependencies: + - condition: postgresql.enabled + name: postgresql + repository: https://charts.bitnami.com/bitnami + version: 16.*.* + description: MantisBT Bug Tracker - A Helm chart for Kubernetes + digest: 14e0657e509b2e4545bde0678b88eb17f21d6c66c03110a38082820d3f952a61 + name: mantisbt + type: application + urls: + - https://gitea.innovation-hub-niedersachsen.de/innohub/charts/raw/main/mantisbt/mantisbt-0.1.0.tgz + version: 0.1.0 +generated: "2025-12-12T10:19:45.376611+01:00" diff --git a/mantisbt/mantisbt-0.1.0.tgz b/mantisbt/mantisbt-0.1.0.tgz new file mode 100644 index 0000000..4c8c869 Binary files /dev/null and b/mantisbt/mantisbt-0.1.0.tgz differ diff --git a/mantisbt/mantisbt/Chart.lock b/mantisbt/mantisbt/Chart.lock new file mode 100644 index 0000000..cda79dc --- /dev/null +++ b/mantisbt/mantisbt/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: postgresql + repository: https://charts.bitnami.com/bitnami + version: 16.7.27 +digest: sha256:5dc0caa006210414bad6131a00cff7b8ccc86a675ee6fd19a8f003eb2083890c +generated: "2025-12-12T10:14:31.503437+01:00" diff --git a/mantisbt/mantisbt/Chart.yaml b/mantisbt/mantisbt/Chart.yaml new file mode 100644 index 0000000..cf3f37e --- /dev/null +++ b/mantisbt/mantisbt/Chart.yaml @@ -0,0 +1,12 @@ +apiVersion: v2 +name: mantisbt +description: MantisBT Bug Tracker - A Helm chart for Kubernetes +type: application +version: "0.1.0" +appVersion: "2.27.0" + +dependencies: + - name: postgresql + version: "16.*.*" + repository: "https://charts.bitnami.com/bitnami" + condition: postgresql.enabled diff --git a/mantisbt/mantisbt/charts/postgresql-16.7.27.tgz b/mantisbt/mantisbt/charts/postgresql-16.7.27.tgz new file mode 100644 index 0000000..73dc91a Binary files /dev/null and b/mantisbt/mantisbt/charts/postgresql-16.7.27.tgz differ diff --git a/mantisbt/mantisbt/templates/_helpers.tpl b/mantisbt/mantisbt/templates/_helpers.tpl new file mode 100644 index 0000000..7b4fb6d --- /dev/null +++ b/mantisbt/mantisbt/templates/_helpers.tpl @@ -0,0 +1,117 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "mantisbt.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "mantisbt.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "mantisbt.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "mantisbt.labels" -}} +helm.sh/chart: {{ include "mantisbt.chart" . }} +{{ include "mantisbt.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "mantisbt.selectorLabels" -}} +app.kubernetes.io/name: {{ include "mantisbt.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "mantisbt.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "mantisbt.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} + +{{/* +Create a default fully qualified database name. +*/}} +{{- define "mantisbt.databaseHost" -}} +{{- if .Values.postgresql.enabled }} +{{- printf "%s-postgresql" (include "mantisbt.fullname" .) }} +{{- else }} +{{- .Values.externalDatabase.host }} +{{- end }} +{{- end }} + +{{/* +Get database port +*/}} +{{- define "mantisbt.databasePort" -}} +{{- if .Values.postgresql.enabled }} +{{- printf "5432" }} +{{- else }} +{{- .Values.externalDatabase.port | default "5432" }} +{{- end }} +{{- end }} + +{{/* +Get database name +*/}} +{{- define "mantisbt.databaseName" -}} +{{- if .Values.postgresql.enabled }} +{{- .Values.postgresql.auth.database }} +{{- else }} +{{- .Values.externalDatabase.database }} +{{- end }} +{{- end }} + +{{/* +Get database user +*/}} +{{- define "mantisbt.databaseUser" -}} +{{- if .Values.postgresql.enabled }} +{{- .Values.postgresql.auth.username }} +{{- else }} +{{- .Values.externalDatabase.username }} +{{- end }} +{{- end }} + +{{/* +Get database password +*/}} +{{- define "mantisbt.databasePassword" -}} +{{- if .Values.postgresql.enabled }} +{{- .Values.postgresql.auth.password }} +{{- else }} +{{- .Values.externalDatabase.password }} +{{- end }} +{{- end }} diff --git a/mantisbt/mantisbt/templates/configmap.yaml b/mantisbt/mantisbt/templates/configmap.yaml new file mode 100644 index 0000000..8d00605 --- /dev/null +++ b/mantisbt/mantisbt/templates/configmap.yaml @@ -0,0 +1,57 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ template "mantisbt.fullname" . }}-config + labels: + app: {{ template "mantisbt.name" . }} + chart: {{ template "mantisbt.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +data: + config_inc.php: | +