Compare commits
No commits in common. "c039673e5af0350811837cbab3cb02599faf92db" and "c32c6f929fcc551bd493888caf877e99b9ce69c3" have entirely different histories.
c039673e5a
...
c32c6f929f
@ -11,7 +11,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest
|
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest
|
||||||
HELM_UNITTEST_VERSION: "v0.5.2"
|
HELM_UNITTEST_VERSION: "v0.5.1"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-and-test:
|
check-and-test:
|
||||||
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"yaml.schemas": {
|
"yaml.schemas": {
|
||||||
"https://raw.githubusercontent.com/helm-unittest/helm-unittest/v0.5.2/schema/helm-testsuite.json": [
|
"https://raw.githubusercontent.com/helm-unittest/helm-unittest/v0.5.1/schema/helm-testsuite.json": [
|
||||||
"/unittests/**/*.yaml"
|
"/unittests/**/*.yaml"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
12
Chart.lock
12
Chart.lock
@ -1,15 +1,15 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 15.5.20
|
version: 15.5.17
|
||||||
- name: postgresql-ha
|
- name: postgresql-ha
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 14.2.16
|
version: 14.2.12
|
||||||
- name: redis-cluster
|
- name: redis-cluster
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 10.3.0
|
version: 10.2.7
|
||||||
- name: redis
|
- name: redis
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 19.6.4
|
version: 19.6.2
|
||||||
digest: sha256:a28c809273f313c482e3f803a0a002c3bb3a0d2090bf6b732d68ecc4710b4732
|
digest: sha256:842e8878e2da9cd62c2233f5ebfcdaa05598633a8bc2fa84803006929cf0c3cc
|
||||||
generated: "2024-08-03T00:21:16.080925346Z"
|
generated: "2024-07-20T00:44:58.227558466Z"
|
||||||
|
11
Chart.yaml
11
Chart.yaml
@ -3,8 +3,7 @@ name: gitea
|
|||||||
description: Gitea Helm chart for Kubernetes
|
description: Gitea Helm chart for Kubernetes
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.0
|
version: 0.0.0
|
||||||
# renovate datasource=github-releases depName=go-gitea/gitea extractVersion=^v(?<version>.*)$
|
appVersion: 1.22.0
|
||||||
appVersion: 1.22.2
|
|
||||||
icon: https://gitea.com/assets/img/logo.svg
|
icon: https://gitea.com/assets/img/logo.svg
|
||||||
|
|
||||||
keywords:
|
keywords:
|
||||||
@ -36,20 +35,20 @@ dependencies:
|
|||||||
# https://github.com/bitnami/charts/blob/main/bitnami/postgresql
|
# https://github.com/bitnami/charts/blob/main/bitnami/postgresql
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 15.5.20
|
version: 15.5.17
|
||||||
condition: postgresql.enabled
|
condition: postgresql.enabled
|
||||||
# https://github.com/bitnami/charts/blob/main/bitnami/postgresql-ha/Chart.yaml
|
# https://github.com/bitnami/charts/blob/main/bitnami/postgresql-ha/Chart.yaml
|
||||||
- name: postgresql-ha
|
- name: postgresql-ha
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 14.2.16
|
version: 14.2.12
|
||||||
condition: postgresql-ha.enabled
|
condition: postgresql-ha.enabled
|
||||||
# https://github.com/bitnami/charts/blob/main/bitnami/redis-cluster/Chart.yaml
|
# https://github.com/bitnami/charts/blob/main/bitnami/redis-cluster/Chart.yaml
|
||||||
- name: redis-cluster
|
- name: redis-cluster
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 10.3.0
|
version: 10.2.7
|
||||||
condition: redis-cluster.enabled
|
condition: redis-cluster.enabled
|
||||||
# https://github.com/bitnami/charts/blob/main/bitnami/redis/Chart.yaml
|
# https://github.com/bitnami/charts/blob/main/bitnami/redis/Chart.yaml
|
||||||
- name: redis
|
- name: redis
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 19.6.4
|
version: 19.6.2
|
||||||
condition: redis.enabled
|
condition: redis.enabled
|
||||||
|
44
README.md
44
README.md
@ -498,9 +498,6 @@ redis-cluster:
|
|||||||
enabled: true
|
enabled: true
|
||||||
```
|
```
|
||||||
|
|
||||||
⚠️ The redis charts [do not work well with special characters in the password](https://gitea.com/gitea/helm-chart/issues/690).
|
|
||||||
Consider omitting such or open an issue in the Bitnami repo and let us know once this got fixed.
|
|
||||||
|
|
||||||
### Persistence
|
### Persistence
|
||||||
|
|
||||||
Gitea will be deployed as a deployment.
|
Gitea will be deployed as a deployment.
|
||||||
@ -1004,28 +1001,23 @@ To comply with the Gitea helm chart definition of the digest parameter, a "custo
|
|||||||
|
|
||||||
### Gitea
|
### Gitea
|
||||||
|
|
||||||
| Name | Description | Value |
|
| Name | Description | Value |
|
||||||
| -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | -------------------- |
|
| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -------------------- |
|
||||||
| `gitea.admin.username` | Username for the Gitea admin user | `gitea_admin` |
|
| `gitea.admin.username` | Username for the Gitea admin user | `gitea_admin` |
|
||||||
| `gitea.admin.existingSecret` | Use an existing secret to store admin user credentials | `nil` |
|
| `gitea.admin.existingSecret` | Use an existing secret to store admin user credentials | `nil` |
|
||||||
| `gitea.admin.password` | Password for the Gitea admin user | `r8sA8CPHD9!bt6d` |
|
| `gitea.admin.password` | Password for the Gitea admin user | `r8sA8CPHD9!bt6d` |
|
||||||
| `gitea.admin.email` | Email for the Gitea admin user | `gitea@local.domain` |
|
| `gitea.admin.email` | Email for the Gitea admin user | `gitea@local.domain` |
|
||||||
| `gitea.admin.passwordMode` | Mode for how to set/update the admin user password. Options are: initialOnlyNoReset, initialOnlyRequireReset, and keepUpdated | `keepUpdated` |
|
| `gitea.admin.passwordMode` | Mode for how to set/update the admin user password. Options are: initialOnlyNoReset, initialOnlyRequireReset, and keepUpdated | `keepUpdated` |
|
||||||
| `gitea.metrics.enabled` | Enable Gitea metrics | `false` |
|
| `gitea.metrics.enabled` | Enable Gitea metrics | `false` |
|
||||||
| `gitea.metrics.serviceMonitor.enabled` | Enable Gitea metrics service monitor. Requires, that `gitea.metrics.enabled` is also set to true, to enable metrics generally. | `false` |
|
| `gitea.metrics.serviceMonitor.enabled` | Enable Gitea metrics service monitor | `false` |
|
||||||
| `gitea.metrics.serviceMonitor.interval` | Interval at which metrics should be scraped. If not specified Prometheus' global scrape interval is used. | `""` |
|
| `gitea.ldap` | LDAP configuration | `[]` |
|
||||||
| `gitea.metrics.serviceMonitor.relabelings` | RelabelConfigs to apply to samples before scraping. | `[]` |
|
| `gitea.oauth` | OAuth configuration | `[]` |
|
||||||
| `gitea.metrics.serviceMonitor.scheme` | HTTP scheme to use for scraping. For example `http` or `https`. Default is http. | `""` |
|
| `gitea.config.server.SSH_PORT` | SSH port for rootlful Gitea image | `22` |
|
||||||
| `gitea.metrics.serviceMonitor.scrapeTimeout` | Timeout after which the scrape is ended. If not specified, global Prometheus scrape timeout is used. | `""` |
|
| `gitea.config.server.SSH_LISTEN_PORT` | SSH port for rootless Gitea image | `2222` |
|
||||||
| `gitea.metrics.serviceMonitor.tlsConfig` | TLS configuration to use when scraping the metric endpoint by Prometheus. | `{}` |
|
| `gitea.additionalConfigSources` | Additional configuration from secret or configmap | `[]` |
|
||||||
| `gitea.ldap` | LDAP configuration | `[]` |
|
| `gitea.additionalConfigFromEnvs` | Additional configuration sources from environment variables | `[]` |
|
||||||
| `gitea.oauth` | OAuth configuration | `[]` |
|
| `gitea.podAnnotations` | Annotations for the Gitea pod | `{}` |
|
||||||
| `gitea.config.server.SSH_PORT` | SSH port for rootlful Gitea image | `22` |
|
| `gitea.ssh.logLevel` | Configure OpenSSH's log level. Only available for root-based Gitea image. | `INFO` |
|
||||||
| `gitea.config.server.SSH_LISTEN_PORT` | SSH port for rootless Gitea image | `2222` |
|
|
||||||
| `gitea.additionalConfigSources` | Additional configuration from secret or configmap | `[]` |
|
|
||||||
| `gitea.additionalConfigFromEnvs` | Additional configuration sources from environment variables | `[]` |
|
|
||||||
| `gitea.podAnnotations` | Annotations for the Gitea pod | `{}` |
|
|
||||||
| `gitea.ssh.logLevel` | Configure OpenSSH's log level. Only available for root-based Gitea image. | `INFO` |
|
|
||||||
|
|
||||||
### LivenessProbe
|
### LivenessProbe
|
||||||
|
|
||||||
@ -1098,7 +1090,7 @@ Redis and [Redis cluster](#redis-cluster) cannot be enabled at the same time.
|
|||||||
| `postgresql-ha.postgresql.postgresPassword` | postgres Password | `changeme1` |
|
| `postgresql-ha.postgresql.postgresPassword` | postgres Password | `changeme1` |
|
||||||
| `postgresql-ha.pgpool.adminPassword` | pgpool adminPassword | `changeme3` |
|
| `postgresql-ha.pgpool.adminPassword` | pgpool adminPassword | `changeme3` |
|
||||||
| `postgresql-ha.service.ports.postgresql` | PostgreSQL service port (overrides `service.ports.postgresql`) | `5432` |
|
| `postgresql-ha.service.ports.postgresql` | PostgreSQL service port (overrides `service.ports.postgresql`) | `5432` |
|
||||||
| `postgresql-ha.persistence.size` | PVC Storage Request for PostgreSQL HA volume | `10Gi` |
|
| `postgresql-ha.primary.persistence.size` | PVC Storage Request for PostgreSQL HA volume | `10Gi` |
|
||||||
|
|
||||||
### PostgreSQL
|
### PostgreSQL
|
||||||
|
|
||||||
|
@ -30,14 +30,6 @@
|
|||||||
],
|
],
|
||||||
datasourceTemplate: 'github-releases',
|
datasourceTemplate: 'github-releases',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'description': 'Automatically detect new Gitea releases',
|
|
||||||
'customType': 'regex',
|
|
||||||
'fileMatch': ['(^|/)Chart\\.yaml$'],
|
|
||||||
'matchStrings': [
|
|
||||||
'# renovate datasource=(?<datasource>\\S+) depName=(?<depName>\\S+) extractVersion=(?<extractVersion>\\S+)\\nappVersion:\\s?(?<currentValue>\\S+)\\n',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
packageRules: [
|
packageRules: [
|
||||||
{
|
{
|
||||||
@ -64,12 +56,5 @@
|
|||||||
'digest',
|
'digest',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
description: 'Override changelog url for Helm image, to have release notes in our PRs',
|
|
||||||
matchDepNames: [
|
|
||||||
'alpine/helm',
|
|
||||||
],
|
|
||||||
changelogUrl: 'https://github.com/helm/helm',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
@ -24,25 +24,27 @@ stringData:
|
|||||||
# END: initPreScript
|
# END: initPreScript
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
{{- if not .Values.image.rootless }}
|
{{- if not .Values.image.rootless }}
|
||||||
chown -v 1000:1000 /data
|
chown 1000:1000 /data
|
||||||
{{- end }}
|
{{- end }}
|
||||||
mkdir -pv /data/git/.ssh
|
mkdir -p /data/git/.ssh
|
||||||
chmod -Rv 700 /data/git/.ssh
|
chmod -R 700 /data/git/.ssh
|
||||||
[ ! -d /data/gitea/conf ] && mkdir -pv /data/gitea/conf
|
[ ! -d /data/gitea/conf ] && mkdir -p /data/gitea/conf
|
||||||
|
|
||||||
# prepare temp directory structure
|
# prepare temp directory structure
|
||||||
mkdir -pv "${GITEA_TEMP}"
|
mkdir -p "${GITEA_TEMP}"
|
||||||
{{- if not .Values.image.rootless }}
|
{{- if not .Values.image.rootless }}
|
||||||
chown -v 1000:1000 "${GITEA_TEMP}"
|
chown 1000:1000 "${GITEA_TEMP}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
chmod -v ug+rwx "${GITEA_TEMP}"
|
chmod ug+rwx "${GITEA_TEMP}"
|
||||||
|
|
||||||
{{ if .Values.signing.enabled -}}
|
{{ if .Values.signing.enabled -}}
|
||||||
if [ ! -d "${GNUPGHOME}" ]; then
|
if [ ! -d "${GNUPGHOME}" ]; then
|
||||||
mkdir -pv "${GNUPGHOME}"
|
mkdir -p "${GNUPGHOME}"
|
||||||
chmod -v 700 "${GNUPGHOME}"
|
chmod 700 "${GNUPGHOME}"
|
||||||
chown -v 1000:1000 "${GNUPGHOME}"
|
chown 1000:1000 "${GNUPGHOME}"
|
||||||
fi
|
fi
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{- if and .Values.gitea.metrics.enabled .Values.gitea.metrics.serviceMonitor.enabled -}}
|
{{- if .Values.gitea.metrics.serviceMonitor.enabled -}}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
@ -14,21 +14,4 @@ spec:
|
|||||||
{{- include "gitea.selectorLabels" . | nindent 6 }}
|
{{- include "gitea.selectorLabels" . | nindent 6 }}
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: http
|
- port: http
|
||||||
{{- if .Values.gitea.metrics.serviceMonitor.interval }}
|
|
||||||
interval: {{ .Values.gitea.metrics.serviceMonitor.interval }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.gitea.metrics.serviceMonitor.relabelings }}
|
|
||||||
relabelings:
|
|
||||||
{{- . | toYaml | nindent 6 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.gitea.metrics.serviceMonitor.scheme }}
|
|
||||||
scheme: {{ .Values.gitea.metrics.serviceMonitor.scheme }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.gitea.metrics.serviceMonitor.scrapeTimeout }}
|
|
||||||
scrapeTimeout: {{ .Values.gitea.metrics.serviceMonitor.scrapeTimeout }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.gitea.metrics.serviceMonitor.tlsConfig }}
|
|
||||||
tlsConfig:
|
|
||||||
{{- . | toYaml | nindent 6 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
@ -28,13 +28,15 @@ tests:
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
mkdir -pv /data/git/.ssh
|
|
||||||
chmod -Rv 700 /data/git/.ssh
|
set -x
|
||||||
[ ! -d /data/gitea/conf ] && mkdir -pv /data/gitea/conf
|
mkdir -p /data/git/.ssh
|
||||||
|
chmod -R 700 /data/git/.ssh
|
||||||
|
[ ! -d /data/gitea/conf ] && mkdir -p /data/gitea/conf
|
||||||
|
|
||||||
# prepare temp directory structure
|
# prepare temp directory structure
|
||||||
mkdir -pv "${GITEA_TEMP}"
|
mkdir -p "${GITEA_TEMP}"
|
||||||
chmod -v ug+rwx "${GITEA_TEMP}"
|
chmod ug+rwx "${GITEA_TEMP}"
|
||||||
- it: adds gpg script block for enabled signing
|
- it: adds gpg script block for enabled signing
|
||||||
set:
|
set:
|
||||||
signing.enabled: true
|
signing.enabled: true
|
||||||
@ -49,18 +51,20 @@ tests:
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
mkdir -pv /data/git/.ssh
|
|
||||||
chmod -Rv 700 /data/git/.ssh
|
set -x
|
||||||
[ ! -d /data/gitea/conf ] && mkdir -pv /data/gitea/conf
|
mkdir -p /data/git/.ssh
|
||||||
|
chmod -R 700 /data/git/.ssh
|
||||||
|
[ ! -d /data/gitea/conf ] && mkdir -p /data/gitea/conf
|
||||||
|
|
||||||
# prepare temp directory structure
|
# prepare temp directory structure
|
||||||
mkdir -pv "${GITEA_TEMP}"
|
mkdir -p "${GITEA_TEMP}"
|
||||||
chmod -v ug+rwx "${GITEA_TEMP}"
|
chmod ug+rwx "${GITEA_TEMP}"
|
||||||
|
|
||||||
if [ ! -d "${GNUPGHOME}" ]; then
|
if [ ! -d "${GNUPGHOME}" ]; then
|
||||||
mkdir -pv "${GNUPGHOME}"
|
mkdir -p "${GNUPGHOME}"
|
||||||
chmod -v 700 "${GNUPGHOME}"
|
chmod 700 "${GNUPGHOME}"
|
||||||
chown -v 1000:1000 "${GNUPGHOME}"
|
chown 1000:1000 "${GNUPGHOME}"
|
||||||
fi
|
fi
|
||||||
- it: it does not chown /data even when image.fullOverride is set
|
- it: it does not chown /data even when image.fullOverride is set
|
||||||
template: templates/gitea/init.yaml
|
template: templates/gitea/init.yaml
|
||||||
@ -73,10 +77,12 @@ tests:
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
mkdir -pv /data/git/.ssh
|
|
||||||
chmod -Rv 700 /data/git/.ssh
|
set -x
|
||||||
[ ! -d /data/gitea/conf ] && mkdir -pv /data/gitea/conf
|
mkdir -p /data/git/.ssh
|
||||||
|
chmod -R 700 /data/git/.ssh
|
||||||
|
[ ! -d /data/gitea/conf ] && mkdir -p /data/gitea/conf
|
||||||
|
|
||||||
# prepare temp directory structure
|
# prepare temp directory structure
|
||||||
mkdir -pv "${GITEA_TEMP}"
|
mkdir -p "${GITEA_TEMP}"
|
||||||
chmod -v ug+rwx "${GITEA_TEMP}"
|
chmod ug+rwx "${GITEA_TEMP}"
|
||||||
|
@ -31,15 +31,17 @@ tests:
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
chown -v 1000:1000 /data
|
|
||||||
mkdir -pv /data/git/.ssh
|
set -x
|
||||||
chmod -Rv 700 /data/git/.ssh
|
chown 1000:1000 /data
|
||||||
[ ! -d /data/gitea/conf ] && mkdir -pv /data/gitea/conf
|
mkdir -p /data/git/.ssh
|
||||||
|
chmod -R 700 /data/git/.ssh
|
||||||
|
[ ! -d /data/gitea/conf ] && mkdir -p /data/gitea/conf
|
||||||
|
|
||||||
# prepare temp directory structure
|
# prepare temp directory structure
|
||||||
mkdir -pv "${GITEA_TEMP}"
|
mkdir -p "${GITEA_TEMP}"
|
||||||
chown -v 1000:1000 "${GITEA_TEMP}"
|
chown 1000:1000 "${GITEA_TEMP}"
|
||||||
chmod -v ug+rwx "${GITEA_TEMP}"
|
chmod ug+rwx "${GITEA_TEMP}"
|
||||||
- it: adds gpg script block for enabled signing
|
- it: adds gpg script block for enabled signing
|
||||||
set:
|
set:
|
||||||
image.rootless: false
|
image.rootless: false
|
||||||
@ -55,18 +57,20 @@ tests:
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
chown -v 1000:1000 /data
|
|
||||||
mkdir -pv /data/git/.ssh
|
set -x
|
||||||
chmod -Rv 700 /data/git/.ssh
|
chown 1000:1000 /data
|
||||||
[ ! -d /data/gitea/conf ] && mkdir -pv /data/gitea/conf
|
mkdir -p /data/git/.ssh
|
||||||
|
chmod -R 700 /data/git/.ssh
|
||||||
|
[ ! -d /data/gitea/conf ] && mkdir -p /data/gitea/conf
|
||||||
|
|
||||||
# prepare temp directory structure
|
# prepare temp directory structure
|
||||||
mkdir -pv "${GITEA_TEMP}"
|
mkdir -p "${GITEA_TEMP}"
|
||||||
chown -v 1000:1000 "${GITEA_TEMP}"
|
chown 1000:1000 "${GITEA_TEMP}"
|
||||||
chmod -v ug+rwx "${GITEA_TEMP}"
|
chmod ug+rwx "${GITEA_TEMP}"
|
||||||
|
|
||||||
if [ ! -d "${GNUPGHOME}" ]; then
|
if [ ! -d "${GNUPGHOME}" ]; then
|
||||||
mkdir -pv "${GNUPGHOME}"
|
mkdir -p "${GNUPGHOME}"
|
||||||
chmod -v 700 "${GNUPGHOME}"
|
chmod 700 "${GNUPGHOME}"
|
||||||
chown -v 1000:1000 "${GNUPGHOME}"
|
chown 1000:1000 "${GNUPGHOME}"
|
||||||
fi
|
fi
|
||||||
|
@ -1,89 +0,0 @@
|
|||||||
suite: ServiceMonitor template (basic)
|
|
||||||
release:
|
|
||||||
name: gitea-unittests
|
|
||||||
namespace: testing
|
|
||||||
templates:
|
|
||||||
- templates/gitea/servicemonitor.yaml
|
|
||||||
tests:
|
|
||||||
- it: skips rendering by default
|
|
||||||
asserts:
|
|
||||||
- hasDocuments:
|
|
||||||
count: 0
|
|
||||||
- it: renders default ServiceMonitor object with gitea.metrics.enabled=true
|
|
||||||
set:
|
|
||||||
gitea.metrics.enabled: true
|
|
||||||
asserts:
|
|
||||||
- hasDocuments:
|
|
||||||
count: 0
|
|
||||||
- it: renders default ServiceMonitor object with gitea.metrics.serviceMonitor.enabled=true
|
|
||||||
set:
|
|
||||||
gitea.metrics.serviceMonitor.enabled: true
|
|
||||||
asserts:
|
|
||||||
- hasDocuments:
|
|
||||||
count: 0
|
|
||||||
- it: renders defaults
|
|
||||||
set:
|
|
||||||
gitea.metrics.enabled: true
|
|
||||||
gitea.metrics.serviceMonitor.enabled: true
|
|
||||||
asserts:
|
|
||||||
- hasDocuments:
|
|
||||||
count: 1
|
|
||||||
- containsDocument:
|
|
||||||
kind: ServiceMonitor
|
|
||||||
apiVersion: monitoring.coreos.com/v1
|
|
||||||
name: gitea-unittests
|
|
||||||
- notExists:
|
|
||||||
path: metadata.annotations
|
|
||||||
- notExists:
|
|
||||||
path: spec.endpoints[0].interval
|
|
||||||
- equal:
|
|
||||||
path: spec.endpoints[0].port
|
|
||||||
value: http
|
|
||||||
- notExists:
|
|
||||||
path: spec.endpoints[0].scheme
|
|
||||||
- notExists:
|
|
||||||
path: spec.endpoints[0].scrapeTimeout
|
|
||||||
- notExists:
|
|
||||||
path: spec.endpoints[0].tlsConfig
|
|
||||||
- it: renders custom scrape interval
|
|
||||||
set:
|
|
||||||
gitea.metrics.enabled: true
|
|
||||||
gitea.metrics.serviceMonitor.enabled: true
|
|
||||||
gitea.metrics.serviceMonitor.interval: 30s
|
|
||||||
gitea.metrics.serviceMonitor.scrapeTimeout: 5s
|
|
||||||
asserts:
|
|
||||||
- equal:
|
|
||||||
path: spec.endpoints[0].interval
|
|
||||||
value: 30s
|
|
||||||
- equal:
|
|
||||||
path: spec.endpoints[0].scrapeTimeout
|
|
||||||
value: 5s
|
|
||||||
- it: renders custom tls config
|
|
||||||
set:
|
|
||||||
gitea.metrics.enabled: true
|
|
||||||
gitea.metrics.serviceMonitor.enabled: true
|
|
||||||
gitea.metrics.serviceMonitor.scheme: https
|
|
||||||
gitea.metrics.serviceMonitor.tlsConfig.caFile: /etc/prometheus/tls/ca.crt
|
|
||||||
gitea.metrics.serviceMonitor.tlsConfig.certFile: /etc/prometheus/tls/tls.crt
|
|
||||||
gitea.metrics.serviceMonitor.tlsConfig.keyFile: /etc/prometheus/tls/tls.key
|
|
||||||
gitea.metrics.serviceMonitor.tlsConfig.insecureSkipVerify: false
|
|
||||||
gitea.metrics.serviceMonitor.tlsConfig.serverName: gitea-unittest
|
|
||||||
asserts:
|
|
||||||
- equal:
|
|
||||||
path: spec.endpoints[0].scheme
|
|
||||||
value: https
|
|
||||||
- equal:
|
|
||||||
path: spec.endpoints[0].tlsConfig.caFile
|
|
||||||
value: /etc/prometheus/tls/ca.crt
|
|
||||||
- equal:
|
|
||||||
path: spec.endpoints[0].tlsConfig.certFile
|
|
||||||
value: /etc/prometheus/tls/tls.crt
|
|
||||||
- equal:
|
|
||||||
path: spec.endpoints[0].tlsConfig.keyFile
|
|
||||||
value: /etc/prometheus/tls/tls.key
|
|
||||||
- equal:
|
|
||||||
path: spec.endpoints[0].tlsConfig.insecureSkipVerify
|
|
||||||
value: false
|
|
||||||
- equal:
|
|
||||||
path: spec.endpoints[0].tlsConfig.serverName
|
|
||||||
value: gitea-unittest
|
|
23
values.yaml
23
values.yaml
@ -356,23 +356,13 @@ gitea:
|
|||||||
passwordMode: keepUpdated
|
passwordMode: keepUpdated
|
||||||
|
|
||||||
## @param gitea.metrics.enabled Enable Gitea metrics
|
## @param gitea.metrics.enabled Enable Gitea metrics
|
||||||
## @param gitea.metrics.serviceMonitor.enabled Enable Gitea metrics service monitor. Requires, that `gitea.metrics.enabled` is also set to true, to enable metrics generally.
|
## @param gitea.metrics.serviceMonitor.enabled Enable Gitea metrics service monitor
|
||||||
## @param gitea.metrics.serviceMonitor.interval Interval at which metrics should be scraped. If not specified Prometheus' global scrape interval is used.
|
|
||||||
## @param gitea.metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping.
|
|
||||||
## @param gitea.metrics.serviceMonitor.scheme HTTP scheme to use for scraping. For example `http` or `https`. Default is http.
|
|
||||||
## @param gitea.metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended. If not specified, global Prometheus scrape timeout is used.
|
|
||||||
## @param gitea.metrics.serviceMonitor.tlsConfig TLS configuration to use when scraping the metric endpoint by Prometheus.
|
|
||||||
metrics:
|
metrics:
|
||||||
enabled: false
|
enabled: false
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: false
|
enabled: false
|
||||||
# additionalLabels:
|
# additionalLabels:
|
||||||
# prometheus-release: prom1
|
# prometheus-release: prom1
|
||||||
interval: ""
|
|
||||||
relabelings: []
|
|
||||||
scheme: ""
|
|
||||||
scrapeTimeout: ""
|
|
||||||
tlsConfig: {}
|
|
||||||
|
|
||||||
## @param gitea.ldap LDAP configuration
|
## @param gitea.ldap LDAP configuration
|
||||||
ldap:
|
ldap:
|
||||||
@ -498,8 +488,6 @@ gitea:
|
|||||||
|
|
||||||
## @section redis-cluster
|
## @section redis-cluster
|
||||||
## @param redis-cluster.enabled Enable redis cluster
|
## @param redis-cluster.enabled Enable redis cluster
|
||||||
# ⚠️ The redis charts do not work well with special characters in the password (<https://gitea.com/gitea/helm-chart/issues/690>).
|
|
||||||
# Consider omitting such or open an issue in the Bitnami repo and let us know once this got fixed.
|
|
||||||
## @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
|
||||||
## @param redis-cluster.cluster.replicas Number of redis cluster master node replicas
|
## @param redis-cluster.cluster.replicas Number of redis cluster master node replicas
|
||||||
@ -516,8 +504,6 @@ redis-cluster:
|
|||||||
## @section redis
|
## @section redis
|
||||||
## @param redis.enabled Enable redis standalone or replicated
|
## @param redis.enabled Enable redis standalone or replicated
|
||||||
## @param redis.architecture Whether to use standalone or replication
|
## @param redis.architecture Whether to use standalone or replication
|
||||||
# ⚠️ The redis charts do not work well with special characters in the password (<https://gitea.com/gitea/helm-chart/issues/690>).
|
|
||||||
# Consider omitting such or open an issue in the Bitnami repo and let us know once this got fixed.
|
|
||||||
## @param redis.global.redis.password Required password
|
## @param redis.global.redis.password Required password
|
||||||
## @param redis.master.count Number of Redis master instances to deploy
|
## @param redis.master.count Number of Redis master instances to deploy
|
||||||
## @descriptionStart
|
## @descriptionStart
|
||||||
@ -543,7 +529,7 @@ redis:
|
|||||||
## @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.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:
|
||||||
@ -560,8 +546,9 @@ postgresql-ha:
|
|||||||
service:
|
service:
|
||||||
ports:
|
ports:
|
||||||
postgresql: 5432
|
postgresql: 5432
|
||||||
persistence:
|
primary:
|
||||||
size: 10Gi
|
persistence:
|
||||||
|
size: 10Gi
|
||||||
|
|
||||||
## @section PostgreSQL
|
## @section PostgreSQL
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user