ci: add chart testing (#111)

- closes #18

Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/111
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-committed-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
Michael Kriese 2023-12-06 13:09:34 +00:00 committed by Michael Kriese
parent ce4352b9bc
commit 58d4630eb8
7 changed files with 122 additions and 26 deletions

View file

@ -8,13 +8,13 @@
## @param global.storageClass global storage class override
## @param global.hostAliases global hostAliases which will be added to the pod's hosts files
global:
imageRegistry: ""
imageRegistry: ''
## E.g.
## imagePullSecrets:
## - myRegistryKeySecretName
##
imagePullSecrets: []
storageClass: ""
storageClass: ''
hostAliases: []
# - ip: 192.168.137.2
# hostnames:
@ -28,9 +28,9 @@ replicaCount: 1
## @param strategy.rollingUpdate.maxSurge maxSurge
## @param strategy.rollingUpdate.maxUnavailable maxUnavailable
strategy:
type: "RollingUpdate"
type: 'RollingUpdate'
rollingUpdate:
maxSurge: "100%"
maxSurge: '100%'
maxUnavailable: 0
## @param clusterDomain cluster domain
@ -48,11 +48,11 @@ image:
registry: codeberg.org
repository: forgejo/forgejo
# Overrides the image tag whose default is the chart appVersion.
tag: ""
digest: ""
tag: ''
digest: ''
pullPolicy: IfNotPresent
rootless: true
fullOverride: ""
fullOverride: ''
## @param imagePullSecrets Secret to use for pulling the image
imagePullSecrets: []
@ -194,7 +194,7 @@ resources:
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
## @param schedulerName Use an alternate scheduler, e.g. "stork"
schedulerName: ""
schedulerName: ''
## @param nodeSelector NodeSelector for the deployment
nodeSelector: {}
@ -212,7 +212,7 @@ topologySpreadConstraints: []
dnsConfig: {}
## @param priorityClassName priorityClassName for the deployment
priorityClassName: ""
priorityClassName: ''
## @param deployment.env Additional environment variables to pass to containers
## @param deployment.terminationGracePeriodSeconds How long to wait until forcefully kill the pod
@ -237,7 +237,7 @@ deployment:
## @param serviceAccount.labels Custom labels for the ServiceAccount
serviceAccount:
create: false
name: ""
name: ''
automountServiceAccountToken: false
imagePullSecrets: []
# - name: private-registry-access
@ -268,7 +268,7 @@ persistence:
labels: {}
storageClass:
subPath:
volumeName: ""
volumeName: ''
annotations:
helm.sh/resource-policy: keep
@ -296,7 +296,7 @@ extraVolumeMounts: []
## @section Init
## @param initPreScript Bash shell script copied verbatim to the start of the init-container.
initPreScript: ""
initPreScript: ''
#
# initPreScript: |
# mkdir -p /data/git/.postgresql
@ -324,12 +324,12 @@ initContainers:
signing:
enabled: false
gpgHome: /data/git/.gnupg
privateKey: ""
privateKey: ''
# privateKey: |-
# -----BEGIN PGP PRIVATE KEY BLOCK-----
# ...
# -----END PGP PRIVATE KEY BLOCK-----
existingSecret: ""
existingSecret: ''
## @section Gitea
#
@ -343,7 +343,7 @@ gitea:
existingSecret:
username: gitea_admin
password: r8sA8CPHD9!bt6d
email: "gitea@local.domain"
email: 'gitea@local.domain'
## @param gitea.metrics.enabled Enable Forgejo metrics
## @param gitea.metrics.serviceMonitor.enabled Enable Forgejo metrics service monitor
@ -414,7 +414,7 @@ gitea:
## @param gitea.ssh.logLevel Configure OpenSSH's log level. Only available for root-based Forgejo image.
ssh:
logLevel: "INFO"
logLevel: 'INFO'
## @section LivenessProbe
#
@ -476,7 +476,12 @@ gitea:
successThreshold: 1
failureThreshold: 10
## @section redis-cluster
## @section Redis&reg; Cluster
## @descriptionStart
## Redis&reg; Cluster is loaded as a dependency from [Bitnami](https://github.com/bitnami/charts/tree/master/bitnami/redis-cluster) if enabled in the values.
## Complete Configuration can be taken from their website.
## @descriptionEnd
#
## @param redis-cluster.enabled Enable redis
## @param redis-cluster.usePassword Whether to use password authentication
## @param redis-cluster.cluster.nodes Number of redis cluster master nodes
@ -488,9 +493,13 @@ redis-cluster:
nodes: 3 # default: 6
replicas: 0 # default: 1
## @section postgresql-ha
## @section PostgreSQL HA
## @descriptionStart
## PostgreSQL HA is loaded as a dependency from [Bitnami](https://github.com/bitnami/charts/tree/master/bitnami/postgresql-ha) if enabled in the values.
## Complete Configuration can be taken from their website.
## @descriptionEnd
#
## @param postgresql-ha.enabled Enable postgresql-ha
## @param postgresql-ha.enabled Enable PostgreSQL HA chart
## @param postgresql-ha.postgresql.password Password for the `gitea` user (overrides `auth.password`)
## @param postgresql-ha.global.postgresql.database Name for a custom database to create (overrides `auth.database`)
## @param postgresql-ha.global.postgresql.username Name for a custom user to create (overrides `auth.username`)
@ -498,8 +507,8 @@ redis-cluster:
## @param postgresql-ha.postgresql.repmgrPassword Repmgr Password
## @param postgresql-ha.postgresql.postgresPassword postgres Password
## @param postgresql-ha.pgpool.adminPassword pgpool adminPassword
## @param postgresql-ha.service.ports.postgresql postgresql service port (overrides `service.ports.postgresql`)
## @param postgresql-ha.primary.persistence.size PVC Storage Request for postgresql-ha volume
## @param postgresql-ha.service.ports.postgresql PostgreSQL service port (overrides `service.ports.postgresql`)
## @param postgresql-ha.primary.persistence.size PVC Storage Request for PostgreSQL-ha volume
postgresql-ha:
global:
postgresql:
@ -522,7 +531,8 @@ postgresql-ha:
## @section PostgreSQL
## @descriptionStart
## PostgreSQL is loaded as a dependency from [Bitnami](https://github.com/bitnami/charts/tree/master/bitnami/postgresql) if enabled in the values. Complete Configuration can be taken from their website.
## PostgreSQL is loaded as a dependency from [Bitnami](https://github.com/bitnami/charts/tree/master/bitnami/postgresql) if enabled in the values.
## Complete Configuration can be taken from their website.
## @descriptionEnd
#
## @param postgresql.enabled Enable PostgreSQL