Compare commits

...

12 commits

Author SHA1 Message Date
forgejo-actions
4a91201865 chore(release): 0.0.43
All checks were successful
🎉 Release Commit / create release using commit-and-tag-version (push) Has been skipped
Mirror Sync / codeberg (push) Successful in 10s
🎁 Release Charts / release (push) Successful in 24s
2024-08-17 17:42:29 +00:00
723ccf5a19
fix: maildev cron
Some checks failed
Mirror Sync / codeberg (push) Successful in 9s
🎉 Release Commit / create release using commit-and-tag-version (push) Has been cancelled
2024-08-17 19:41:58 +02:00
forgejo-actions
af5de94208 chore(release): 0.0.42
All checks were successful
🎉 Release Commit / create release using commit-and-tag-version (push) Has been skipped
🎁 Release Charts / release (push) Successful in 22s
Mirror Sync / codeberg (push) Successful in 28s
2024-07-21 14:05:40 +00:00
9940847608
fix: up
Some checks failed
Mirror Sync / codeberg (push) Has been cancelled
🎉 Release Commit / create release using commit-and-tag-version (push) Has been cancelled
2024-07-21 16:04:44 +02:00
forgejo-actions
3f4f183792 chore(release): 0.0.41
All checks were successful
🎉 Release Commit / create release using commit-and-tag-version (push) Has been skipped
Mirror Sync / codeberg (push) Successful in 9s
🎁 Release Charts / release (push) Successful in 8s
2024-07-18 22:47:52 +00:00
103cc957ca
feat: cnpg-cluster
Some checks failed
Mirror Sync / codeberg (push) Successful in 8s
🎉 Release Commit / create release using commit-and-tag-version (push) Has been cancelled
2024-07-19 00:47:26 +02:00
forgejo-actions
bef54f201e chore(release): 0.0.40
All checks were successful
🎉 Release Commit / create release using commit-and-tag-version (push) Has been skipped
Mirror Sync / codeberg (push) Successful in 8s
🎁 Release Charts / release (push) Successful in 8s
2024-07-18 18:37:12 +00:00
921e731c81
fix: probes
Some checks failed
Mirror Sync / codeberg (push) Successful in 9s
🎉 Release Commit / create release using commit-and-tag-version (push) Has been cancelled
2024-07-18 20:36:46 +02:00
forgejo-actions
ccc683ebba chore(release): 0.0.39
All checks were successful
Mirror Sync / codeberg (push) Successful in 10s
🎁 Release Charts / release (push) Successful in 8s
🎉 Release Commit / create release using commit-and-tag-version (push) Has been skipped
2024-07-18 17:50:45 +00:00
a6dfb33bd7
fix: trigger ci
Some checks failed
Mirror Sync / codeberg (push) Successful in 8s
🎉 Release Commit / create release using commit-and-tag-version (push) Has been cancelled
2024-07-18 19:50:19 +02:00
forgejo-actions
4e922704bc chore(release): 0.0.38
All checks were successful
🎉 Release Commit / create release using commit-and-tag-version (push) Has been skipped
Mirror Sync / codeberg (push) Successful in 11s
🎁 Release Charts / release (push) Successful in 23s
2024-07-18 17:46:19 +00:00
38a66768ad
fix: trigger ci
Some checks failed
Mirror Sync / codeberg (push) Successful in 10s
🎉 Release Commit / create release using commit-and-tag-version (push) Has been cancelled
2024-07-18 19:45:49 +02:00
16 changed files with 578 additions and 6 deletions

View file

@ -2,6 +2,48 @@
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
## 0.0.43 (2024-08-17)
### Bug Fixes
* maildev cron ([723ccf5](https://codeberg.org/devthefuture/helm-charts/commit/723ccf5a190b763107814327f6f4121eae278e9c))
## 0.0.42 (2024-07-21)
### Bug Fixes
* up ([9940847](https://codeberg.org/devthefuture/helm-charts/commit/99408476084068c8f91b449952ecef07afd24bfa))
## 0.0.41 (2024-07-18)
### Features
* cnpg-cluster ([103cc95](https://codeberg.org/devthefuture/helm-charts/commit/103cc957ca84e799f4a950718b9624867ec2e326))
## 0.0.40 (2024-07-18)
### Bug Fixes
* probes ([921e731](https://codeberg.org/devthefuture/helm-charts/commit/921e731c815394ccdd9391a14f8be307da3b0972))
## 0.0.39 (2024-07-18)
### Bug Fixes
* trigger ci ([a6dfb33](https://codeberg.org/devthefuture/helm-charts/commit/a6dfb33bd74e72e75d9a4844ec789bf60c3c75a4))
## 0.0.38 (2024-07-18)
### Bug Fixes
* trigger ci ([38a6676](https://codeberg.org/devthefuture/helm-charts/commit/38a66768ad86ab37ccf7c7f719c2e8f1a0f31f56))
## 0.0.37 (2024-07-18)

View file

@ -0,0 +1,6 @@
apiVersion: v2
name: cnpg-cluster
description: A Helm chart to create cloudnative-pg.io clusters
type: application
version: 0.0.43
appVersion: '15'

View file

@ -0,0 +1,8 @@
# cnpg-cluster
A Helm chart to create cloudnative-pg.io clusters
originally based on [enix's cnpg-cluster helm chart](https://github.com/enix/helm-charts/tree/master/charts/cnpg-cluster)
then on https://socialgouv.github.io/helm-charts

View file

@ -0,0 +1,68 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "cnpg-cluster.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 "cnpg-cluster.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 "cnpg-cluster.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "cnpg-cluster.labels" -}}
helm.sh/chart: {{ include "cnpg-cluster.chart" . }}
{{ include "cnpg-cluster.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Common annotations
*/}}
{{- define "cnpg-cluster.annotations" -}}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.annotations }}
{{ toYaml .Values.annotations}}
{{- end }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "cnpg-cluster.selectorLabels" -}}
app.kubernetes.io/name: {{ include "cnpg-cluster.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Backup secret name
*/}}
{{- define "cnpg-cluster.backupSecretName" -}}
{{ or .Values.backup.secretName (print (include "cnpg-cluster.fullname" .) `-backup`) }}
{{- end }}

View file

@ -0,0 +1,166 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: {{ include "cnpg-cluster.fullname" . }}
labels:
{{- include "cnpg-cluster.labels" . | nindent 4 }}
annotations:
{{- include "cnpg-cluster.annotations" . | nindent 4 }}
spec:
logLevel: {{ .Values.logLevel }}
instances: {{ .Values.instances }}
{{- if .Values.image.repository }}
imageName: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if or .Values.imagePullSecrets .Values.registryCredentials }}
imagePullSecrets:
{{- with .Values.imagePullSecrets }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- range $name, $settings := .Values.registryCredentials }}
- name: "{{ include "cnpg-cluster.fullname" $ }}-{{ $name }}"
{{- end }}
{{- end }}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if or .Values.nodeSelector .Values.tolerations .Values.extraAffinity }}
affinity:
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.extraAffinity }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
storage:
size: {{ .Values.persistence.size | quote }}
{{- with .Values.persistence.resizeInUseVolumes }}
resizeInUseVolumes: {{ . | quote }}
{{- end }}
{{- if .Values.persistence.storageClass }}
{{- if (eq "-" .Values.persistence.storageClass) }}
storageClass: ""
{{- else }}
storageClass: "{{ .Values.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- with .Values.persistence.pvcTemplate }}
pvcTemplate:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- if .Values.backup.enabled }}
backup:
retentionPolicy: "{{ .Values.backup.retentionPolicy }}"
barmanObjectStore:
{{- toYaml .Values.backup.barmanObjectStore | nindent 6 }}
{{- end }}
minSyncReplicas: {{ .Values.minSyncReplicas }}
maxSyncReplicas: {{ .Values.maxSyncReplicas }}
postgresql:
pg_hba:
{{- with .Values.pg_hba }}
{{- toYaml . | nindent 8 }}
{{- end }}
parameters:
{{- with .Values.postgresqlParameters }}
{{- toYaml . | nindent 8 }}
{{- end }}
shared_preload_libraries:
{{- with .Values.sharedPreloadLibraries }}
{{- toYaml . | nindent 8 }}
{{- end }}
monitoring:
enablePodMonitor: {{ .Values.monitoring.enablePodMonitor }}
{{ if .Values.superuserSecretName }}
superuserSecret:
name: {{ .Values.superuserSecretName }}
{{ end}}
{{- if .Values.replica.enabled }}
replica:
enabled: true
source: {{ .Values.replica.source }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
bootstrap:
{{- if .Values.recovery.enabled }}
recovery:
source: {{ .Values.recovery.externalClusterName | default "recovery-cluster" }}
{{ if .Values.recovery.database }}
database: {{ .Values.recovery.database }}
{{- end }}
{{ if .Values.recovery.owner }}
owner: {{ .Values.recovery.owner }}
{{- end }}
{{ if .Values.recovery.secretName }}
secret:
name: {{ .Values.recovery.secretName }}
{{ end }}
{{- if .Values.recovery.targetTime }}
recoveryTarget:
targetTime: "{{ .Values.recovery.targetTime }}"
{{- end }}
{{- else if (and .Values.pg_basebackup.enabled .Values.pg_basebackup.source) }}
pg_basebackup:
source: {{ .Values.pg_basebackup.source }}
{{- else }}
initdb:
database: {{ .Values.dbName }}
owner: {{ .Values.dbOwner }}
{{ if .Values.dbSecretName }}
secret:
name: {{ .Values.dbSecretName }}
{{ end }}
# postgis configuration plugins
postInitTemplateSQL:
{{- range $cmd := .Values.postgresqlInitCommandsBeforeExtensions }}
- {{ $cmd | quote }}
{{- end }}
{{- range $name := .Values.extensions }}
- CREATE EXTENSION IF NOT EXISTS "{{ $name }}";
{{- end }}
{{- range $cmd := .Values.postgresqlInitCommands }}
- {{ $cmd | quote }}
{{- end }}
{{ if .Values.postInitApplicationSQL }}
postInitApplicationSQL:
{{- toYaml .Values.postInitApplicationSQL | nindent 8 }}
{{ end }}
{{ if .Values.postInitApplicationSQLRefs }}
postInitApplicationSQLRefs:
{{- toYaml .Values.postInitApplicationSQLRefs | nindent 8 }}
{{ end }}
{{- end }}
externalClusters:
{{- if .Values.recovery.enabled }}
- name: {{ .Values.recovery.externalClusterName | default "recovery-cluster" }}
barmanObjectStore:
{{- toYaml .Values.recovery.barmanObjectStore | nindent 8 }}
{{- end }}
{{- if .Values.externalClusters }}
{{- toYaml .Values.externalClusters | nindent 4 }}
{{- end }}
{{- with .Values.clusterExtraSpec }}
{{- toYaml . | nindent 2 }}
{{- end }}

View file

@ -0,0 +1,16 @@
{{- range $name, $spec := .Values.poolers }}
---
apiVersion: postgresql.cnpg.io/v1
kind: Pooler
metadata:
name: {{ include "cnpg-cluster.fullname" $ }}-{{ $name }}
labels:
{{- include "cnpg-cluster.labels" $ | nindent 4 }}
cnpg.io/poolerName: {{ include "cnpg-cluster.fullname" $ }}-{{ $name }}
spec:
cluster:
name: {{ include "cnpg-cluster.fullname" $ }}
{{- toYaml $spec | nindent 2 }}
monitoring:
enablePodMonitor: {{ $.Values.monitoring.enablePodMonitor }}
{{- end }}

View file

@ -0,0 +1,12 @@
{{- range $name, $settings := .Values.registryCredentials }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "cnpg-cluster.fullname" $ }}-{{ $name }}
labels:
{{- include "cnpg-cluster.labels" $ | nindent 4 }}
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: "{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" $settings.registry $settings.username $settings.password $settings.email (printf "%s:%s" $settings.username $settings.password | b64enc) | b64enc }}"
---
{{- end }}

View file

@ -0,0 +1,14 @@
{{- if .Values.backup.enabled }}
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: {{ include "cnpg-cluster.fullname" $ }}-scheduledbackup
labels:
{{- include "cnpg-cluster.labels" $ | nindent 4 }}
spec:
backupOwnerReference: self
cluster:
name: {{ include "cnpg-cluster.fullname" $ }}
schedule: "{{ .Values.backup.schedule }}"
immediate: {{ .Values.backup.immediate }}
{{- end }}

View file

@ -0,0 +1,239 @@
# yaml-language-server: $schema=./values.schema.json
# Default values for cnpg-cluster.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# @param {number} [instances] Number of Postgres instances in the cluster
instances: 1
# @param {string} [logLevel] The instances log level, one of the following values: error, warning, info (default), debug, trace
logLevel: info
# @param {object} [annotations] CNPG cluster annotations
annotations: {}
# @param {object} [image] Docker image for the PG instances
image:
# @param {string} [repository] CNPG compatible Postgres image. see https://github.com/cloudnative-pg/postgres-containers
repository: "ghcr.io/cloudnative-pg/postgis"
# @param {string} [pullPolicy] Docker image pull policy. see https://kubernetes.io/docs/concepts/containers/images#updating-images
pullPolicy: IfNotPresent
# @param {string} [tag] Docker image tag
tag: "15"
# @param {array} [imagePullSecrets] docker image pull secrets. see https://kubernetes.io/fr/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets: []
# @param {object,null} [registryCredentials]
registryCredentials:
# Eg:
# mygitlab:
# registry: gitlab-registry.example.org
# email: foo@example.org
# username: foobar
# password: secret
# @param {string} [nameOverride] String to partially override cnpg-cluster.fullname template with a string (will prepend the release name)
nameOverride: ""
# @param {string} [fullnameOverride] String to fully override cnpg-cluster.fullname template with a string
fullnameOverride: ""
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# @param {https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.24.0/_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements} [resources] CPU/Memory resource requests/limits
resources:
{}
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
# @param {object} [nodeSelector] Postgres instances labels for pod assignment
nodeSelector: {}
# Name of the priority class which will be used in every generated Pod, if the PriorityClass specified does not exist, the pod will not be able to schedule. Please refer to https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass for more information
# @param {string} [priorityClassName] Name of the priority class which will be used in every generated Pod
priorityClassName: ""
# @param {array} [tolerations] Postgres instances labels for tolerations pod assignment
tolerations: []
# @param {object} [extraAffinity] Extra configuration for Cluster's affinity resource, see: https://cloudnative-pg.io/documentation/1.17/api_reference/#AffinityConfiguration
extraAffinity: {}
# @param {object} [persistence] Data persistence configuration
persistence:
# @param {string} [size] Size of each instance storage volume
size: 8Gi
# @param {boolean,null} [resizeInUseVolumes] Resize existent PVCs, defaults to true
resizeInUseVolumes:
# Applied after evaluating the PVC template, if available.
# If not specified, generated PVCs will be satisfied by the default storage class
# @param {string} [storageClass] StorageClass to use for database data,
storageClass: ""
# @param {object} [pvcTemplate] Template to be used to generate the Persistent Volume Claim
pvcTemplate: {}
# @param {object} [backup] Backup configuration
backup:
# @param {boolean} [enabled] Enable backups
enabled: false
# this cron format has the seconds on the left
# @param {string} [schedule] Schedule the backups, for instance every day at midnight
schedule: "0 0 0 * * 0"
# The retention policy is expressed in the form of XXu where XX is a positive integer and
# u is in [dwm] - days, weeks, months.
# @param {string} [retentionPolicy] RetentionPolicy is the retention policy to be used for backups and WALs (i.e. '60d').
retentionPolicy: 30d
# @param {boolean} [enabled] If the first backup has to be immediately start after creation or not
immediate: true
# See: https://cloudnative-pg.io/documentation/1.20/backup_recovery/
# @param {object,null} [barmanObjectStore] Object store credentials and access config
barmanObjectStore:
# destinationPath:
# endpointURL:
# s3Credentials:
# accessKeyId:
# name:
# key:
# secretAccessKey:
# name:
# key:
# region:
# name:
# key:
# @param {object} [clusterExtraSpec] Extra configuration for Cluster resource. See: https://cloudnative-pg.io/documentation/1.17/api_reference/#clusterspec
clusterExtraSpec: {}
# @param {object} [scheduledBackups] ScheduledBackup resources to create for this Cluster resource. See: https://cloudnative-pg.io/documentation/1.17/api_reference/#ScheduledBackupSpec
scheduledBackups: {}
# Eg:
# daily:
# schedule: "0 0 0 * * *"
# @param {object} [poolers] Pooler resources to create for this Cluster resource. See: https://cloudnative-pg.io/documentation/1.17/api_reference/#PoolerSpec
poolers: {}
# Eg:
# rw:
# instances: 3
# type: rw
# pgbouncer:
# poolMode: session
# parameters:
# max_client_conn: "1000"
# default_pool_size: "10"
# @param {number} [minSyncReplicas] Minimum of synchronous replicas. see https://cloudnative-pg.io/documentation/current/replication/#synchronous-replication
minSyncReplicas: 0
# @param {number} [maxSyncReplicas] Maximum of synchronous replicas. see https://cloudnative-pg.io/documentation/current/replication/#synchronous-replication
maxSyncReplicas: 0
# @param {array} [pg_hba] pg_hba entries. See https://www.postgresql.org/docs/9.3/auth-pg-hba-conf.html
pg_hba: []
# Define your parameters on https://pgtune.leopard.in.ua
# @param {https://raw.githubusercontent.com/SocialGouv/json-schemas/main/postgres/parameters.json} [postgresqlParameters] PostgreSQL parameters. See https://www.postgresql.org/docs/9.3/auth-pg-hba-conf.html
postgresqlParameters: {}
# @param {array} [sharedPreloadLibraries] PostgreSQL shared preload libraries. See https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-PostgresConfiguration
sharedPreloadLibraries: {}
# @param {array} [externalClusters] define external clusters for recovery/replication see https://cloudnative-pg.io/documentation/current/api_reference/#externalcluster
externalClusters: []
# @param {object} [replica] Replica mode
replica:
# @param {boolean} [enabled] Enable replica mode
enabled: false
# @param {object} [pg_basebackup] Enable pg_basebackup on bootstrap, see https://cloudnative-pg.io/documentation/current/bootstrap/#bootstrap-from-a-live-cluster-pg_basebackup
pg_basebackup:
# @param {boolean} [enabled] Enable pg_basebackup bootstrap, see https://cloudnative-pg.io/documentation/current/bootstrap/#bootstrap-from-a-live-cluster-pg_basebackup
enabled: false
# @param {string,null} [source] externalCluster cluster name for the pg_basebackup
source:
# @param {https://raw.githubusercontent.com/SocialGouv/json-schemas/main/postgres/extensions.json} [extensions]
extensions: []
postgresqlInitCommandsBeforeExtensions: []
postgresqlInitCommands: []
# @param {string} [dbName] Name of the default database to create
dbName: app
# @param {string} [dbName] Name of the default user to create
dbOwner: app
# @param {object} [monitoring] Monitoring. see https://cloudnative-pg.io/documentation/current/monitoring/
monitoring:
# @param {boolean} [enablePodMonitor] Enable metrics monitoring. see https://cloudnative-pg.io/documentation/current/monitoring/
enablePodMonitor: false
# @param {string,null} [superuserSecretName] To force the super user secret name
superuserSecretName:
# @param {string,null} [dbSecretName] To force the DB secret name
dbSecretName:
# @param {object} [recovery] Recovery. see https://cloudnative-pg.io/documentation/current/backup_recovery/#recovery
recovery:
# @param {boolean} [enabled] Enable recovery
enabled: false
# Relative to Postgres server timezone
# @param {string} [targetTime] Time to restore from, in RFC3339 format https://datatracker.ietf.org/doc/html/rfc3339
targetTime: ""
# @param {string,null} [database] Database to restore to
database:
# @param {string,null} [owner] Database owner to restore to
owner:
# @param {string,null} [secretName] Secret where owner password is set
secretName:
# @param {string,null} [externalClusterName] Name for the external cluster to recover from
externalClusterName:
# See: https://cloudnative-pg.io/documentation/current/backup_recovery/
# @param {object,null} [barmanObjectStore] Object store credentials and access config
barmanObjectStore:
# destinationPath:
# endpointURL:
# name of the recovery server on the s3 backups
# serverName:
# s3Credentials:
# accessKeyId:
# name:
# key:
# secretAccessKey:
# name:
# key:
# region:
# name:
# key:
# @param {string[]} [postInitApplicationSQL] List of SQL queries to be executed as a superuser in the application database right after is created - to be used with extreme care (by default empty)
postInitApplicationSQL: []
# Points references to ConfigMaps or Secrets which contain SQL files, the general implementation order to these references is from all Secrets to all ConfigMaps, and inside Secrets or ConfigMaps, the implementation order is same as the order of each array (by default empty
# See https://cloudnative-pg.io/documentation/current/api_reference/#postinitapplicationsqlrefs
# @param {object,null} [postInitApplicationSQLRefs]
postInitApplicationSQLRefs:
# configMapRefs:
# - name: post-init-sql-configmap
# key: configmap.sql
# secretRefs:
# - name: post-init-sql-secret
# key: secret.sql

View file

@ -2,4 +2,4 @@ apiVersion: v2
name: keydb
description: A Helm chart for KeyDB multimaster setup
type: application
version: 0.0.37
version: 0.0.43

View file

@ -1,4 +1,4 @@
apiVersion: v2
description: A Helm chart for maildev
name: maildev
version: 0.0.37
version: 0.0.43

View file

@ -42,7 +42,7 @@ spec:
- name: reload-mail
image: "{{ .Values.cron.image.repository }}:{{ .Values.cron.image.tag }}"
imagePullPolicy: {{ .Values.cron.image.pullPolicy }}
args: ["wget","{{ include "common.names.fullname" . }}:1080/reloadMailsFromDirectory"]
args: ["wget","{{ include "common.names.fullname" . }}:1080/reloadMailsFromDirectory","-q","-O","/dev/null"]
securityContext:
runAsUser: 1000
runAsGroup: 1000

View file

@ -1,3 +1,3 @@
apiVersion: v2
name: modjo-microservice
version: 0.0.37
version: 0.0.43

View file

@ -70,6 +70,7 @@ spec:
- name: http
containerPort: {{ .Values.httpContainerPort }}
protocol: TCP
{{- end }}
{{- if .Values.customLivenessProbe }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }}
{{- else if .Values.livenessProbe.enabled }}
@ -109,7 +110,6 @@ spec:
successThreshold: {{ .Values.startupProbe.successThreshold }}
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
{{- end }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.lifecycleHooks }}

View file

@ -112,6 +112,7 @@ ingress:
className: ""
annotations: {}
hostname: api.local
tls: true
tlsSecretname: alerte-secours-tls
resources: {}

View file

@ -1,5 +1,5 @@
{
"version": "0.0.37",
"version": "0.0.43",
"repository": "git@codeberg.org:devthefuture/helm-charts.git",
"license": "MIT",
"private": true,