69 Commits
Author SHA1 Message Date
renovate-bot 20ca16605d chore(deps): update subcharts (minor & patch) (#150)
check-and-test / check-and-test (push) Successful in 37s
changelog / changelog (push) Successful in 1m0s
generate-chart / generate-chart-publish (push) Successful in 1m46s
generate-chart / release-gitea (push) Successful in 7s
2026-08-08 00:07:01 +00:00
williamp 32effbc51d Merge pull request 'chore(deps): update docker.io/thegeeklab/git-sv docker tag to v3' (#147) from renovate/docker.io-thegeeklab-git-sv-3.x into main
changelog / changelog (push) Successful in 15s
check-and-test / check-and-test (push) Successful in 41s
Reviewed-on: #147
2026-08-01 21:12:39 +00:00
renovate-bot 16273c6342 chore(deps): update subcharts (minor & patch) (#149)
changelog / changelog (push) Successful in 17s
check-and-test / check-and-test (push) Successful in 42s
2026-08-01 08:06:43 +00:00
renovate-bot 758b88d1f8 chore(deps): update lockfiles (#148)
changelog / changelog (push) Successful in 7s
check-and-test / check-and-test (push) Successful in 51s
2026-08-01 07:01:22 +00:00
renovate-bot df766d51bc chore(deps): update docker.io/thegeeklab/git-sv docker tag to v3
commitlint / check-and-test (pull_request) Successful in 12s
check-and-test / check-and-test (pull_request) Successful in 35s
2026-08-01 01:01:04 +00:00
renovate-bot 40bd32402b chore(deps): update subcharts (minor & patch) (#146) 2026-08-01 00:06:56 +00:00
renovate-bot 59fbb01b7b chore(deps): update subcharts (minor & patch) (#146)
check-and-test / check-and-test (push) Successful in 44s
changelog / changelog (push) Successful in 7s
2026-08-01 00:06:48 +00:00
renovate-bot 7f66b9f2e6 chore(deps): update unittests/bash/test_helper/bats-mock digest to eacf0fe (#145)
changelog / changelog (push) Successful in 13s
check-and-test / check-and-test (push) Successful in 42s
2026-08-01 00:01:18 +00:00
renovate-bot 9752d2fae3 chore(deps): update lockfiles (#144)
changelog / changelog (push) Successful in 10s
check-and-test / check-and-test (push) Successful in 41s
2026-07-30 11:01:44 +00:00
renovate-bot 2f694f437c chore(deps): update lockfiles (#143)
changelog / changelog (push) Successful in 10s
check-and-test / check-and-test (push) Successful in 38s
2026-07-30 10:01:54 +00:00
renovate-bot ea416dad2b chore(deps): update lockfiles (#142)
changelog / changelog (push) Successful in 14s
check-and-test / check-and-test (push) Successful in 42s
2026-07-29 11:01:41 +00:00
renovate-bot 264fbb9ea7 chore(deps): update dependency go-gitea/gitea to v1.27.1 (#141)
changelog / changelog (push) Successful in 6s
check-and-test / check-and-test (push) Successful in 42s
generate-chart / generate-chart-publish (push) Successful in 1m53s
generate-chart / release-gitea (push) Successful in 11s
2026-07-27 21:01:36 +00:00
renovate-bot 18698460e2 chore(deps): update lockfiles (#140)
changelog / changelog (push) Successful in 13s
check-and-test / check-and-test (push) Successful in 46s
2026-07-27 19:01:58 +00:00
renovate-bot ddffdd4e59 chore(deps): update unittests/bash/bats digest to ae4b94d (#139)
changelog / changelog (push) Successful in 6s
check-and-test / check-and-test (push) Successful in 40s
2026-07-26 22:01:52 +00:00
renovate-bot 171db06fc8 chore(deps): update lockfiles (#138)
changelog / changelog (push) Successful in 8s
check-and-test / check-and-test (push) Successful in 43s
2026-07-26 09:01:35 +00:00
renovate-bot 4524e45e30 chore(deps): update valkey docker tag to v6.2.2 (#137)
changelog / changelog (push) Successful in 7s
check-and-test / check-and-test (push) Successful in 48s
2026-07-25 01:05:19 +00:00
renovate-bot 41257bca5f chore(deps): update dependency helm-unittest/helm-unittest to v1.1.2 (#136)
changelog / changelog (push) Successful in 6s
check-and-test / check-and-test (push) Successful in 39s
2026-07-25 00:02:01 +00:00
renovate-bot fbe1e6322d chore(deps): update unittests/bash/bats digest to d22e41f (#135)
changelog / changelog (push) Successful in 12s
check-and-test / check-and-test (push) Successful in 42s
2026-07-25 00:01:46 +00:00
renovate-bot 52d3bb5a41 chore(deps): update lockfiles (#134)
check-and-test / check-and-test (push) Successful in 1m6s
changelog / changelog (push) Successful in 1m27s
2026-07-23 23:01:37 +00:00
renovate-bot 58e1b76e01 chore(deps): update lockfiles (#133)
changelog / changelog (push) Successful in 6s
check-and-test / check-and-test (push) Successful in 40s
2026-07-23 12:01:49 +00:00
renovate-bot 6fd91c0362 chore(deps): update lockfiles (#132)
changelog / changelog (push) Successful in 7s
check-and-test / check-and-test (push) Successful in 38s
2026-07-22 21:02:08 +00:00
renovate-bot 65140036cc chore(deps): update lockfiles (#132)
changelog / changelog (push) Successful in 13s
check-and-test / check-and-test (push) Successful in 44s
2026-07-22 21:02:07 +00:00
renovate-bot 48c270e7ee chore(deps): update unittests/bash/bats digest to 4655374 (#131)
changelog / changelog (push) Successful in 6s
check-and-test / check-and-test (push) Successful in 37s
2026-07-19 17:01:19 +00:00
renovate-bot caaa10d722 chore(deps): update unittests/bash/bats digest to 4655374 (#131)
changelog / changelog (push) Successful in 11s
check-and-test / check-and-test (push) Successful in 41s
2026-07-19 17:01:16 +00:00
renovate-bot 81b8b11c36 chore(deps): update unittests/bash/bats digest to 7bf2408 (#130)
changelog / changelog (push) Successful in 9s
check-and-test / check-and-test (push) Successful in 43s
2026-07-18 21:01:15 +00:00
renovate-bot 633a4ddfdb chore(deps): update subcharts (minor & patch) (#129)
changelog / changelog (push) Successful in 7s
check-and-test / check-and-test (push) Successful in 38s
2026-07-18 00:06:39 +00:00
renovate-bot a59c281096 chore(deps): update lockfiles (#128)
changelog / changelog (push) Successful in 10s
check-and-test / check-and-test (push) Successful in 40s
2026-07-14 22:02:40 +00:00
renovate-bot 97da742515 chore(deps): update lockfiles (#127)
changelog / changelog (push) Successful in 7s
check-and-test / check-and-test (push) Successful in 1m22s
2026-07-14 20:02:20 +00:00
renovate-bot 0d1d6de361 chore(deps): update dependency go-gitea/gitea to v1.27.0 (#126)
changelog / changelog (push) Successful in 7s
check-and-test / check-and-test (push) Successful in 40s
2026-07-13 18:01:35 +00:00
renovate-bot 08dae3dad1 chore(deps): update lockfiles (#125)
changelog / changelog (push) Successful in 8s
check-and-test / check-and-test (push) Successful in 40s
2026-07-13 05:01:33 +00:00
renovate-bot 914c064e92 chore(deps): update workflow dependencies (minor & patch) (#124)
changelog / changelog (push) Successful in 8s
check-and-test / check-and-test (push) Successful in 42s
2026-07-11 01:01:32 +00:00
renovate-bot b9a435453d chore(deps): update subcharts (minor & patch) (#123)
changelog / changelog (push) Successful in 7s
check-and-test / check-and-test (push) Successful in 37s
2026-07-11 00:07:12 +00:00
renovate-bot a2a162ed3f chore(deps): update unittests/bash/bats digest to c18b2f7 (#122)
changelog / changelog (push) Successful in 9s
check-and-test / check-and-test (push) Successful in 38s
2026-07-11 00:01:51 +00:00
renovate-bot a4efda515c chore(deps): update lockfiles (#121)
changelog / changelog (push) Successful in 9s
check-and-test / check-and-test (push) Successful in 35s
2026-07-10 13:02:04 +00:00
renovate-bot 06a7bb37a9 chore(deps): update lockfiles (#120)
check-and-test / check-and-test (push) Successful in 37s
changelog / changelog (push) Successful in 6s
2026-07-08 07:01:29 +00:00
renovate-bot 7eb97b2f2b chore(deps): update lockfiles (#120)
check-and-test / check-and-test (push) Successful in 38s
changelog / changelog (push) Successful in 9s
2026-07-08 07:01:24 +00:00
williamp c75355499d Merge pull request 'feat(new): gateway support' (#119) from feat-gateway-api into main
changelog / changelog (push) Successful in 9s
check-and-test / check-and-test (push) Successful in 39s
generate-chart / generate-chart-publish (push) Successful in 31s
generate-chart / release-gitea (push) Successful in 10s
Reviewed-on: #119
2026-07-04 16:34:13 +00:00
williamp 84349e6385 feat(new): gateway api support
check-and-test / check-and-test (pull_request) Successful in 39s
2026-07-04 12:30:38 -04:00
renovate-bot 0bdf8c789d chore(deps): update commitlint/commitlint docker tag to v21.2.0 (#118)
check-and-test / check-and-test (push) Successful in 42s
changelog / changelog (push) Successful in 7s
2026-07-04 00:08:54 +00:00
renovate-bot ca3a022261 chore(deps): update subcharts (minor & patch) (#117)
changelog / changelog (push) Successful in 14s
check-and-test / check-and-test (push) Successful in 41s
2026-07-04 00:08:44 +00:00
renovate-bot 01aec86f96 chore(deps): update lockfiles (#116)
changelog / changelog (push) Successful in 8s
check-and-test / check-and-test (push) Successful in 37s
2026-07-02 17:01:16 +00:00
renovate-bot 037a0cd190 chore(deps): update lockfiles (#115)
changelog / changelog (push) Successful in 47s
check-and-test / check-and-test (push) Successful in 1m50s
2026-07-02 00:01:56 +00:00
renovate-bot 3049bcaa95 chore(deps): update lockfiles (#114)
changelog / changelog (push) Successful in 8s
check-and-test / check-and-test (push) Successful in 1m1s
2026-06-29 04:01:25 +00:00
renovate-bot a36ec46c62 chore(deps): update commitlint/commitlint docker tag to v21.1.0 (#113)
changelog / changelog (push) Successful in 6s
check-and-test / check-and-test (push) Successful in 36s
2026-06-27 00:06:49 +00:00
renovate-bot e8c151b59c chore(deps): update subcharts (minor & patch) (#112)
check-and-test / check-and-test (push) Successful in 1m2s
changelog / changelog (push) Successful in 6s
2026-06-27 00:06:38 +00:00
renovate-bot 735f5e24d5 chore(deps): update dependency go-gitea/gitea to v1.26.4 (#111)
changelog / changelog (push) Successful in 6s
check-and-test / check-and-test (push) Successful in 44s
generate-chart / generate-chart-publish (push) Successful in 27s
generate-chart / release-gitea (push) Successful in 11s
2026-06-21 17:01:07 +00:00
renovate-bot 36906469cc chore(deps): update dependency go-gitea/gitea to v1.26.3 (#110)
changelog / changelog (push) Successful in 10s
check-and-test / check-and-test (push) Successful in 38s
generate-chart / release-gitea (push) Successful in 6s
generate-chart / generate-chart-publish (push) Successful in 29s
2026-06-20 21:01:15 +00:00
williamp 33a9eb07fd Merge pull request 'chore(deps): update actions/checkout action to v7' (#108) from renovate/actions-checkout-7.x into main
changelog / changelog (push) Successful in 10s
check-and-test / check-and-test (push) Successful in 58s
Reviewed-on: #108
2026-06-20 16:48:40 +00:00
renovate-bot 7ef4126275 chore(deps): update docker.io/thegeeklab/git-sv docker tag to v2.1.3 (#109)
changelog / changelog (push) Successful in 11s
check-and-test / check-and-test (push) Successful in 54s
2026-06-20 09:01:41 +00:00
renovate-bot 64713b0030 chore(deps): update actions/checkout action to v7
commitlint / check-and-test (pull_request) Successful in 10s
check-and-test / check-and-test (pull_request) Successful in 35s
2026-06-20 01:01:45 +00:00
renovate-bot a20abda219 chore(deps): update workflow dependencies (minor & patch) (#107)
check-and-test / check-and-test (push) Successful in 1m3s
changelog / changelog (push) Successful in 9s
2026-06-20 01:01:44 +00:00
renovate-bot a78459a76e chore(deps): update subcharts (minor & patch) (#106)
changelog / changelog (push) Successful in 6s
check-and-test / check-and-test (push) Successful in 58s
2026-06-20 00:07:02 +00:00
renovate-bot 0707ee54a5 chore(deps): update unittests/bash/bats digest to 5a7db7a (#105)
changelog / changelog (push) Successful in 8s
check-and-test / check-and-test (push) Successful in 1m0s
2026-06-20 00:01:29 +00:00
renovate-bot 6163733cd7 chore(deps): update alpine/helm docker tag to v4.2.1 (#104)
changelog / changelog (push) Successful in 11s
check-and-test / check-and-test (push) Successful in 39s
generate-chart / generate-chart-publish (push) Successful in 23s
generate-chart / release-gitea (push) Successful in 7s
2026-06-13 09:01:18 +00:00
williamp f7f4962e07 Merge pull request 'chore(deps): update valkey docker tag to v6' (#103) from renovate/valkey-6.x into main
changelog / changelog (push) Successful in 8s
check-and-test / check-and-test (push) Successful in 36s
Reviewed-on: #103
2026-06-13 04:17:39 +00:00
renovate-bot cfd3173506 chore(deps): update valkey docker tag to v6
commitlint / check-and-test (pull_request) Successful in 8s
check-and-test / check-and-test (pull_request) Successful in 44s
2026-06-13 01:01:16 +00:00
renovate-bot 0df7bad714 chore(deps): update workflow dependencies (minor & patch) (#102)
changelog / changelog (push) Successful in 9s
check-and-test / check-and-test (push) Successful in 35s
2026-06-13 00:07:28 +00:00
renovate-bot 808fe7d057 chore(deps): update postgresql docker tag to v18.7.3 (#101)
check-and-test / check-and-test (push) Successful in 35s
changelog / changelog (push) Successful in 13s
2026-06-13 00:07:14 +00:00
renovate-bot 6225433bbc chore(deps): update lockfiles (#100)
changelog / changelog (push) Successful in 5s
check-and-test / check-and-test (push) Successful in 1m1s
2026-06-08 00:01:48 +00:00
renovate-bot 15e49c3315 chore(deps): update subcharts (minor & patch) (#99)
changelog / changelog (push) Successful in 13s
check-and-test / check-and-test (push) Successful in 36s
generate-chart / generate-chart-publish (push) Successful in 29s
generate-chart / release-gitea (push) Successful in 7s
2026-06-07 23:06:36 +00:00
renovate-bot 321b81f81a chore(deps): update dependency go-gitea/gitea to v1.26.2 (#98)
changelog / changelog (push) Successful in 6s
check-and-test / check-and-test (push) Successful in 42s
2026-06-07 23:01:05 +00:00
williamp 3de5cfd319 renovate: just remove gitea from extends entirely
changelog / changelog (push) Successful in 16s
check-and-test / check-and-test (push) Successful in 46s
2026-06-07 18:59:18 -04:00
williamp 0c5a780802 renovate: reference gitea.com to fix dependency hunt issue
changelog / changelog (push) Successful in 11s
check-and-test / check-and-test (push) Successful in 38s
2026-06-07 15:46:24 -04:00
renovate-bot 291eea8925 chore(deps): update lockfiles (#97)
changelog / changelog (push) Successful in 11s
check-and-test / check-and-test (push) Successful in 37s
2026-05-14 00:01:08 +00:00
renovate-bot 8873c1419e chore(deps): update lockfiles (#96)
changelog / changelog (push) Successful in 12s
check-and-test / check-and-test (push) Successful in 38s
2026-05-12 00:01:36 +00:00
renovate-bot 0d69dafc66 chore(deps): update lockfiles (#95)
changelog / changelog (push) Successful in 7s
check-and-test / check-and-test (push) Successful in 39s
2026-05-09 03:00:56 +00:00
williamp b36bd501bb Merge pull request 'chore(deps): update commitlint/commitlint docker tag to v21' (#94) from renovate/major-commitlint-monorepo into main
changelog / changelog (push) Successful in 7s
check-and-test / check-and-test (push) Successful in 40s
Reviewed-on: #94
2026-05-09 01:16:37 +00:00
williamp 1965be5d59 Merge pull request 'chore(deps): update dependency helm-unittest/helm-unittest to v1.1.0' (#93) from renovate/workflow-dependencies-(minor-and-patch) into main
changelog / changelog (push) Successful in 8s
check-and-test / check-and-test (push) Successful in 38s
Reviewed-on: #93
2026-05-09 01:16:30 +00:00
renovate-bot 6cfff7b728 chore(deps): update commitlint/commitlint docker tag to v21
commitlint / check-and-test (pull_request) Successful in 11s
check-and-test / check-and-test (pull_request) Successful in 46s
2026-05-09 01:06:32 +00:00
21 changed files with 421 additions and 106 deletions
+2 -2
View File
@@ -8,12 +8,12 @@ on:
jobs:
changelog:
runs-on: ubuntu-latest
container: docker.io/thegeeklab/git-sv:2.1.0
container: docker.io/thegeeklab/git-sv:3.0.0
steps:
- name: install tools
run: |
apk add -q --update --no-cache nodejs curl jq sed
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Generate upcoming changelog
+2 -2
View File
@@ -11,9 +11,9 @@ on:
jobs:
check-and-test:
runs-on: ubuntu-latest
container: commitlint/commitlint:20.5.3
container: commitlint/commitlint:21.2.1
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: check PR title
run: |
echo "${{ gitea.event.pull_request.title }}" | commitlint --config .commitlintrc.json
+4 -4
View File
@@ -9,7 +9,7 @@ jobs:
generate-chart-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0
@@ -21,7 +21,7 @@ jobs:
- name: Install helm
env:
# renovate: datasource=docker depName=alpine/helm
HELM_VERSION: "4.1.4"
HELM_VERSION: "4.2.3"
run: |
curl --fail --location --output /dev/stdout --silent --show-error https://get.helm.sh/helm-v${HELM_VERSION}-linux-$(dpkg --print-architecture).tar.gz | tar --extract --gzip --file /dev/stdin
mv linux-$(dpkg --print-architecture)/helm /usr/local/bin/
@@ -91,12 +91,12 @@ jobs:
release-gitea:
needs: generate-chart-publish
runs-on: ubuntu-latest
container: docker.io/thegeeklab/git-sv:2.1.0
container: docker.io/thegeeklab/git-sv:3.0.0
steps:
- name: install tools
run: |
apk add -q --update --no-cache nodejs
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-tags: true
fetch-depth: 0
+3 -3
View File
@@ -10,12 +10,12 @@ on:
env:
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest
HELM_UNITTEST_VERSION: "v1.1.0"
HELM_UNITTEST_VERSION: "v1.1.2"
jobs:
check-and-test:
runs-on: ubuntu-latest
container: alpine/helm:4.1.4
container: alpine/helm:4.2.3
steps:
- name: install tools
run: | # Hacky way of installing yamllint due to previous action failures, likely not needed after dependency fix is made on Alpine's side
@@ -24,7 +24,7 @@ jobs:
python3 -m venv /opt/venv
/opt/venv/bin/pip install yamllint
ln -s /opt/venv/bin/yamllint /usr/local/bin/yamllint
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: install chart dependencies
run: helm dependency build
- name: lint
+1 -1
View File
@@ -1,6 +1,6 @@
{
"yaml.schemas": {
"https://raw.githubusercontent.com/helm-unittest/helm-unittest/v1.1.0/schema/helm-testsuite.json": [
"https://raw.githubusercontent.com/helm-unittest/helm-unittest/v1.1.2/schema/helm-testsuite.json": [
"/unittests/**/*.yaml"
]
},
+4 -4
View File
@@ -1,7 +1,7 @@
dependencies:
- name: postgresql
repository: oci://registry-1.docker.io/bitnamicharts
version: 18.6.4
version: 18.8.6
- name: postgresql-ha
repository: oci://registry-1.docker.io/bitnamicharts
version: 16.3.2
@@ -10,6 +10,6 @@ dependencies:
version: 3.0.24
- name: valkey
repository: oci://registry-1.docker.io/bitnamicharts
version: 5.6.2
digest: sha256:f274ccac233bca387498f17a40828220a9eaac4c06fa829bd49736b0369c747e
generated: "2026-05-09T00:07:19.14542253Z"
version: 6.2.6
digest: sha256:0ac66e33b2dccce3de605275eb6160ff59bbf4418eb053749f03a432fbd63299
generated: "2026-08-08T00:01:32.424115006Z"
+3 -3
View File
@@ -4,7 +4,7 @@ description: (Unofficial) Gitea Helm chart for Kubernetes
type: application
version: 0.0.0
# renovate datasource=github-releases depName=go-gitea/gitea extractVersion=^v(?<version>.*)$
appVersion: 1.26.1
appVersion: 1.27.1
icon: https://gitea.com/assets/img/logo.svg
annotations:
@@ -32,7 +32,7 @@ dependencies:
# https://github.com/bitnami/charts/blob/main/bitnami/postgresql
- name: postgresql
repository: oci://registry-1.docker.io/bitnamicharts
version: 18.6.4
version: 18.8.6
condition: postgresql.enabled
# https://github.com/bitnami/charts/blob/main/bitnami/postgresql-ha/Chart.yaml
- name: postgresql-ha
@@ -47,5 +47,5 @@ dependencies:
# https://github.com/bitnami/charts/blob/main/bitnami/valkey/Chart.yaml
- name: valkey
repository: oci://registry-1.docker.io/bitnamicharts
version: 5.6.2
version: 6.2.6
condition: valkey.enabled
+13
View File
@@ -1026,6 +1026,19 @@ To comply with the Gitea helm chart definition of the digest parameter, a "custo
| `ingress.hosts[0].paths[0].path` | Default Ingress path | `/` |
| `ingress.tls` | Ingress tls settings | `[]` |
### Gateway
| Name | Description | Value |
| --------------------------------------------- | ---------------------------------------------------------------- | --------------------- |
| `gateway.httpRoute.enabled` | Enable HTTPRoute | `false` |
| `gateway.httpRoute.annotations` | HTTPRoute annotations | `{}` |
| `gateway.httpRoute.hostnames` | HTTPRoute hostnames | `["git.example.com"]` |
| `gateway.httpRoute.parentRefs[0].name` | HTTPRoute Gateway name | `traefik` |
| `gateway.httpRoute.parentRefs[0].sectionName` | HTTPRoute Gateway section name | `https` |
| `gateway.httpRoute.parentRefs[0].kind` | HTTPRoute Gateway kind | `Gateway` |
| `gateway.httpRoute.pathType` | HTTPRoute path match type (PathPrefix, Exact, RegularExpression) | `PathPrefix` |
| `gateway.httpRoute.paths[0].path` | Default HTTPRoute path | `/` |
### deployment
| Name | Description | Value |
+113 -83
View File
@@ -8,7 +8,7 @@
"license": "MIT",
"devDependencies": {
"@bitnami/readme-generator-for-helm": "^2.5.0",
"markdownlint-cli": "^0.48.0"
"markdownlint-cli": "^0.49.0"
},
"engines": {
"node": ">=16.0.0",
@@ -91,9 +91,9 @@
"license": "MIT"
},
"node_modules/brace-expansion": {
"version": "1.1.14",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.14.tgz",
"integrity": "sha512-MWPGfDxnyzKU7rNOW9SP/c50vi3xrmrua/+6hfPbCS2ABNWfx24vPidzvC7krjU/RTo235sV776ymlsMtGKj8g==",
"version": "1.1.18",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz",
"integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -280,9 +280,9 @@
"license": "ISC"
},
"node_modules/get-east-asian-width": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.5.0.tgz",
"integrity": "sha512-CQ+bEO+Tva/qlmw24dCejulK5pMzVnUOFOijVogd3KQs07HnRIgp8TGipvCCRT06xeYEbpbgwaCxglFyiuIcmA==",
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz",
"integrity": "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==",
"dev": true,
"license": "MIT",
"engines": {
@@ -315,9 +315,9 @@
}
},
"node_modules/ignore": {
"version": "7.0.5",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz",
"integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==",
"version": "7.0.6",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.6.tgz",
"integrity": "sha512-BAg6QkE8W+TuQLrrw0Ugr7HegXduRuuj8/ti2kSOc+jz1dmx8/WNcjr6XGnq5YpDWxFwwaavqD0+jIUOKelTsw==",
"dev": true,
"license": "MIT",
"engines": {
@@ -344,13 +344,13 @@
"license": "ISC"
},
"node_modules/ini": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/ini/-/ini-4.1.3.tgz",
"integrity": "sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==",
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/ini/-/ini-7.0.0.tgz",
"integrity": "sha512-ifK0CgjALofS5bkrcTy4RaQ9Vx2Knf/eLeIO+NaswQEpH1UblrtTSCIvN71qQDMq0PeQ/SSPojvEJp9vvvfr+w==",
"dev": true,
"license": "ISC",
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
}
},
"node_modules/is-alphabetical": {
@@ -402,16 +402,26 @@
}
},
"node_modules/js-yaml": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
"integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
"version": "5.2.3",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-5.2.3.tgz",
"integrity": "sha512-n+mUVyUX5bVv7G/G2zyIHOhdxfuU1dY2NOFzTQUWiMUbFss8b57NFlgCCaggU78wSw5KVS9cllzeLyzyR+n5nw==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/puzrin"
},
{
"type": "github",
"url": "https://github.com/sponsors/nodeca"
}
],
"license": "MIT",
"dependencies": {
"argparse": "^2.0.1"
},
"bin": {
"js-yaml": "bin/js-yaml.js"
"js-yaml": "bin/js-yaml.mjs"
}
},
"node_modules/jsonc-parser": {
@@ -432,9 +442,9 @@
}
},
"node_modules/katex": {
"version": "0.16.45",
"resolved": "https://registry.npmjs.org/katex/-/katex-0.16.45.tgz",
"integrity": "sha512-pQpZbdBu7wCTmQUh7ufPmLr0pFoObnGUoL/yhtwJDgmmQpbkg/0HSVti25Fu4rmd1oCR6NGWe9vqTWuWv3GcNA==",
"version": "0.16.47",
"resolved": "https://registry.npmjs.org/katex/-/katex-0.16.47.tgz",
"integrity": "sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==",
"dev": true,
"funding": [
"https://opencollective.com/katex",
@@ -459,10 +469,20 @@
}
},
"node_modules/linkify-it": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz",
"integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==",
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.2.tgz",
"integrity": "sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/puzrin"
},
{
"type": "github",
"url": "https://github.com/sponsors/markdown-it"
}
],
"license": "MIT",
"dependencies": {
"uc.micro": "^2.0.0"
@@ -476,15 +496,25 @@
"license": "MIT"
},
"node_modules/markdown-it": {
"version": "14.1.1",
"resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.1.tgz",
"integrity": "sha512-BuU2qnTti9YKgK5N+IeMubp14ZUKUUw7yeJbkjtosvHiP0AZ5c8IAgEMk79D0eC8F23r4Ac/q8cAIFdm2FtyoA==",
"version": "14.3.0",
"resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.0.tgz",
"integrity": "sha512-RCEsPjR+sr0x+AuYp601tKTkgFG4YEPLCzHST3cQ/fhlJkqAkz1L2/Qbp1j9qw5SBwQHFBoW8+hoN5xssOF0Tw==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/puzrin"
},
{
"type": "github",
"url": "https://github.com/sponsors/markdown-it"
}
],
"license": "MIT",
"dependencies": {
"argparse": "^2.0.1",
"entities": "^4.4.0",
"linkify-it": "^5.0.0",
"entities": "^4.5.0",
"linkify-it": "^5.0.2",
"mdurl": "^2.0.0",
"punycode.js": "^2.3.1",
"uc.micro": "^2.1.0"
@@ -508,9 +538,9 @@
}
},
"node_modules/markdownlint": {
"version": "0.40.0",
"resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.40.0.tgz",
"integrity": "sha512-UKybllYNheWac61Ia7T6fzuQNDZimFIpCg2w6hHjgV1Qu0w1TV0LlSgryUGzM0bkKQCBhy2FDhEELB73Kb0kAg==",
"version": "0.41.1",
"resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.41.1.tgz",
"integrity": "sha512-qHKeU2E1bdyNAT077go2FVTNXvYcktN5IHtF6XyeD1l0PClxzSp2tUApAV14ORI8DGX4H9bNKZEzelZp4qn8IA==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -522,40 +552,40 @@
"micromark-extension-gfm-table": "2.1.1",
"micromark-extension-math": "3.1.0",
"micromark-util-types": "2.0.2",
"string-width": "8.1.0"
"string-width": "8.2.1"
},
"engines": {
"node": ">=20"
"node": ">=22"
},
"funding": {
"url": "https://github.com/sponsors/DavidAnson"
}
},
"node_modules/markdownlint-cli": {
"version": "0.48.0",
"resolved": "https://registry.npmjs.org/markdownlint-cli/-/markdownlint-cli-0.48.0.tgz",
"integrity": "sha512-NkZQNu2E0Q5qLEEHwWj674eYISTLD4jMHkBzDobujXd1kv+yCxi8jOaD/rZoQNW1FBBMMGQpuW5So8B51N/e0A==",
"version": "0.49.1",
"resolved": "https://registry.npmjs.org/markdownlint-cli/-/markdownlint-cli-0.49.1.tgz",
"integrity": "sha512-qpYqJbSYf3jv57bdnFmCaZ/Wlu6IYHp2b6SOKrKBJ7OnPrDHIKmx4NERWH49QH9viTI6yO6raVDDn5nrf60VQQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"commander": "~14.0.3",
"commander": "~15.0.0",
"deep-extend": "~0.6.0",
"ignore": "~7.0.5",
"js-yaml": "~4.1.1",
"ignore": "~7.0.6",
"js-yaml": "~5.2.1",
"jsonc-parser": "~3.3.1",
"jsonpointer": "~5.0.1",
"markdown-it": "~14.1.1",
"markdownlint": "~0.40.0",
"minimatch": "~10.2.4",
"run-con": "~1.3.2",
"smol-toml": "~1.6.0",
"tinyglobby": "~0.2.15"
"markdown-it": "~14.3.0",
"markdownlint": "~0.41.1",
"minimatch": "~10.2.5",
"run-con": "~1.3.3",
"smol-toml": "~1.7.0",
"tinyglobby": "~0.2.17"
},
"bin": {
"markdownlint": "markdownlint.js"
},
"engines": {
"node": ">=20"
"node": ">=22"
}
},
"node_modules/markdownlint-cli/node_modules/balanced-match": {
@@ -569,36 +599,36 @@
}
},
"node_modules/markdownlint-cli/node_modules/brace-expansion": {
"version": "5.0.6",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz",
"integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==",
"version": "5.0.9",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
"integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
"dev": true,
"license": "MIT",
"dependencies": {
"balanced-match": "^4.0.2"
},
"engines": {
"node": "18 || 20 || >=22"
"node": "20 || >=22"
}
},
"node_modules/markdownlint-cli/node_modules/commander": {
"version": "14.0.3",
"resolved": "https://registry.npmjs.org/commander/-/commander-14.0.3.tgz",
"integrity": "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==",
"version": "15.0.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-15.0.0.tgz",
"integrity": "sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=20"
"node": ">=22.12.0"
}
},
"node_modules/markdownlint-cli/node_modules/minimatch": {
"version": "10.2.5",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz",
"integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==",
"version": "10.2.6",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
"integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
"dev": true,
"license": "BlueOak-1.0.0",
"dependencies": {
"brace-expansion": "^5.0.5"
"brace-expansion": "^5.0.8"
},
"engines": {
"node": "18 || 20 || >=22"
@@ -608,9 +638,9 @@
}
},
"node_modules/mdurl": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz",
"integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==",
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.1.0.tgz",
"integrity": "sha512-1+HBaOx0zi/dQWht8rNv9MYf9qqpqL/kxI0hXImU6Y547zM6Sni8BQibt7ifgMcYtQg41ao3Ivd6cnSM86inpg==",
"dev": true,
"license": "MIT"
},
@@ -1221,9 +1251,9 @@
}
},
"node_modules/picomatch": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz",
"integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==",
"dev": true,
"license": "MIT",
"engines": {
@@ -1254,14 +1284,14 @@
}
},
"node_modules/run-con": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/run-con/-/run-con-1.3.2.tgz",
"integrity": "sha512-CcfE+mYiTcKEzg0IqS08+efdnH0oJ3zV0wSUFBNrMHMuxCtXvBCLzCJHatwuXDcu/RlhjTziTo/a1ruQik6/Yg==",
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/run-con/-/run-con-1.3.3.tgz",
"integrity": "sha512-Lb7OKM9aaykzyoNiHGhSVCjZsvbyy6qDMp2vDXL+MoCfz3GfNJtHYH7uYsU3QNMyInBk++xx+EZ8xZ8Sxs5fNQ==",
"dev": true,
"license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
"dependencies": {
"deep-extend": "^0.6.0",
"ini": "~4.1.0",
"ini": "~7.0.0",
"minimist": "^1.2.8",
"strip-json-comments": "~3.1.1"
},
@@ -1270,9 +1300,9 @@
}
},
"node_modules/smol-toml": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.6.1.tgz",
"integrity": "sha512-dWUG8F5sIIARXih1DTaQAX4SsiTXhInKf1buxdY9DIg4ZYPZK5nGM1VRIYmEbDbsHt7USo99xSLFu5Q1IqTmsg==",
"version": "1.7.1",
"resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.7.1.tgz",
"integrity": "sha512-PPlsspAZ4jbMBu5DMFhfUGDQLu/vrL4SyBROVS37x8ynnVmFIs1VPBz1Co8Xks3TvpIaZXmU85y4DrQ+UyVFoQ==",
"dev": true,
"license": "BSD-3-Clause",
"engines": {
@@ -1283,14 +1313,14 @@
}
},
"node_modules/string-width": {
"version": "8.1.0",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-8.1.0.tgz",
"integrity": "sha512-Kxl3KJGb/gxkaUMOjRsQ8IrXiGW75O4E3RPjFIINOVH8AMl2SQ/yWdTzWwF3FevIX9LcMAjJW+GRwAlAbTSXdg==",
"version": "8.2.1",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-8.2.1.tgz",
"integrity": "sha512-IIaP0g3iy9Cyy18w3M9YcaDudujEAVHKt3a3QJg1+sr/oX96TbaGUubG0hJyCjCBThFH+tFpcIyoUHUn1ogaLA==",
"dev": true,
"license": "MIT",
"dependencies": {
"get-east-asian-width": "^1.3.0",
"strip-ansi": "^7.1.0"
"get-east-asian-width": "^1.5.0",
"strip-ansi": "^7.1.2"
},
"engines": {
"node": ">=20"
@@ -1329,9 +1359,9 @@
}
},
"node_modules/tinyglobby": {
"version": "0.2.16",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz",
"integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==",
"version": "0.2.17",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",
"integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1360,9 +1390,9 @@
"license": "ISC"
},
"node_modules/yaml": {
"version": "2.8.4",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.4.tgz",
"integrity": "sha512-ml/JPOj9fOQK8RNnWojA67GbZ0ApXAUlN2UQclwv2eVgTgn7O9gg9o7paZWKMp4g0H3nTLtS9LVzhkpOFIKzog==",
"version": "2.9.0",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz",
"integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==",
"dev": true,
"license": "ISC",
"bin": {
+1 -1
View File
@@ -14,6 +14,6 @@
},
"devDependencies": {
"@bitnami/readme-generator-for-helm": "^2.5.0",
"markdownlint-cli": "^0.48.0"
"markdownlint-cli": "^0.49.0"
}
}
-1
View File
@@ -1,7 +1,6 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'gitea>gitea/renovate-config',
':automergeMinor',
'schedule:automergeDaily',
'schedule:weekends',
+9
View File
@@ -471,3 +471,12 @@ https
{{- define "gitea.metrics-secret-name" -}}
{{ default (printf "%s-metrics-secret" (include "gitea.fullname" .)) }}
{{- end -}}
{{/*
Validate that Ingress and Gateway HTTPRoute are not enabled at the same time
*/}}
{{- define "gitea.validate-ingress-gateway-conflict" -}}
{{- if and ((.Values.ingress).enabled) (((.Values.gateway).httpRoute).enabled) -}}
{{- fail "You cannot enable both Ingress and HTTPRoute at the same time" -}}
{{- end -}}
{{- end -}}
+79
View File
@@ -0,0 +1,79 @@
{{- include "gitea.validate-ingress-gateway-conflict" . }}
{{- if .Values.gateway.httpRoute.enabled -}}
{{- $fullName := include "gitea.fullname" . -}}
{{- $httpPort := .Values.service.http.port -}}
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: {{ $fullName }}
namespace: {{ .Values.namespace | default .Release.Namespace }}
labels:
{{- include "gitea.labels" . | nindent 4 }}
annotations:
{{- range $key, $value := .Values.gateway.httpRoute.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
hostnames:
{{- range .Values.gateway.httpRoute.hostnames }}
- {{ tpl . $ | quote }}
{{- end }}
parentRefs:
{{- range .Values.gateway.httpRoute.parentRefs }}
- name: {{ .name | quote }}
{{- if .namespace }}
namespace: {{ .namespace | quote }}
{{- end }}
{{- if .kind }}
kind: {{ .kind | quote }}
{{- end }}
{{- if .group }}
group: {{ .group | quote }}
{{- end }}
{{- if .sectionName }}
sectionName: {{ .sectionName | quote }}
{{- end }}
{{- if .port }}
port: {{ .port }}
{{- end }}
{{- end }}
rules:
{{- if .Values.gateway.httpRoute.paths }}
{{- range .Values.gateway.httpRoute.paths }}
{{- if kindIs "string" . }}
- matches:
- path:
type: {{ default "PathPrefix" $.Values.gateway.httpRoute.pathType }}
value: {{ . }}
backendRefs:
- group: ""
kind: Service
name: {{ $fullName }}-http
namespace: {{ $.Values.namespace | default $.Release.Namespace }}
port: {{ $httpPort }}
{{- else }}
- matches:
- path:
type: {{ .pathType | default "PathPrefix" }}
value: {{ .path | default "/" }}
backendRefs:
- group: ""
kind: Service
name: {{ $fullName }}-http
namespace: {{ $.Values.namespace | default $.Release.Namespace }}
port: {{ $httpPort }}
{{- end }}
{{- end }}
{{- else }}
- matches:
- path:
type: PathPrefix
value: "/"
backendRefs:
- group: ""
kind: Service
name: {{ $fullName }}-http
namespace: {{ .Values.namespace | default .Release.Namespace }}
port: {{ $httpPort }}
{{- end }}
{{- end }}
+1
View File
@@ -1,3 +1,4 @@
{{- include "gitea.validate-ingress-gateway-conflict" . }}
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "gitea.fullname" . -}}
{{- $httpPort := .Values.service.http.port -}}
+74
View File
@@ -0,0 +1,74 @@
suite: Test httproute.yaml
templates:
- templates/gitea/httproute.yaml
tests:
- it: should enable httproute when gateway.httpRoute.enabled is true
set:
gateway.httpRoute.enabled: true
gateway.httpRoute.annotations:
some-annotation: some-value
gateway.httpRoute.hostnames:
- example.com
gateway.httpRoute.parentRefs:
- name: traefik
sectionName: https
kind: Gateway
gateway.httpRoute.paths:
- path: /
asserts:
- hasDocuments:
count: 1
- isKind:
of: HTTPRoute
- isAPIVersion:
of: gateway.networking.k8s.io/v1
- equal:
path: metadata.name
value: RELEASE-NAME-gitea
- equal:
path: metadata.annotations["some-annotation"]
value: some-value
- equal:
path: spec.hostnames[0]
value: "example.com"
- equal:
path: spec.parentRefs[0].name
value: "traefik"
- equal:
path: spec.parentRefs[0].kind
value: "Gateway"
- equal:
path: spec.parentRefs[0].sectionName
value: "https"
- equal:
path: spec.rules[0].matches[0].path.type
value: "PathPrefix"
- equal:
path: spec.rules[0].matches[0].path.value
value: "/"
- equal:
path: spec.rules[0].backendRefs[0].name
value: "RELEASE-NAME-gitea-http"
- equal:
path: spec.rules[0].backendRefs[0].port
value: 3000
- it: should not create httproute when gateway.httpRoute.enabled is false
set:
gateway.httpRoute.enabled: false
asserts:
- hasDocuments:
count: 0
- it: hostname using TPL
set:
global.giteaHostName: "gitea.example.com"
gateway.httpRoute.enabled: true
gateway.httpRoute.hostnames:
- "{{ .Values.global.giteaHostName }}"
asserts:
- isKind:
of: HTTPRoute
- equal:
path: spec.hostnames[0]
value: "gitea.example.com"
@@ -0,0 +1,19 @@
suite: Test httproute with implicit path defaults
templates:
- templates/gitea/httproute.yaml
tests:
- it: should use default path and pathType when no paths are specified
set:
gateway.httpRoute.enabled: true
gateway.httpRoute.paths: []
asserts:
- hasDocuments:
count: 1
- isKind:
of: HTTPRoute
- equal:
path: spec.rules[0].matches[0].path.type
value: "PathPrefix"
- equal:
path: spec.rules[0].matches[0].path.value
value: "/"
@@ -0,0 +1,56 @@
suite: Test httproute with structured paths
templates:
- templates/gitea/httproute.yaml
tests:
- it: should work with a plain string path
set:
gateway.httpRoute.enabled: true
gateway.httpRoute.paths:
- /
asserts:
- hasDocuments:
count: 1
- isKind:
of: HTTPRoute
- equal:
path: spec.rules[0].matches[0].path.type
value: "PathPrefix"
- equal:
path: spec.rules[0].matches[0].path.value
value: "/"
- it: should work with structured path definitions and per-path pathType
set:
gateway.httpRoute.enabled: true
gateway.httpRoute.paths:
- path: /
- path: /foo
pathType: Exact
asserts:
- hasDocuments:
count: 1
- isKind:
of: HTTPRoute
- equal:
path: spec.rules[0].matches[0].path.type
value: "PathPrefix"
- equal:
path: spec.rules[0].matches[0].path.value
value: "/"
- equal:
path: spec.rules[1].matches[0].path.type
value: "Exact"
- equal:
path: spec.rules[1].matches[0].path.value
value: "/foo"
- it: should allow overriding the default pathType
set:
gateway.httpRoute.enabled: true
gateway.httpRoute.pathType: Exact
gateway.httpRoute.paths:
- /
asserts:
- equal:
path: spec.rules[0].matches[0].path.type
value: "Exact"
@@ -12,3 +12,14 @@ tests:
asserts:
- failedTemplate:
errorMessage: valkey and valkey-cluster cannot be enabled at the same time. Please only choose one.
- it: fails when trying to enable ingress and gateway httpRoute at the same time
set:
ingress:
enabled: true
gateway:
httpRoute:
enabled: true
asserts:
- failedTemplate:
errorMessage: You cannot enable both Ingress and HTTPRoute at the same time
+24
View File
@@ -177,6 +177,30 @@ ingress:
# hosts:
# - git.example.com
## @section Gateway
## @param gateway.httpRoute.enabled Enable HTTPRoute
## @param gateway.httpRoute.annotations HTTPRoute annotations
## @param gateway.httpRoute.hostnames HTTPRoute hostnames
## @param gateway.httpRoute.parentRefs[0].name HTTPRoute Gateway name
## @param gateway.httpRoute.parentRefs[0].sectionName HTTPRoute Gateway section name
## @param gateway.httpRoute.parentRefs[0].kind HTTPRoute Gateway kind
## @param gateway.httpRoute.pathType HTTPRoute path match type (PathPrefix, Exact, RegularExpression)
## @param gateway.httpRoute.paths[0].path Default HTTPRoute path
gateway:
httpRoute:
enabled: false
annotations: {}
hostnames:
- git.example.com
parentRefs:
- name: traefik
sectionName: https
kind: Gateway
pathType: PathPrefix
paths:
- path: /
## @section deployment
#
## @param resources Kubernetes resources