You've already forked helm-gitea
refactor(structure): remove leading gitea directory (#958)
The following pull request removes the `gitea` directory. With regard to maintaining act_runners in a separate git repository or helm chart, this additional directory becomes redundant. Reviewed-on: https://gitea.com/gitea/helm-gitea/pulls/958 Reviewed-by: DaanSelen <daanselen@noreply.gitea.com> Co-authored-by: Markus Pesch <markus.pesch@cryptic.systems> Co-committed-by: Markus Pesch <markus.pesch@cryptic.systems>
This commit is contained in:
@@ -7,6 +7,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- v13
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest
|
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest
|
||||||
|
@@ -266,7 +266,7 @@ If `.Values.image.rootless: true`, then the following will occur. In case you us
|
|||||||
|
|
||||||
- `$HOME` becomes `/data/gitea/git`
|
- `$HOME` becomes `/data/gitea/git`
|
||||||
|
|
||||||
[see deployment.yaml](./templates/gitea/deployment.yaml) template inside (init-)container "env" declarations
|
[see deployment.yaml](./templates/deployment.yaml) template inside (init-)container "env" declarations
|
||||||
|
|
||||||
- `START_SSH_SERVER: true` (Unless explicity overwritten by `gitea.config.server.START_SSH_SERVER`)
|
- `START_SSH_SERVER: true` (Unless explicity overwritten by `gitea.config.server.START_SSH_SERVER`)
|
||||||
|
|
||||||
@@ -278,7 +278,7 @@ If `.Values.image.rootless: true`, then the following will occur. In case you us
|
|||||||
|
|
||||||
- `SSH_LOG_LEVEL` environment variable is not injected into the container
|
- `SSH_LOG_LEVEL` environment variable is not injected into the container
|
||||||
|
|
||||||
[see deployment.yaml](./templates/gitea/deployment.yaml) template inside container "env" declarations
|
[see deployment.yaml](./templates/deployment.yaml) template inside container "env" declarations
|
||||||
|
|
||||||
#### Session, Cache and Queue
|
#### Session, Cache and Queue
|
||||||
|
|
||||||
|
@@ -27,7 +27,7 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/gitea/config.yaml") . | sha256sum }}
|
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
|
||||||
{{- range $idx, $value := .Values.gitea.ldap }}
|
{{- range $idx, $value := .Values.gitea.ldap }}
|
||||||
checksum/ldap_{{ $idx }}: {{ include "gitea.ldap_settings" (list $idx $value) | sha256sum }}
|
checksum/ldap_{{ $idx }}: {{ include "gitea.ldap_settings" (list $idx $value) | sha256sum }}
|
||||||
{{- end }}
|
{{- end }}
|
@@ -3,17 +3,17 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/config.yaml
|
- templates/config.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: "actions are enabled by default (based on vanilla Gitea behavior)"
|
- it: "actions are enabled by default (based on vanilla Gitea behavior)"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- documentIndex: 0
|
- documentIndex: 0
|
||||||
notExists:
|
notExists:
|
||||||
path: stringData.actions
|
path: stringData.actions
|
||||||
|
|
||||||
- it: "actions can be disabled via inline config"
|
- it: "actions can be disabled via inline config"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
gitea.config.actions.ENABLED: false
|
gitea.config.actions.ENABLED: false
|
||||||
asserts:
|
asserts:
|
||||||
|
@@ -4,7 +4,7 @@ release:
|
|||||||
namespace: testing
|
namespace: testing
|
||||||
tests:
|
tests:
|
||||||
- it: "cache is configured correctly for valkey-cluster"
|
- it: "cache is configured correctly for valkey-cluster"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
valkey-cluster:
|
valkey-cluster:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -19,7 +19,7 @@ tests:
|
|||||||
HOST=redis+cluster://:@gitea-unittests-valkey-cluster-headless.testing.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
HOST=redis+cluster://:@gitea-unittests-valkey-cluster-headless.testing.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
||||||
|
|
||||||
- it: "cache is configured correctly for valkey"
|
- it: "cache is configured correctly for valkey"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
valkey-cluster:
|
valkey-cluster:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -34,7 +34,7 @@ tests:
|
|||||||
HOST=redis://:changeme@gitea-unittests-valkey-headless.testing.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
HOST=redis://:changeme@gitea-unittests-valkey-headless.testing.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
||||||
|
|
||||||
- it: "cache is configured correctly for 'memory' when valkey (or valkey-cluster) is disabled"
|
- it: "cache is configured correctly for 'memory' when valkey (or valkey-cluster) is disabled"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
valkey-cluster:
|
valkey-cluster:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -49,7 +49,7 @@ tests:
|
|||||||
HOST=
|
HOST=
|
||||||
|
|
||||||
- it: "cache can be customized when valkey (or valkey-cluster) is disabled"
|
- it: "cache can be customized when valkey (or valkey-cluster) is disabled"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
valkey-cluster:
|
valkey-cluster:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
@@ -4,7 +4,7 @@ release:
|
|||||||
namespace: testing
|
namespace: testing
|
||||||
tests:
|
tests:
|
||||||
- it: metrics token is set
|
- it: metrics token is set
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
gitea:
|
gitea:
|
||||||
metrics:
|
metrics:
|
||||||
@@ -18,7 +18,7 @@ tests:
|
|||||||
ENABLED=true
|
ENABLED=true
|
||||||
TOKEN=somepassword
|
TOKEN=somepassword
|
||||||
- it: metrics token is empty
|
- it: metrics token is empty
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
gitea:
|
gitea:
|
||||||
metrics:
|
metrics:
|
||||||
@@ -31,7 +31,7 @@ tests:
|
|||||||
value: |-
|
value: |-
|
||||||
ENABLED=true
|
ENABLED=true
|
||||||
- it: metrics token is nil
|
- it: metrics token is nil
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
gitea:
|
gitea:
|
||||||
metrics:
|
metrics:
|
||||||
@@ -44,7 +44,7 @@ tests:
|
|||||||
value: |-
|
value: |-
|
||||||
ENABLED=true
|
ENABLED=true
|
||||||
- it: does not configures a token if metrics are disabled
|
- it: does not configures a token if metrics are disabled
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
gitea:
|
gitea:
|
||||||
metrics:
|
metrics:
|
||||||
|
@@ -4,7 +4,7 @@ release:
|
|||||||
namespace: testing
|
namespace: testing
|
||||||
tests:
|
tests:
|
||||||
- it: "queue is configured correctly for valkey-cluster"
|
- it: "queue is configured correctly for valkey-cluster"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
valkey-cluster:
|
valkey-cluster:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -19,7 +19,7 @@ tests:
|
|||||||
TYPE=redis
|
TYPE=redis
|
||||||
|
|
||||||
- it: "queue is configured correctly for valkey"
|
- it: "queue is configured correctly for valkey"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
valkey-cluster:
|
valkey-cluster:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -34,7 +34,7 @@ tests:
|
|||||||
TYPE=redis
|
TYPE=redis
|
||||||
|
|
||||||
- it: "queue is configured correctly for 'levelDB' when valkey (and valkey-cluster) is disabled"
|
- it: "queue is configured correctly for 'levelDB' when valkey (and valkey-cluster) is disabled"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
valkey-cluster:
|
valkey-cluster:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -49,7 +49,7 @@ tests:
|
|||||||
TYPE=level
|
TYPE=level
|
||||||
|
|
||||||
- it: "queue can be customized when valkey (and valkey-cluster) are disabled"
|
- it: "queue can be customized when valkey (and valkey-cluster) are disabled"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
valkey-cluster:
|
valkey-cluster:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
@@ -4,7 +4,7 @@ release:
|
|||||||
namespace: testing
|
namespace: testing
|
||||||
tests:
|
tests:
|
||||||
- it: "[default values] uses ingress host for DOMAIN|SSH_DOMAIN|ROOT_URL"
|
- it: "[default values] uses ingress host for DOMAIN|SSH_DOMAIN|ROOT_URL"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- documentIndex: 0
|
- documentIndex: 0
|
||||||
matchRegex:
|
matchRegex:
|
||||||
@@ -22,7 +22,7 @@ tests:
|
|||||||
################################################
|
################################################
|
||||||
|
|
||||||
- it: "[no ingress hosts] uses gitea http service for DOMAIN|SSH_DOMAIN|ROOT_URL"
|
- it: "[no ingress hosts] uses gitea http service for DOMAIN|SSH_DOMAIN|ROOT_URL"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
ingress:
|
ingress:
|
||||||
hosts: []
|
hosts: []
|
||||||
@@ -43,7 +43,7 @@ tests:
|
|||||||
################################################
|
################################################
|
||||||
|
|
||||||
- it: "[provided via values] uses that for DOMAIN|SSH_DOMAIN|ROOT_URL"
|
- it: "[provided via values] uses that for DOMAIN|SSH_DOMAIN|ROOT_URL"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
gitea.config.server.DOMAIN: provided.example.com
|
gitea.config.server.DOMAIN: provided.example.com
|
||||||
ingress:
|
ingress:
|
||||||
|
@@ -4,7 +4,7 @@ release:
|
|||||||
namespace: testing
|
namespace: testing
|
||||||
tests:
|
tests:
|
||||||
- it: "session is configured correctly for valkey-cluster"
|
- it: "session is configured correctly for valkey-cluster"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
valkey-cluster:
|
valkey-cluster:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -19,7 +19,7 @@ tests:
|
|||||||
PROVIDER_CONFIG=redis+cluster://:@gitea-unittests-valkey-cluster-headless.testing.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
PROVIDER_CONFIG=redis+cluster://:@gitea-unittests-valkey-cluster-headless.testing.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
||||||
|
|
||||||
- it: "session is configured correctly for valkey"
|
- it: "session is configured correctly for valkey"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
valkey-cluster:
|
valkey-cluster:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -34,7 +34,7 @@ tests:
|
|||||||
PROVIDER_CONFIG=redis://:changeme@gitea-unittests-valkey-headless.testing.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
PROVIDER_CONFIG=redis://:changeme@gitea-unittests-valkey-headless.testing.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
||||||
|
|
||||||
- it: "session is configured correctly for 'memory' when valkey (and valkey-cluster) is disabled"
|
- it: "session is configured correctly for 'memory' when valkey (and valkey-cluster) is disabled"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
valkey-cluster:
|
valkey-cluster:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -49,7 +49,7 @@ tests:
|
|||||||
PROVIDER_CONFIG=
|
PROVIDER_CONFIG=
|
||||||
|
|
||||||
- it: "session can be customized when valkey (and valkey-cluster) is disabled"
|
- it: "session can be customized when valkey (and valkey-cluster) is disabled"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
set:
|
set:
|
||||||
valkey-cluster:
|
valkey-cluster:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
@@ -106,14 +106,14 @@ tests:
|
|||||||
name: gitea-unittests-postgresql-ha-pgpool
|
name: gitea-unittests-postgresql-ha-pgpool
|
||||||
namespace: testing
|
namespace: testing
|
||||||
- it: "[gitea] connects to pgpool service"
|
- it: "[gitea] connects to pgpool service"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- documentIndex: 0
|
- documentIndex: 0
|
||||||
matchRegex:
|
matchRegex:
|
||||||
path: stringData.database
|
path: stringData.database
|
||||||
pattern: HOST=gitea-unittests-postgresql-ha-pgpool.testing.svc.cluster.local:1234
|
pattern: HOST=gitea-unittests-postgresql-ha-pgpool.testing.svc.cluster.local:1234
|
||||||
- it: "[gitea] connects to configured database"
|
- it: "[gitea] connects to configured database"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- documentIndex: 0
|
- documentIndex: 0
|
||||||
matchRegex:
|
matchRegex:
|
||||||
|
@@ -65,14 +65,14 @@ tests:
|
|||||||
name: gitea-unittests-postgresql
|
name: gitea-unittests-postgresql
|
||||||
namespace: testing
|
namespace: testing
|
||||||
- it: "[gitea] connects to postgresql service"
|
- it: "[gitea] connects to postgresql service"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- documentIndex: 0
|
- documentIndex: 0
|
||||||
matchRegex:
|
matchRegex:
|
||||||
path: stringData.database
|
path: stringData.database
|
||||||
pattern: HOST=gitea-unittests-postgresql.testing.svc.cluster.local:1234
|
pattern: HOST=gitea-unittests-postgresql.testing.svc.cluster.local:1234
|
||||||
- it: "[gitea] connects to configured database"
|
- it: "[gitea] connects to configured database"
|
||||||
template: templates/gitea/config.yaml
|
template: templates/config.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- documentIndex: 0
|
- documentIndex: 0
|
||||||
matchRegex:
|
matchRegex:
|
||||||
|
@@ -82,7 +82,7 @@ tests:
|
|||||||
port: 6379
|
port: 6379
|
||||||
targetPort: tcp-redis
|
targetPort: tcp-redis
|
||||||
- it: "[gitea] waits for valkey-cluster to be up and running"
|
- it: "[gitea] waits for valkey-cluster to be up and running"
|
||||||
template: templates/gitea/init.yaml
|
template: templates/init.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- documentIndex: 0
|
- documentIndex: 0
|
||||||
matchRegex:
|
matchRegex:
|
||||||
|
@@ -44,7 +44,7 @@ tests:
|
|||||||
port: 6379
|
port: 6379
|
||||||
targetPort: redis
|
targetPort: redis
|
||||||
- it: "[gitea] waits for valkey to be up and running"
|
- it: "[gitea] waits for valkey to be up and running"
|
||||||
template: templates/gitea/init.yaml
|
template: templates/init.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- documentIndex: 0
|
- documentIndex: 0
|
||||||
matchRegex:
|
matchRegex:
|
||||||
|
@@ -3,11 +3,11 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/deployment.yaml
|
- templates/deployment.yaml
|
||||||
- templates/gitea/config.yaml
|
- templates/config.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: fails with multiple replicas and "GIT_GC_REPOS" enabled
|
- it: fails with multiple replicas and "GIT_GC_REPOS" enabled
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
replicaCount: 2
|
replicaCount: 2
|
||||||
persistence:
|
persistence:
|
||||||
@@ -22,14 +22,14 @@ tests:
|
|||||||
- failedTemplate:
|
- failedTemplate:
|
||||||
errorMessage: "Invoking the garbage collector via CRON is not yet supported when running with multiple replicas. Please set 'gitea.config.cron.GIT_GC_REPOS.enabled = false'."
|
errorMessage: "Invoking the garbage collector via CRON is not yet supported when running with multiple replicas. Please set 'gitea.config.cron.GIT_GC_REPOS.enabled = false'."
|
||||||
- it: fails with multiple replicas and RWX file system not set
|
- it: fails with multiple replicas and RWX file system not set
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
replicaCount: 2
|
replicaCount: 2
|
||||||
asserts:
|
asserts:
|
||||||
- failedTemplate:
|
- failedTemplate:
|
||||||
errorMessage: "When using multiple replicas, a RWX file system is required and persistence.accessModes[0] must be set to ReadWriteMany."
|
errorMessage: "When using multiple replicas, a RWX file system is required and persistence.accessModes[0] must be set to ReadWriteMany."
|
||||||
- it: fails with multiple replicas and bleve issue indexer
|
- it: fails with multiple replicas and bleve issue indexer
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
replicaCount: 2
|
replicaCount: 2
|
||||||
persistence:
|
persistence:
|
||||||
@@ -43,7 +43,7 @@ tests:
|
|||||||
- failedTemplate:
|
- failedTemplate:
|
||||||
errorMessage: "When using multiple replicas, the issue indexer (gitea.config.indexer.ISSUE_INDEXER_TYPE) must be set to a HA-ready provider such as 'meilisearch', 'elasticsearch' or 'db' (if the DB is HA-ready)."
|
errorMessage: "When using multiple replicas, the issue indexer (gitea.config.indexer.ISSUE_INDEXER_TYPE) must be set to a HA-ready provider such as 'meilisearch', 'elasticsearch' or 'db' (if the DB is HA-ready)."
|
||||||
- it: fails with multiple replicas and bleve repo indexer
|
- it: fails with multiple replicas and bleve repo indexer
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
replicaCount: 2
|
replicaCount: 2
|
||||||
persistence:
|
persistence:
|
||||||
|
@@ -3,11 +3,11 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/deployment.yaml
|
- templates/deployment.yaml
|
||||||
- templates/gitea/config.yaml
|
- templates/config.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: renders a deployment
|
- it: renders a deployment
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- hasDocuments:
|
- hasDocuments:
|
||||||
count: 1
|
count: 1
|
||||||
@@ -16,7 +16,7 @@ tests:
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
- it: deployment labels are set
|
- it: deployment labels are set
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
deployment.labels:
|
deployment.labels:
|
||||||
hello: world
|
hello: world
|
||||||
@@ -30,7 +30,7 @@ tests:
|
|||||||
content:
|
content:
|
||||||
hello: world
|
hello: world
|
||||||
- it: "injects TMP_EXISTING_ENVS_FILE as environment variable to 'init-app-ini' init container"
|
- it: "injects TMP_EXISTING_ENVS_FILE as environment variable to 'init-app-ini' init container"
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.initContainers[1].env
|
path: spec.template.spec.initContainers[1].env
|
||||||
@@ -38,7 +38,7 @@ tests:
|
|||||||
name: TMP_EXISTING_ENVS_FILE
|
name: TMP_EXISTING_ENVS_FILE
|
||||||
value: /tmp/existing-envs
|
value: /tmp/existing-envs
|
||||||
- it: "injects ENV_TO_INI_MOUNT_POINT as environment variable to 'init-app-ini' init container"
|
- it: "injects ENV_TO_INI_MOUNT_POINT as environment variable to 'init-app-ini' init container"
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.initContainers[1].env
|
path: spec.template.spec.initContainers[1].env
|
||||||
@@ -46,7 +46,7 @@ tests:
|
|||||||
name: ENV_TO_INI_MOUNT_POINT
|
name: ENV_TO_INI_MOUNT_POINT
|
||||||
value: /env-to-ini-mounts
|
value: /env-to-ini-mounts
|
||||||
- it: CPU resources are defined as well as GOMAXPROCS
|
- it: CPU resources are defined as well as GOMAXPROCS
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
@@ -74,7 +74,7 @@ tests:
|
|||||||
cpu: 100ms
|
cpu: 100ms
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
- it: Init containers have correct volumeMount path
|
- it: Init containers have correct volumeMount path
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
initContainersScriptsVolumeMountPath: "/custom/init/path"
|
initContainersScriptsVolumeMountPath: "/custom/init/path"
|
||||||
asserts:
|
asserts:
|
||||||
@@ -85,7 +85,7 @@ tests:
|
|||||||
path: spec.template.spec.initContainers[*].volumeMounts[?(@.name=="config")].mountPath
|
path: spec.template.spec.initContainers[*].volumeMounts[?(@.name=="config")].mountPath
|
||||||
value: "/custom/init/path"
|
value: "/custom/init/path"
|
||||||
- it: Init containers have correct volumeMount path if there is no override
|
- it: Init containers have correct volumeMount path if there is no override
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.initContainers[*].volumeMounts[?(@.name=="init")].mountPath
|
path: spec.template.spec.initContainers[*].volumeMounts[?(@.name=="init")].mountPath
|
||||||
|
@@ -3,11 +3,11 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/deployment.yaml
|
- templates/deployment.yaml
|
||||||
- templates/gitea/config.yaml
|
- templates/config.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Renders a deployment
|
- it: Renders a deployment
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- hasDocuments:
|
- hasDocuments:
|
||||||
count: 1
|
count: 1
|
||||||
@@ -16,7 +16,7 @@ tests:
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
- it: Deployment with empty additionalConfigFromEnvs
|
- it: Deployment with empty additionalConfigFromEnvs
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
gitea.additionalConfigFromEnvs: []
|
gitea.additionalConfigFromEnvs: []
|
||||||
asserts:
|
asserts:
|
||||||
@@ -44,7 +44,7 @@ tests:
|
|||||||
- name: ENV_TO_INI_MOUNT_POINT
|
- name: ENV_TO_INI_MOUNT_POINT
|
||||||
value: /env-to-ini-mounts
|
value: /env-to-ini-mounts
|
||||||
- it: Deployment with standard additionalConfigFromEnvs
|
- it: Deployment with standard additionalConfigFromEnvs
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
gitea.additionalConfigFromEnvs: [{name: GITEA_database_HOST, value: my-db:123}, {name: GITEA_database_USER, value: my-user}]
|
gitea.additionalConfigFromEnvs: [{name: GITEA_database_HOST, value: my-db:123}, {name: GITEA_database_USER, value: my-user}]
|
||||||
asserts:
|
asserts:
|
||||||
@@ -76,7 +76,7 @@ tests:
|
|||||||
- name: GITEA_database_USER
|
- name: GITEA_database_USER
|
||||||
value: my-user
|
value: my-user
|
||||||
- it: Deployment with templated additionalConfigFromEnvs
|
- it: Deployment with templated additionalConfigFromEnvs
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
gitea.misc.host: my-db-host:321
|
gitea.misc.host: my-db-host:321
|
||||||
gitea.misc.user: my-db-user
|
gitea.misc.user: my-db-user
|
||||||
@@ -110,7 +110,7 @@ tests:
|
|||||||
- name: GITEA_database_USER
|
- name: GITEA_database_USER
|
||||||
value: my-db-user
|
value: my-db-user
|
||||||
- it: Deployment with additionalConfigFromEnvs templated secret name
|
- it: Deployment with additionalConfigFromEnvs templated secret name
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
gitea.misc.existingSecret: my-db-secret
|
gitea.misc.existingSecret: my-db-secret
|
||||||
gitea.additionalConfigFromEnvs[0]:
|
gitea.additionalConfigFromEnvs[0]:
|
||||||
|
@@ -3,18 +3,18 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/deployment.yaml
|
- templates/deployment.yaml
|
||||||
- templates/gitea/config.yaml
|
- templates/config.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Render the deployment (default)
|
- it: Render the deployment (default)
|
||||||
asserts:
|
asserts:
|
||||||
- hasDocuments:
|
- hasDocuments:
|
||||||
count: 1
|
count: 1
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- lengthEqual:
|
- lengthEqual:
|
||||||
path: spec.template.spec.initContainers
|
path: spec.template.spec.initContainers
|
||||||
count: 3
|
count: 3
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Render the deployment (signing)
|
- it: Render the deployment (signing)
|
||||||
set:
|
set:
|
||||||
@@ -22,11 +22,11 @@ tests:
|
|||||||
asserts:
|
asserts:
|
||||||
- hasDocuments:
|
- hasDocuments:
|
||||||
count: 1
|
count: 1
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- lengthEqual:
|
- lengthEqual:
|
||||||
path: spec.template.spec.initContainers
|
path: spec.template.spec.initContainers
|
||||||
count: 4
|
count: 4
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
|
||||||
- it: Render the deployment (extraInitContainers)
|
- it: Render the deployment (extraInitContainers)
|
||||||
set:
|
set:
|
||||||
@@ -40,20 +40,20 @@ tests:
|
|||||||
asserts:
|
asserts:
|
||||||
- hasDocuments:
|
- hasDocuments:
|
||||||
count: 1
|
count: 1
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- lengthEqual:
|
- lengthEqual:
|
||||||
path: spec.template.spec.initContainers
|
path: spec.template.spec.initContainers
|
||||||
count: 6
|
count: 6
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.initContainers
|
path: spec.template.spec.initContainers
|
||||||
content:
|
content:
|
||||||
name: foo
|
name: foo
|
||||||
image: docker.io/library/busybox:latest
|
image: docker.io/library/busybox:latest
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
- contains:
|
- contains:
|
||||||
path: spec.template.spec.initContainers
|
path: spec.template.spec.initContainers
|
||||||
content:
|
content:
|
||||||
name: bar
|
name: bar
|
||||||
image: docker.io/library/busybox:latest
|
image: docker.io/library/busybox:latest
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
|
@@ -6,17 +6,17 @@ chart:
|
|||||||
# Override appVersion to be consistent with used digest :)
|
# Override appVersion to be consistent with used digest :)
|
||||||
appVersion: 1.19.3
|
appVersion: 1.19.3
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/deployment.yaml
|
- templates/deployment.yaml
|
||||||
- templates/gitea/config.yaml
|
- templates/config.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: default values
|
- it: default values
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "docker.gitea.com/gitea:1.19.3-rootless"
|
value: "docker.gitea.com/gitea:1.19.3-rootless"
|
||||||
- it: tag override
|
- it: tag override
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
image.tag: "1.19.4"
|
image.tag: "1.19.4"
|
||||||
asserts:
|
asserts:
|
||||||
@@ -24,7 +24,7 @@ tests:
|
|||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "docker.gitea.com/gitea:1.19.4-rootless"
|
value: "docker.gitea.com/gitea:1.19.4-rootless"
|
||||||
- it: root-based image
|
- it: root-based image
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
image.rootless: false
|
image.rootless: false
|
||||||
asserts:
|
asserts:
|
||||||
@@ -32,7 +32,7 @@ tests:
|
|||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "docker.gitea.com/gitea:1.19.3"
|
value: "docker.gitea.com/gitea:1.19.3"
|
||||||
- it: scoped registry
|
- it: scoped registry
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
image.registry: "example.com"
|
image.registry: "example.com"
|
||||||
asserts:
|
asserts:
|
||||||
@@ -40,7 +40,7 @@ tests:
|
|||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "example.com/gitea:1.19.3-rootless"
|
value: "example.com/gitea:1.19.3-rootless"
|
||||||
- it: global registry
|
- it: global registry
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
global.imageRegistry: "global.example.com"
|
global.imageRegistry: "global.example.com"
|
||||||
asserts:
|
asserts:
|
||||||
@@ -48,7 +48,7 @@ tests:
|
|||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "global.example.com/gitea:1.19.3-rootless"
|
value: "global.example.com/gitea:1.19.3-rootless"
|
||||||
- it: digest for rootless image
|
- it: digest for rootless image
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
image:
|
image:
|
||||||
rootless: true
|
rootless: true
|
||||||
@@ -58,7 +58,7 @@ tests:
|
|||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "docker.gitea.com/gitea:1.19.3-rootless@sha256:b28e8f3089b52ebe6693295df142f8c12eff354e9a4a5bfbb5c10f296c3a537a"
|
value: "docker.gitea.com/gitea:1.19.3-rootless@sha256:b28e8f3089b52ebe6693295df142f8c12eff354e9a4a5bfbb5c10f296c3a537a"
|
||||||
- it: image fullOverride (does not append rootless)
|
- it: image fullOverride (does not append rootless)
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
image:
|
image:
|
||||||
fullOverride: docker.gitea.com/gitea:1.19.3
|
fullOverride: docker.gitea.com/gitea:1.19.3
|
||||||
@@ -73,7 +73,7 @@ tests:
|
|||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "docker.gitea.com/gitea:1.19.3"
|
value: "docker.gitea.com/gitea:1.19.3"
|
||||||
- it: digest for root-based image
|
- it: digest for root-based image
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
image:
|
image:
|
||||||
rootless: false
|
rootless: false
|
||||||
@@ -83,7 +83,7 @@ tests:
|
|||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "docker.gitea.com/gitea:1.19.3@sha256:b28e8f3089b52ebe6693295df142f8c12eff354e9a4a5bfbb5c10f296c3a537a"
|
value: "docker.gitea.com/gitea:1.19.3@sha256:b28e8f3089b52ebe6693295df142f8c12eff354e9a4a5bfbb5c10f296c3a537a"
|
||||||
- it: digest and global registry
|
- it: digest and global registry
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
global.imageRegistry: "global.example.com"
|
global.imageRegistry: "global.example.com"
|
||||||
image.digest: "sha256:b28e8f3089b52ebe6693295df142f8c12eff354e9a4a5bfbb5c10f296c3a537a"
|
image.digest: "sha256:b28e8f3089b52ebe6693295df142f8c12eff354e9a4a5bfbb5c10f296c3a537a"
|
||||||
@@ -92,7 +92,7 @@ tests:
|
|||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "global.example.com/gitea:1.19.3-rootless@sha256:b28e8f3089b52ebe6693295df142f8c12eff354e9a4a5bfbb5c10f296c3a537a"
|
value: "global.example.com/gitea:1.19.3-rootless@sha256:b28e8f3089b52ebe6693295df142f8c12eff354e9a4a5bfbb5c10f296c3a537a"
|
||||||
- it: correctly renders floating tag references
|
- it: correctly renders floating tag references
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
image.tag: 1.21 # use non-quoted value on purpose. See: https://gitea.com/gitea/helm-gitea/issues/631
|
image.tag: 1.21 # use non-quoted value on purpose. See: https://gitea.com/gitea/helm-gitea/issues/631
|
||||||
asserts:
|
asserts:
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
suite: Test ingress tpl use
|
suite: Test ingress tpl use
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/ingress.yaml
|
- templates/ingress.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Ingress Class using TPL
|
- it: Ingress Class using TPL
|
||||||
set:
|
set:
|
||||||
|
@@ -3,7 +3,7 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/config.yaml
|
- templates/config.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: inline config stringData.server using TPL
|
- it: inline config stringData.server using TPL
|
||||||
set:
|
set:
|
||||||
|
@@ -3,11 +3,11 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/deployment.yaml
|
- templates/deployment.yaml
|
||||||
- templates/gitea/config.yaml
|
- templates/config.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: renders default liveness probe
|
- it: renders default liveness probe
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.containers[0].livenessProbe.enabled
|
path: spec.template.spec.containers[0].livenessProbe.enabled
|
||||||
@@ -22,7 +22,7 @@ tests:
|
|||||||
port: http
|
port: http
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
- it: renders default readiness probe
|
- it: renders default readiness probe
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.containers[0].readinessProbe.enabled
|
path: spec.template.spec.containers[0].readinessProbe.enabled
|
||||||
@@ -37,12 +37,12 @@ tests:
|
|||||||
port: http
|
port: http
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
- it: does not render a default startup probe
|
- it: does not render a default startup probe
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.template.spec.containers[0].startupProbe
|
path: spec.template.spec.containers[0].startupProbe
|
||||||
- it: allows enabling a startup probe
|
- it: allows enabling a startup probe
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
gitea.startupProbe.enabled: true
|
gitea.startupProbe.enabled: true
|
||||||
asserts:
|
asserts:
|
||||||
@@ -60,7 +60,7 @@ tests:
|
|||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
|
|
||||||
- it: allows overwriting the default port of the liveness probe
|
- it: allows overwriting the default port of the liveness probe
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
gitea:
|
gitea:
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
@@ -74,7 +74,7 @@ tests:
|
|||||||
port: my-port
|
port: my-port
|
||||||
|
|
||||||
- it: allows overwriting the default port of the readiness probe
|
- it: allows overwriting the default port of the readiness probe
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
gitea:
|
gitea:
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
@@ -88,7 +88,7 @@ tests:
|
|||||||
port: my-port
|
port: my-port
|
||||||
|
|
||||||
- it: allows overwriting the default port of the startup probe
|
- it: allows overwriting the default port of the startup probe
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
gitea:
|
gitea:
|
||||||
startupProbe:
|
startupProbe:
|
||||||
@@ -103,7 +103,7 @@ tests:
|
|||||||
port: my-port
|
port: my-port
|
||||||
|
|
||||||
- it: allows using a non-default method as liveness probe
|
- it: allows using a non-default method as liveness probe
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
gitea:
|
gitea:
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
@@ -131,7 +131,7 @@ tests:
|
|||||||
timeoutSeconds: 13372
|
timeoutSeconds: 13372
|
||||||
|
|
||||||
- it: allows using a non-default method as readiness probe
|
- it: allows using a non-default method as readiness probe
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
gitea:
|
gitea:
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
@@ -159,7 +159,7 @@ tests:
|
|||||||
timeoutSeconds: 13372
|
timeoutSeconds: 13372
|
||||||
|
|
||||||
- it: allows using a non-default method as startup probe
|
- it: allows using a non-default method as startup probe
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
gitea:
|
gitea:
|
||||||
startupProbe:
|
startupProbe:
|
||||||
|
@@ -3,11 +3,11 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/deployment.yaml
|
- templates/deployment.yaml
|
||||||
- templates/gitea/config.yaml
|
- templates/config.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: supports adding a sidecar container
|
- it: supports adding a sidecar container
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
extraContainers:
|
extraContainers:
|
||||||
- name: sidecar-bob
|
- name: sidecar-bob
|
||||||
|
@@ -3,11 +3,11 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/deployment.yaml
|
- templates/deployment.yaml
|
||||||
- templates/gitea/config.yaml
|
- templates/config.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: skips gpg init container
|
- it: skips gpg init container
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.initContainers
|
path: spec.template.spec.initContainers
|
||||||
@@ -15,7 +15,7 @@ tests:
|
|||||||
content:
|
content:
|
||||||
name: configure-gpg
|
name: configure-gpg
|
||||||
- it: skips gpg env in `init-directories` init container
|
- it: skips gpg env in `init-directories` init container
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
signing.enabled: false
|
signing.enabled: false
|
||||||
asserts:
|
asserts:
|
||||||
@@ -25,14 +25,14 @@ tests:
|
|||||||
name: GNUPGHOME
|
name: GNUPGHOME
|
||||||
value: /data/git/.gnupg
|
value: /data/git/.gnupg
|
||||||
- it: skips gpg env in runtime container
|
- it: skips gpg env in runtime container
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.containers[0].env
|
path: spec.template.spec.containers[0].env
|
||||||
content:
|
content:
|
||||||
name: GNUPGHOME
|
name: GNUPGHOME
|
||||||
- it: skips gpg volume spec
|
- it: skips gpg volume spec
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- notContains:
|
- notContains:
|
||||||
path: spec.template.spec.volumes
|
path: spec.template.spec.volumes
|
||||||
|
@@ -3,11 +3,11 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/deployment.yaml
|
- templates/deployment.yaml
|
||||||
- templates/gitea/config.yaml
|
- templates/config.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: adds gpg init container
|
- it: adds gpg init container
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
signing:
|
signing:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -41,7 +41,7 @@ tests:
|
|||||||
mountPath: /raw
|
mountPath: /raw
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- it: adds gpg env in `init-directories` init container
|
- it: adds gpg env in `init-directories` init container
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
signing.enabled: true
|
signing.enabled: true
|
||||||
signing.existingSecret: "custom-gpg-secret"
|
signing.existingSecret: "custom-gpg-secret"
|
||||||
@@ -52,7 +52,7 @@ tests:
|
|||||||
name: GNUPGHOME
|
name: GNUPGHOME
|
||||||
value: /data/git/.gnupg
|
value: /data/git/.gnupg
|
||||||
- it: adds gpg env in runtime container
|
- it: adds gpg env in runtime container
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
signing.enabled: true
|
signing.enabled: true
|
||||||
signing.existingSecret: "custom-gpg-secret"
|
signing.existingSecret: "custom-gpg-secret"
|
||||||
@@ -63,7 +63,7 @@ tests:
|
|||||||
name: GNUPGHOME
|
name: GNUPGHOME
|
||||||
value: /data/git/.gnupg
|
value: /data/git/.gnupg
|
||||||
- it: adds gpg volume spec
|
- it: adds gpg volume spec
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
signing:
|
signing:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -80,7 +80,7 @@ tests:
|
|||||||
path: private.asc
|
path: private.asc
|
||||||
defaultMode: 0100
|
defaultMode: 0100
|
||||||
- it: supports gpg volume spec with external reference
|
- it: supports gpg volume spec with external reference
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
signing:
|
signing:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@@ -3,11 +3,11 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/deployment.yaml
|
- templates/deployment.yaml
|
||||||
- templates/gitea/config.yaml
|
- templates/config.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: supports defining SSH log level for root based image
|
- it: supports defining SSH log level for root based image
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
image.rootless: false
|
image.rootless: false
|
||||||
asserts:
|
asserts:
|
||||||
@@ -17,7 +17,7 @@ tests:
|
|||||||
name: SSH_LOG_LEVEL
|
name: SSH_LOG_LEVEL
|
||||||
value: "INFO"
|
value: "INFO"
|
||||||
- it: supports overriding SSH log level
|
- it: supports overriding SSH log level
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
image.rootless: false
|
image.rootless: false
|
||||||
gitea.ssh.logLevel: "DEBUG"
|
gitea.ssh.logLevel: "DEBUG"
|
||||||
@@ -28,7 +28,7 @@ tests:
|
|||||||
name: SSH_LOG_LEVEL
|
name: SSH_LOG_LEVEL
|
||||||
value: "DEBUG"
|
value: "DEBUG"
|
||||||
- it: supports overriding SSH log level (even when image.fullOverride set)
|
- it: supports overriding SSH log level (even when image.fullOverride set)
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
image.fullOverride: docker.gitea.com/gitea:1.19.3
|
image.fullOverride: docker.gitea.com/gitea:1.19.3
|
||||||
image.rootless: false
|
image.rootless: false
|
||||||
@@ -40,7 +40,7 @@ tests:
|
|||||||
name: SSH_LOG_LEVEL
|
name: SSH_LOG_LEVEL
|
||||||
value: "DEBUG"
|
value: "DEBUG"
|
||||||
- it: skips SSH_LOG_LEVEL for rootless image
|
- it: skips SSH_LOG_LEVEL for rootless image
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
image.rootless: true
|
image.rootless: true
|
||||||
gitea.ssh.logLevel: "DEBUG" # explicitly defining a non-standard level here
|
gitea.ssh.logLevel: "DEBUG" # explicitly defining a non-standard level here
|
||||||
@@ -51,7 +51,7 @@ tests:
|
|||||||
content:
|
content:
|
||||||
name: SSH_LOG_LEVEL
|
name: SSH_LOG_LEVEL
|
||||||
- it: skips SSH_LOG_LEVEL for rootless image (even when image.fullOverride set)
|
- it: skips SSH_LOG_LEVEL for rootless image (even when image.fullOverride set)
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
image.fullOverride: docker.gitea.com/gitea:1.19.3
|
image.fullOverride: docker.gitea.com/gitea:1.19.3
|
||||||
image.rootless: true
|
image.rootless: true
|
||||||
|
@@ -7,11 +7,11 @@ release:
|
|||||||
namespace: testing
|
namespace: testing
|
||||||
|
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/pvc.yaml
|
- templates/pvc.yaml
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
- it: should set storageClassName when persistence.storageClass is defined
|
- it: should set storageClassName when persistence.storageClass is defined
|
||||||
template: templates/gitea/pvc.yaml
|
template: templates/pvc.yaml
|
||||||
set:
|
set:
|
||||||
persistence.storageClass: "my-storage-class"
|
persistence.storageClass: "my-storage-class"
|
||||||
asserts:
|
asserts:
|
||||||
@@ -20,7 +20,7 @@ tests:
|
|||||||
value: "my-storage-class"
|
value: "my-storage-class"
|
||||||
|
|
||||||
- it: should set global.storageClass when persistence.storageClass is not defined
|
- it: should set global.storageClass when persistence.storageClass is not defined
|
||||||
template: templates/gitea/pvc.yaml
|
template: templates/pvc.yaml
|
||||||
set:
|
set:
|
||||||
global.storageClass: "default-storage-class"
|
global.storageClass: "default-storage-class"
|
||||||
asserts:
|
asserts:
|
||||||
@@ -29,7 +29,7 @@ tests:
|
|||||||
value: "default-storage-class"
|
value: "default-storage-class"
|
||||||
|
|
||||||
- it: should set storageClassName when persistence.storageClass is defined and global.storageClass is defined
|
- it: should set storageClassName when persistence.storageClass is defined and global.storageClass is defined
|
||||||
template: templates/gitea/pvc.yaml
|
template: templates/pvc.yaml
|
||||||
set:
|
set:
|
||||||
global.storageClass: "default-storage-class"
|
global.storageClass: "default-storage-class"
|
||||||
persistence.storageClass: "my-storage-class"
|
persistence.storageClass: "my-storage-class"
|
||||||
|
@@ -3,11 +3,11 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/ssh-svc.yaml
|
- templates/ssh-svc.yaml
|
||||||
- templates/gitea/http-svc.yaml
|
- templates/http-svc.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: supports adding custom labels to ssh-svc
|
- it: supports adding custom labels to ssh-svc
|
||||||
template: templates/gitea/ssh-svc.yaml
|
template: templates/ssh-svc.yaml
|
||||||
set:
|
set:
|
||||||
service:
|
service:
|
||||||
ssh:
|
ssh:
|
||||||
@@ -19,7 +19,7 @@ tests:
|
|||||||
value: "testvalue"
|
value: "testvalue"
|
||||||
|
|
||||||
- it: keeps existing labels (ssh)
|
- it: keeps existing labels (ssh)
|
||||||
template: templates/gitea/ssh-svc.yaml
|
template: templates/ssh-svc.yaml
|
||||||
set:
|
set:
|
||||||
service:
|
service:
|
||||||
ssh:
|
ssh:
|
||||||
@@ -29,7 +29,7 @@ tests:
|
|||||||
path: metadata.labels["app"]
|
path: metadata.labels["app"]
|
||||||
|
|
||||||
- it: supports adding custom labels to http-svc
|
- it: supports adding custom labels to http-svc
|
||||||
template: templates/gitea/http-svc.yaml
|
template: templates/http-svc.yaml
|
||||||
set:
|
set:
|
||||||
service:
|
service:
|
||||||
http:
|
http:
|
||||||
@@ -41,7 +41,7 @@ tests:
|
|||||||
value: "testvalue"
|
value: "testvalue"
|
||||||
|
|
||||||
- it: keeps existing labels (http)
|
- it: keeps existing labels (http)
|
||||||
template: templates/gitea/http-svc.yaml
|
template: templates/http-svc.yaml
|
||||||
set:
|
set:
|
||||||
service:
|
service:
|
||||||
http:
|
http:
|
||||||
@@ -51,7 +51,7 @@ tests:
|
|||||||
path: metadata.labels["app"]
|
path: metadata.labels["app"]
|
||||||
|
|
||||||
- it: render service.ssh.loadBalancerClass if set and type is LoadBalancer
|
- it: render service.ssh.loadBalancerClass if set and type is LoadBalancer
|
||||||
template: templates/gitea/ssh-svc.yaml
|
template: templates/ssh-svc.yaml
|
||||||
set:
|
set:
|
||||||
service:
|
service:
|
||||||
ssh:
|
ssh:
|
||||||
@@ -73,7 +73,7 @@ tests:
|
|||||||
value: ["1.2.3.4/32", "5.6.7.8/32"]
|
value: ["1.2.3.4/32", "5.6.7.8/32"]
|
||||||
|
|
||||||
- it: does not render when loadbalancer properties are set but type is not loadBalancerClass
|
- it: does not render when loadbalancer properties are set but type is not loadBalancerClass
|
||||||
template: templates/gitea/http-svc.yaml
|
template: templates/http-svc.yaml
|
||||||
set:
|
set:
|
||||||
service:
|
service:
|
||||||
http:
|
http:
|
||||||
@@ -92,7 +92,7 @@ tests:
|
|||||||
path: spec.loadBalancerSourceRanges
|
path: spec.loadBalancerSourceRanges
|
||||||
|
|
||||||
- it: does not render loadBalancerClass by default even when type is LoadBalancer
|
- it: does not render loadBalancerClass by default even when type is LoadBalancer
|
||||||
template: templates/gitea/http-svc.yaml
|
template: templates/http-svc.yaml
|
||||||
set:
|
set:
|
||||||
service:
|
service:
|
||||||
http:
|
http:
|
||||||
@@ -107,8 +107,8 @@ tests:
|
|||||||
|
|
||||||
- it: both ssh and http services exist
|
- it: both ssh and http services exist
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/ssh-svc.yaml
|
- templates/ssh-svc.yaml
|
||||||
- templates/gitea/http-svc.yaml
|
- templates/http-svc.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- matchRegex:
|
- matchRegex:
|
||||||
path: metadata.name
|
path: metadata.name
|
||||||
|
@@ -3,7 +3,7 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/gpg-secret.yaml
|
- templates/gpg-secret.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: renders nothing
|
- it: renders nothing
|
||||||
set:
|
set:
|
||||||
|
@@ -3,7 +3,7 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/gpg-secret.yaml
|
- templates/gpg-secret.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: fails rendering when nothing is configured
|
- it: fails rendering when nothing is configured
|
||||||
set:
|
set:
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
suite: Test ingress.yaml
|
suite: Test ingress.yaml
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/ingress.yaml
|
- templates/ingress.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: should enable ingress when ingress.enabled is true
|
- it: should enable ingress when ingress.enabled is true
|
||||||
set:
|
set:
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
suite: Test ingress with implicit path defaults
|
suite: Test ingress with implicit path defaults
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/ingress.yaml
|
- templates/ingress.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: should use default path and pathType when no paths are specified
|
- it: should use default path and pathType when no paths are specified
|
||||||
set:
|
set:
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
suite: Test ingress tpl use
|
suite: Test ingress tpl use
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/ingress.yaml
|
- templates/ingress.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Ingress Class using TPL
|
- it: Ingress Class using TPL
|
||||||
set:
|
set:
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
suite: Test ingress with structured paths
|
suite: Test ingress with structured paths
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/ingress.yaml
|
- templates/ingress.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: should work with structured path definitions
|
- it: should work with structured path definitions
|
||||||
set:
|
set:
|
||||||
|
@@ -3,7 +3,7 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/init.yaml
|
- templates/init.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: renders a secret
|
- it: renders a secret
|
||||||
asserts:
|
asserts:
|
||||||
|
@@ -3,7 +3,7 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/init.yaml
|
- templates/init.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: runs gpg in batch mode
|
- it: runs gpg in batch mode
|
||||||
set:
|
set:
|
||||||
@@ -63,7 +63,7 @@ tests:
|
|||||||
chown -v 1000:1000 "${GNUPGHOME}"
|
chown -v 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/init.yaml
|
||||||
set:
|
set:
|
||||||
image.fullOverride: docker.gitea.com/gitea:1.20.5
|
image.fullOverride: docker.gitea.com/gitea:1.20.5
|
||||||
asserts:
|
asserts:
|
||||||
|
@@ -3,7 +3,7 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/init.yaml
|
- templates/init.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: runs gpg in batch mode
|
- it: runs gpg in batch mode
|
||||||
set:
|
set:
|
||||||
|
@@ -3,7 +3,7 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/metrics-secret.yaml
|
- templates/metrics-secret.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: renders nothing if monitoring disabled and gitea.metrics.token empty
|
- it: renders nothing if monitoring disabled and gitea.metrics.token empty
|
||||||
set:
|
set:
|
||||||
|
@@ -3,7 +3,7 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/metrics-secret.yaml
|
- templates/metrics-secret.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: renders nothing if monitoring enabled and gitea.metrics.token empty
|
- it: renders nothing if monitoring enabled and gitea.metrics.token empty
|
||||||
set:
|
set:
|
||||||
|
@@ -6,7 +6,7 @@ release:
|
|||||||
name: gitea-unittest
|
name: gitea-unittest
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/networkPolicy.yaml
|
- templates/networkPolicy.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Skip rendering networkPolicy
|
- it: Skip rendering networkPolicy
|
||||||
set:
|
set:
|
||||||
|
@@ -3,7 +3,7 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/pvc.yaml
|
- templates/pvc.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: Storage Class using TPL
|
- it: Storage Class using TPL
|
||||||
set:
|
set:
|
||||||
|
@@ -3,7 +3,7 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/serviceaccount.yaml
|
- templates/serviceaccount.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: skips rendering by default
|
- it: skips rendering by default
|
||||||
asserts:
|
asserts:
|
||||||
|
@@ -3,17 +3,17 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/serviceaccount.yaml
|
- templates/serviceaccount.yaml
|
||||||
- templates/gitea/deployment.yaml
|
- templates/deployment.yaml
|
||||||
- templates/gitea/config.yaml
|
- templates/config.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: does not modify the deployment by default
|
- it: does not modify the deployment by default
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
asserts:
|
asserts:
|
||||||
- notExists:
|
- notExists:
|
||||||
path: spec.serviceAccountName
|
path: spec.serviceAccountName
|
||||||
- it: adds the reference to the deployment with serviceAccount.create=true
|
- it: adds the reference to the deployment with serviceAccount.create=true
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
serviceAccount.create: true
|
serviceAccount.create: true
|
||||||
asserts:
|
asserts:
|
||||||
@@ -21,7 +21,7 @@ tests:
|
|||||||
path: spec.template.spec.serviceAccountName
|
path: spec.template.spec.serviceAccountName
|
||||||
value: gitea-unittests
|
value: gitea-unittests
|
||||||
- it: allows referencing an externally created ServiceAccount to the deployment
|
- it: allows referencing an externally created ServiceAccount to the deployment
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/deployment.yaml
|
||||||
set:
|
set:
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
create: false # explicitly set to define rendering behavior
|
create: false # explicitly set to define rendering behavior
|
||||||
|
@@ -3,7 +3,7 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/servicemonitor.yaml
|
- templates/servicemonitor.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: skips rendering by default
|
- it: skips rendering by default
|
||||||
asserts:
|
asserts:
|
||||||
|
@@ -3,7 +3,7 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/servicemonitor.yaml
|
- templates/servicemonitor.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: renders nothing if gitea.metrics.serviceMonitor disabled and gitea.metrics.token empty
|
- it: renders nothing if gitea.metrics.serviceMonitor disabled and gitea.metrics.token empty
|
||||||
set:
|
set:
|
||||||
|
@@ -3,7 +3,7 @@ release:
|
|||||||
name: gitea-unittests
|
name: gitea-unittests
|
||||||
namespace: testing
|
namespace: testing
|
||||||
templates:
|
templates:
|
||||||
- templates/gitea/servicemonitor.yaml
|
- templates/servicemonitor.yaml
|
||||||
tests:
|
tests:
|
||||||
- it: renders unsecure ServiceMonitor if gitea.metrics.token nil
|
- it: renders unsecure ServiceMonitor if gitea.metrics.token nil
|
||||||
set:
|
set:
|
||||||
|
Reference in New Issue
Block a user