Compare commits
5 Commits
v11.0.0
...
renovate/w
Author | SHA1 | Date | |
---|---|---|---|
26be0d33a2 | |||
8d3f4d2260 | |||
74d550922b | |||
7245b3b4cc | |||
c0cadb9056 |
@ -20,13 +20,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git sv rn -o changelog.md
|
git sv rn -o changelog.md
|
||||||
export RELEASE_NOTES=$(cat changelog.md)
|
export RELEASE_NOTES=$(cat changelog.md)
|
||||||
export ISSUE_NUMBER=$(curl -s "https://gitea.com/api/v1/repos/gitea/helm-chart/issues?state=open&q=Changelog%20for%20upcoming%20version" | jq '.[].number')
|
export ISSUE_NUMBER=$(curl -s "https://gitea.com/api/v1/repos/gitea/helm-gitea/issues?state=open&q=Changelog%20for%20upcoming%20version" | jq '.[].number')
|
||||||
|
|
||||||
echo $RELEASE_NOTES
|
echo $RELEASE_NOTES
|
||||||
JSON_DATA=$(echo "" | jq -Rs --arg title 'Changelog for upcoming version' --arg body "$(cat changelog.md)" '{title: $title, body: $body}')
|
JSON_DATA=$(echo "" | jq -Rs --arg title 'Changelog for upcoming version' --arg body "$(cat changelog.md)" '{title: $title, body: $body}')
|
||||||
|
|
||||||
if [ -z "$ISSUE_NUMBER" ]; then
|
if [ -z "$ISSUE_NUMBER" ]; then
|
||||||
curl -s -X POST "https://gitea.com/api/v1/repos/gitea/helm-chart/issues" -H "Authorization: token ${{ secrets.ISSUE_RW_TOKEN }}" -H "Content-Type: application/json" -d "$JSON_DATA"
|
curl -s -X POST "https://gitea.com/api/v1/repos/gitea/helm-gitea/issues" -H "Authorization: token ${{ secrets.ISSUE_RW_TOKEN }}" -H "Content-Type: application/json" -d "$JSON_DATA"
|
||||||
else
|
else
|
||||||
curl -s -X PATCH "https://gitea.com/api/v1/repos/gitea/helm-chart/issues/$ISSUE_NUMBER" -H "Authorization: token ${{ secrets.ISSUE_RW_TOKEN }}" -H "Content-Type: application/json" -d "$JSON_DATA"
|
curl -s -X PATCH "https://gitea.com/api/v1/repos/gitea/helm-gitea/issues/$ISSUE_NUMBER" -H "Authorization: token ${{ secrets.ISSUE_RW_TOKEN }}" -H "Content-Type: application/json" -d "$JSON_DATA"
|
||||||
fi
|
fi
|
||||||
|
@ -11,7 +11,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
check-and-test:
|
check-and-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: commitlint/commitlint:19.7.1
|
container: commitlint/commitlint:19.8.0
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: check PR title
|
- name: check PR title
|
||||||
|
@ -10,7 +10,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest
|
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest
|
||||||
HELM_UNITTEST_VERSION: "v0.7.2"
|
HELM_UNITTEST_VERSION: "v0.8.0"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-and-test:
|
check-and-test:
|
||||||
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"yaml.schemas": {
|
"yaml.schemas": {
|
||||||
"https://raw.githubusercontent.com/helm-unittest/helm-unittest/v0.7.2/schema/helm-testsuite.json": [
|
"https://raw.githubusercontent.com/helm-unittest/helm-unittest/v0.8.0/schema/helm-testsuite.json": [
|
||||||
"/unittests/**/*.yaml"
|
"/unittests/**/*.yaml"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -38,7 +38,7 @@ be used:
|
|||||||
|
|
||||||
1. Install `minikube` and `helm`.
|
1. Install `minikube` and `helm`.
|
||||||
1. Start a `minikube` cluster via `minikube start`.
|
1. Start a `minikube` cluster via `minikube start`.
|
||||||
1. From the `gitea/helm-chart` directory execute the following command.
|
1. From the `gitea/helm-gitea` directory execute the following command.
|
||||||
This will install the dependencies listed in `Chart.yml` and deploy the current state of the helm chart found locally.
|
This will install the dependencies listed in `Chart.yml` and deploy the current state of the helm chart found locally.
|
||||||
If you want to test a branch, make sure to switch to the respective branch first.
|
If you want to test a branch, make sure to switch to the respective branch first.
|
||||||
`helm install --dependency-update gitea . -f values.yaml`.
|
`helm install --dependency-update gitea . -f values.yaml`.
|
||||||
|
@ -4,7 +4,7 @@ description: Gitea Helm chart for Kubernetes
|
|||||||
type: application
|
type: application
|
||||||
version: 0.0.0
|
version: 0.0.0
|
||||||
# renovate datasource=github-releases depName=go-gitea/gitea extractVersion=^v(?<version>.*)$
|
# renovate datasource=github-releases depName=go-gitea/gitea extractVersion=^v(?<version>.*)$
|
||||||
appVersion: 1.23.4
|
appVersion: 1.23.5
|
||||||
icon: https://gitea.com/assets/img/logo.svg
|
icon: https://gitea.com/assets/img/logo.svg
|
||||||
|
|
||||||
keywords:
|
keywords:
|
||||||
@ -15,9 +15,9 @@ keywords:
|
|||||||
- gitea
|
- gitea
|
||||||
- gogs
|
- gogs
|
||||||
sources:
|
sources:
|
||||||
- https://gitea.com/gitea/helm-chart
|
- https://gitea.com/gitea/helm-gitea
|
||||||
- https://github.com/go-gitea/gitea
|
- https://github.com/go-gitea/gitea
|
||||||
- https://hub.docker.com/r/gitea/gitea/
|
- https://docker.gitea.com/gitea
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Charlie Drage
|
- name: Charlie Drage
|
||||||
email: charlie@charliedrage.com
|
email: charlie@charliedrage.com
|
||||||
|
14
README.md
14
README.md
@ -72,7 +72,7 @@ Additionally, this chart allows to provide LDAP and admin user configuration wit
|
|||||||
## Update and versioning policy
|
## Update and versioning policy
|
||||||
|
|
||||||
The Gitea helm chart versioning does not follow Gitea's versioning.
|
The Gitea helm chart versioning does not follow Gitea's versioning.
|
||||||
The latest chart version can be looked up in [https://dl.gitea.com/charts](https://dl.gitea.com/charts) or in the [repository releases](https://gitea.com/gitea/helm-chart/releases).
|
The latest chart version can be looked up in [https://dl.gitea.com/charts](https://dl.gitea.com/charts) or in the [repository releases](https://gitea.com/gitea/helm-gitea/releases).
|
||||||
|
|
||||||
The chart aims to follow Gitea's releases closely.
|
The chart aims to follow Gitea's releases closely.
|
||||||
There might be times when the chart is behind the latest Gitea release.
|
There might be times when the chart is behind the latest Gitea release.
|
||||||
@ -534,7 +534,7 @@ and the repository exists.
|
|||||||
```
|
```
|
||||||
|
|
||||||
To solve this problem add the capability `SYS_CHROOT` to the `securityContext`.
|
To solve this problem add the capability `SYS_CHROOT` to the `securityContext`.
|
||||||
More about this issue [here](https://gitea.com/gitea/helm-chart/issues/161).
|
More about this issue [here](https://gitea.com/gitea/helm-gitea/issues/161).
|
||||||
|
|
||||||
### Cache
|
### Cache
|
||||||
|
|
||||||
@ -548,7 +548,7 @@ redis-cluster:
|
|||||||
enabled: true
|
enabled: true
|
||||||
```
|
```
|
||||||
|
|
||||||
⚠️ The redis charts [do not work well with special characters in the password](https://gitea.com/gitea/helm-chart/issues/690).
|
⚠️ The redis charts [do not work well with special characters in the password](https://gitea.com/gitea/helm-gitea/issues/690).
|
||||||
Consider omitting such or open an issue in the Bitnami repo and let us know once this got fixed.
|
Consider omitting such or open an issue in the Bitnami repo and let us know once this got fixed.
|
||||||
|
|
||||||
### Persistence
|
### Persistence
|
||||||
@ -739,7 +739,7 @@ gitea:
|
|||||||
|
|
||||||
When using the rootless image the gpg key folder is not persistent by default.
|
When using the rootless image the gpg key folder is not persistent by default.
|
||||||
If you consider using signed commits for internal Gitea activities (e.g. initial commit), you'd need to provide a signing key.
|
If you consider using signed commits for internal Gitea activities (e.g. initial commit), you'd need to provide a signing key.
|
||||||
Prior to [PR186](https://gitea.com/gitea/helm-chart/pulls/186), imported keys had to be re-imported once the container got replaced by another.
|
Prior to [PR186](https://gitea.com/gitea/helm-gitea/pulls/186), imported keys had to be re-imported once the container got replaced by another.
|
||||||
|
|
||||||
The mentioned PR introduced a new configuration object `signing` allowing you to configure prerequisites for commit signing.
|
The mentioned PR introduced a new configuration object `signing` allowing you to configure prerequisites for commit signing.
|
||||||
By default this section is disabled to maintain backwards compatibility.
|
By default this section is disabled to maintain backwards compatibility.
|
||||||
@ -1329,7 +1329,7 @@ The first item here (`<memcache service name>`) will be different compared to th
|
|||||||
The above changes are motivated by the idea to tidy dependencies but also have HA-ready ones at the same time.
|
The above changes are motivated by the idea to tidy dependencies but also have HA-ready ones at the same time.
|
||||||
The previous `memcache` default was not HA-ready, hence we decided to switch to `redis-cluster` by default.
|
The previous `memcache` default was not HA-ready, hence we decided to switch to `redis-cluster` by default.
|
||||||
|
|
||||||
If you are coming from an existing deployment and [#356](https://gitea.com/gitea/helm-chart/issues/356) is still open, you need to set the config sections for `cache`, `session` and `queue` explicitly:
|
If you are coming from an existing deployment and [#356](https://gitea.com/gitea/helm-gitea/issues/356) is still open, you need to set the config sections for `cache`, `session` and `queue` explicitly:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
gitea:
|
gitea:
|
||||||
@ -1354,7 +1354,7 @@ gitea:
|
|||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
If you are facing errors like `WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED` due to this automatic transition:
|
If you are facing errors like `WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED` due to this automatic transition:
|
||||||
Have a look at [this discussion](https://gitea.com/gitea/helm-chart/issues/487#issue-220660) and either set `image.rootless: false` or manually update your `~/.ssh/known_hosts` file(s).
|
Have a look at [this discussion](https://gitea.com/gitea/helm-gitea/issues/487#issue-220660) and either set `image.rootless: false` or manually update your `~/.ssh/known_hosts` file(s).
|
||||||
|
|
||||||
<!-- prettier-ignore-start -->
|
<!-- prettier-ignore-start -->
|
||||||
<!-- markdownlint-disable-next-line -->
|
<!-- markdownlint-disable-next-line -->
|
||||||
@ -1410,7 +1410,7 @@ With respect to `values.yaml`, parameters `username`, `database` and `password`
|
|||||||
Please adjust your `values.yaml` accordingly.
|
Please adjust your `values.yaml` accordingly.
|
||||||
|
|
||||||
**Attention**: The Postgres upgrade is not automatically handled by the chart and must be done by yourself.
|
**Attention**: The Postgres upgrade is not automatically handled by the chart and must be done by yourself.
|
||||||
See [this comment](https://gitea.com/gitea/helm-chart/issues/452#issuecomment-740885) for an extensive walkthrough.
|
See [this comment](https://gitea.com/gitea/helm-gitea/issues/452#issuecomment-740885) for an extensive walkthrough.
|
||||||
We again highly encourage users to use an external (managed) database for production instances.
|
We again highly encourage users to use an external (managed) database for production instances.
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
6
package-lock.json
generated
6
package-lock.json
generated
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "gitea-helm-chart",
|
"name": "gitea-helm",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "gitea-helm-chart",
|
"name": "gitea-helm",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@bitnami/readme-generator-for-helm": "^2.5.0",
|
"@bitnami/readme-generator-for-helm": "^2.5.0",
|
||||||
@ -1660,4 +1660,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitea-helm-chart",
|
"name": "gitea-helm",
|
||||||
"homepage": "https://gitea.com/gitea/helm-chart.git",
|
"homepage": "https://gitea.com/gitea/helm-gitea.git",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"private": true,
|
"private": true,
|
||||||
"engineStrict": true,
|
"engineStrict": true,
|
||||||
@ -16,4 +16,4 @@
|
|||||||
"@bitnami/readme-generator-for-helm": "^2.5.0",
|
"@bitnami/readme-generator-for-helm": "^2.5.0",
|
||||||
"markdownlint-cli": "^0.44.0"
|
"markdownlint-cli": "^0.44.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -94,7 +94,7 @@ stringData:
|
|||||||
|
|
||||||
echo "ERROR: 'configure_admin_user' was not able to determine the current list of admin users."
|
echo "ERROR: 'configure_admin_user' was not able to determine the current list of admin users."
|
||||||
echo " Please review the output of 'gitea admin user list --admin' shown below."
|
echo " Please review the output of 'gitea admin user list --admin' shown below."
|
||||||
echo " If you think it is an issue with the Helm Chart provisioning, file an issue at https://gitea.com/gitea/helm-chart/issues."
|
echo " If you think it is an issue with the Helm Chart provisioning, file an issue at https://gitea.com/gitea/helm-gitea/issues."
|
||||||
echo "DEBUG: Output of 'gitea admin user list --admin'"
|
echo "DEBUG: Output of 'gitea admin user list --admin'"
|
||||||
echo "--"
|
echo "--"
|
||||||
echo "${full_admin_list}"
|
echo "${full_admin_list}"
|
||||||
@ -117,7 +117,7 @@ stringData:
|
|||||||
else
|
else
|
||||||
if [[ "${GITEA_ADMIN_PASSWORD_MODE}" = keepUpdated ]]; then
|
if [[ "${GITEA_ADMIN_PASSWORD_MODE}" = keepUpdated ]]; then
|
||||||
echo "Admin account '${GITEA_ADMIN_USERNAME}' already exist. Running update to sync password..."
|
echo "Admin account '${GITEA_ADMIN_USERNAME}' already exist. Running update to sync password..."
|
||||||
# See https://gitea.com/gitea/helm-chart/issues/673
|
# See https://gitea.com/gitea/helm-gitea/issues/673
|
||||||
# --must-change-password argument was added to change-password, defaulting to true, counter to the previous behavior
|
# --must-change-password argument was added to change-password, defaulting to true, counter to the previous behavior
|
||||||
# which acted as if it were provided with =false. If the argument is present in this version of gitea, then we
|
# which acted as if it were provided with =false. If the argument is present in this version of gitea, then we
|
||||||
# should add it to prevent requiring frequent admin password resets.
|
# should add it to prevent requiring frequent admin password resets.
|
||||||
@ -154,7 +154,7 @@ stringData:
|
|||||||
|
|
||||||
echo "ERROR: 'configure_ldap' was not able to determine the current list of authentication sources."
|
echo "ERROR: 'configure_ldap' was not able to determine the current list of authentication sources."
|
||||||
echo " Please review the output of 'gitea admin auth list --vertical-bars' shown below."
|
echo " Please review the output of 'gitea admin auth list --vertical-bars' shown below."
|
||||||
echo " If you think it is an issue with the Helm Chart provisioning, file an issue at https://gitea.com/gitea/helm-chart/issues."
|
echo " If you think it is an issue with the Helm Chart provisioning, file an issue at https://gitea.com/gitea/helm-gitea/issues."
|
||||||
echo "DEBUG: Output of 'gitea admin auth list --vertical-bars'"
|
echo "DEBUG: Output of 'gitea admin auth list --vertical-bars'"
|
||||||
echo "--"
|
echo "--"
|
||||||
echo "${full_auth_list}"
|
echo "${full_auth_list}"
|
||||||
@ -198,7 +198,7 @@ stringData:
|
|||||||
|
|
||||||
echo "ERROR: 'configure_oauth' was not able to determine the current list of authentication sources."
|
echo "ERROR: 'configure_oauth' was not able to determine the current list of authentication sources."
|
||||||
echo " Please review the output of 'gitea admin auth list --vertical-bars' shown below."
|
echo " Please review the output of 'gitea admin auth list --vertical-bars' shown below."
|
||||||
echo " If you think it is an issue with the Helm Chart provisioning, file an issue at https://gitea.com/gitea/helm-chart/issues."
|
echo " If you think it is an issue with the Helm Chart provisioning, file an issue at https://gitea.com/gitea/helm-gitea/issues."
|
||||||
echo "DEBUG: Output of 'gitea admin auth list --vertical-bars'"
|
echo "DEBUG: Output of 'gitea admin auth list --vertical-bars'"
|
||||||
echo "--"
|
echo "--"
|
||||||
echo "${full_auth_list}"
|
echo "${full_auth_list}"
|
||||||
|
Submodule unittests/bash/test_helper/bats-assert updated: e2d855bc78...0ec504eb52
@ -94,7 +94,7 @@ tests:
|
|||||||
- it: correctly renders floating tag references
|
- it: correctly renders floating tag references
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/gitea/deployment.yaml
|
||||||
set:
|
set:
|
||||||
image.tag: 1.21 # use non-quoted value on purpose. See: https://gitea.com/gitea/helm-chart/issues/631
|
image.tag: 1.21 # use non-quoted value on purpose. See: https://gitea.com/gitea/helm-gitea/issues/631
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.initContainers[0].image
|
path: spec.template.spec.initContainers[0].image
|
||||||
|
@ -76,7 +76,7 @@ containerSecurityContext: {}
|
|||||||
# # run pods on nodes that use the container runtime cri-o. Otherwise, you will
|
# # run pods on nodes that use the container runtime cri-o. Otherwise, you will
|
||||||
# # get an error message from the SSH server that it is not possible to read from
|
# # get an error message from the SSH server that it is not possible to read from
|
||||||
# # the repository.
|
# # the repository.
|
||||||
# # https://gitea.com/gitea/helm-chart/issues/161
|
# # https://gitea.com/gitea/helm-gitea/issues/161
|
||||||
# add:
|
# add:
|
||||||
# - SYS_CHROOT
|
# - SYS_CHROOT
|
||||||
# privileged: false
|
# privileged: false
|
||||||
@ -610,7 +610,7 @@ gitea:
|
|||||||
|
|
||||||
## @section redis-cluster
|
## @section redis-cluster
|
||||||
## @param redis-cluster.enabled Enable redis cluster
|
## @param redis-cluster.enabled Enable redis cluster
|
||||||
# ⚠️ The redis charts do not work well with special characters in the password (<https://gitea.com/gitea/helm-chart/issues/690>).
|
# ⚠️ The redis charts do not work well with special characters in the password (<https://gitea.com/gitea/helm-gitea/issues/690>).
|
||||||
# Consider omitting such or open an issue in the Bitnami repo and let us know once this got fixed.
|
# Consider omitting such or open an issue in the Bitnami repo and let us know once this got fixed.
|
||||||
## @param redis-cluster.usePassword Whether to use password authentication
|
## @param redis-cluster.usePassword Whether to use password authentication
|
||||||
## @param redis-cluster.cluster.nodes Number of redis cluster master nodes
|
## @param redis-cluster.cluster.nodes Number of redis cluster master nodes
|
||||||
@ -628,7 +628,7 @@ redis-cluster:
|
|||||||
## @section redis
|
## @section redis
|
||||||
## @param redis.enabled Enable redis standalone or replicated
|
## @param redis.enabled Enable redis standalone or replicated
|
||||||
## @param redis.architecture Whether to use standalone or replication
|
## @param redis.architecture Whether to use standalone or replication
|
||||||
# ⚠️ The redis charts do not work well with special characters in the password (<https://gitea.com/gitea/helm-chart/issues/690>).
|
# ⚠️ The redis charts do not work well with special characters in the password (<https://gitea.com/gitea/helm-gitea/issues/690>).
|
||||||
# Consider omitting such or open an issue in the Bitnami repo and let us know once this got fixed.
|
# Consider omitting such or open an issue in the Bitnami repo and let us know once this got fixed.
|
||||||
## @param redis.global.redis.password Required password
|
## @param redis.global.redis.password Required password
|
||||||
## @param redis.master.count Number of Redis master instances to deploy
|
## @param redis.master.count Number of Redis master instances to deploy
|
||||||
|
Reference in New Issue
Block a user