ci: fix lint

This commit is contained in:
Michael Kriese 2023-12-06 13:58:06 +01:00
parent 78266d99cb
commit 635938da7e
No known key found for this signature in database
GPG key ID: B83F553A0724D44E
5 changed files with 47 additions and 28 deletions

View file

@ -45,4 +45,4 @@ pipeline:
- git fetch --no-tags --filter=blob:none origin - git fetch --no-tags --filter=blob:none origin
- export KUBECONFIG=$${CI_WORKSPACE}/kube.config - export KUBECONFIG=$${CI_WORKSPACE}/kube.config
- kubectl get no -o wide - kubectl get no -o wide
- ct install --config tools/ct.yml --chart-dirs ./ - ct install --config tools/ct.yml --charts .

View file

@ -60,4 +60,4 @@ pipeline:
pull: true pull: true
commands: commands:
- git fetch --no-tags --filter=blob:none origin - git fetch --no-tags --filter=blob:none origin
- ct lint --config tools/ct.yml --chart-dirs ./ - ct lint --config tools/ct.yml --charts .

View file

@ -989,7 +989,10 @@ To comply with the Forgejo helm chart definition of the digest parameter, a "cus
| `gitea.startupProbe.successThreshold` | Success threshold for startup probe | `1` | | `gitea.startupProbe.successThreshold` | Success threshold for startup probe | `1` |
| `gitea.startupProbe.failureThreshold` | Failure threshold for startup probe | `10` | | `gitea.startupProbe.failureThreshold` | Failure threshold for startup probe | `10` |
### redis-cluster ### Redis® Cluster
Redis® 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.
| Name | Description | Value | | Name | Description | Value |
| -------------------------------- | -------------------------------------------- | ------- | | -------------------------------- | -------------------------------------------- | ------- |
@ -998,11 +1001,14 @@ To comply with the Forgejo helm chart definition of the digest parameter, a "cus
| `redis-cluster.cluster.nodes` | Number of redis cluster master nodes | `3` | | `redis-cluster.cluster.nodes` | Number of redis cluster master nodes | `3` |
| `redis-cluster.cluster.replicas` | Number of redis cluster master node replicas | `0` | | `redis-cluster.cluster.replicas` | Number of redis cluster master node replicas | `0` |
### PostgreSQL-ha ### PostgreSQL HA
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.
| Name | Description | Value | | Name | Description | Value |
| ------------------------------------------- | ---------------------------------------------------------------- | ----------- | | ------------------------------------------- | ---------------------------------------------------------------- | ----------- |
| `postgresql-ha.enabled` | Enable PostgreSQL-ha | `true` | | `postgresql-ha.enabled` | Enable PostgreSQL HA chart | `true` |
| `postgresql-ha.postgresql.password` | Password for the `gitea` user (overrides `auth.password`) | `changeme4` | | `postgresql-ha.postgresql.password` | Password for the `gitea` user (overrides `auth.password`) | `changeme4` |
| `postgresql-ha.global.postgresql.database` | Name for a custom database to create (overrides `auth.database`) | `gitea` | | `postgresql-ha.global.postgresql.database` | Name for a custom database to create (overrides `auth.database`) | `gitea` |
| `postgresql-ha.global.postgresql.username` | Name for a custom user to create (overrides `auth.username`) | `gitea` | | `postgresql-ha.global.postgresql.username` | Name for a custom user to create (overrides `auth.username`) | `gitea` |
@ -1015,7 +1021,8 @@ To comply with the Forgejo helm chart definition of the digest parameter, a "cus
### PostgreSQL ### PostgreSQL
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.
| Name | Description | Value | | Name | Description | Value |
| ------------------------------------------------------- | ---------------------------------------------------------------- | ------- | | ------------------------------------------------------- | ---------------------------------------------------------------- | ------- |

View file

@ -2,3 +2,5 @@
check-version-increment: false check-version-increment: false
debug: true debug: true
target-branch: main target-branch: main
lint-conf: .yamllint
validate-maintainers: false # does not work with gitea

View file

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