Compare commits
6 Commits
main
...
feat/suppo
Author | SHA1 | Date | |
---|---|---|---|
2b1979b43c | |||
de74eab00e | |||
![]() |
db177a356f | ||
![]() |
d29a7e84a4 | ||
![]() |
31fa278145 | ||
![]() |
52c249eb08 |
@ -97,8 +97,8 @@ while IFS= read -r line; do
|
|||||||
|
|
||||||
echo "- ${KIND}: ${DESC}"
|
echo "- ${KIND}: ${DESC}"
|
||||||
|
|
||||||
jq --arg kind changed --arg description "$DESC" '. += [ $ARGS.named ]' < ${CHANGE_LOG_YAML} > ${CHANGE_LOG_YAML}.new
|
jq --arg kind "${KIND}" --arg description "${DESC}" '. += [ $ARGS.named ]' < "${CHANGE_LOG_YAML}" > "${CHANGE_LOG_YAML}.new"
|
||||||
mv ${CHANGE_LOG_YAML}.new ${CHANGE_LOG_YAML}
|
mv "${CHANGE_LOG_YAML}.new" "${CHANGE_LOG_YAML}"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
done <<< "${COMMIT_TITLES}"
|
done <<< "${COMMIT_TITLES}"
|
||||||
|
32
.gitea/workflows/changelog.yml
Normal file
32
.gitea/workflows/changelog.yml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: changelog
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
changelog:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: docker.io/thegeeklab/git-sv:2.0.1
|
||||||
|
steps:
|
||||||
|
- name: install tools
|
||||||
|
run: |
|
||||||
|
apk add -q --update --no-cache nodejs curl jq sed
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Generate upcoming changelog
|
||||||
|
run: |
|
||||||
|
git sv rn -o changelog.md
|
||||||
|
export RELEASE_NOTES=$(cat changelog.md)
|
||||||
|
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
|
||||||
|
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
|
||||||
|
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
|
||||||
|
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
|
19
.gitea/workflows/commitlint.yml
Normal file
19
.gitea/workflows/commitlint.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: commitlint
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- "*"
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- edited
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-and-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: commitlint/commitlint:19.8.1
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: check PR title
|
||||||
|
run: |
|
||||||
|
echo "${{ gitea.event.pull_request.title }}" | commitlint --config .commitlintrc.json
|
@ -2,13 +2,9 @@ name: generate-chart
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- "*"
|
- "*"
|
||||||
|
|
||||||
env:
|
|
||||||
# renovate: datasource=docker depName=alpine/helm
|
|
||||||
HELM_VERSION: "3.17.3"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate-chart-publish:
|
generate-chart-publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -17,48 +13,32 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Determine Architecture and Operating System to support x86_64 and ARM based CI nodes
|
|
||||||
run: |
|
|
||||||
# determine operating system
|
|
||||||
OS=$(uname | tr '[:upper:]' '[:lower:]')
|
|
||||||
echo "OS=${OS}" >> $GITHUB_ENV
|
|
||||||
echo "INFO: Set environment variable OS=${OS}"
|
|
||||||
|
|
||||||
# determine architecture
|
|
||||||
ARCH="$(uname -m)"
|
|
||||||
case "${ARCH}" in
|
|
||||||
aarch64) ARCH=arm64;;
|
|
||||||
x86_64) ARCH=amd64;;
|
|
||||||
esac
|
|
||||||
echo "ARCH=${ARCH}" >> $GITHUB_ENV
|
|
||||||
echo "INFO: Set environment variable ARCH=${ARCH}"
|
|
||||||
|
|
||||||
- name: Install packages via apt
|
- name: Install packages via apt
|
||||||
run: |
|
run: |
|
||||||
apt update --yes
|
apt update --yes
|
||||||
|
|
||||||
echo "INFO: Install packages via apt"
|
|
||||||
apt install --yes curl ca-certificates curl gnupg jq
|
apt install --yes curl ca-certificates curl gnupg jq
|
||||||
|
|
||||||
- name: Install helm
|
- name: Install helm
|
||||||
|
env:
|
||||||
|
# renovate: datasource=docker depName=alpine/helm
|
||||||
|
HELM_VERSION: "3.18.2"
|
||||||
run: |
|
run: |
|
||||||
curl --fail --location --output /dev/stdout --silent --show-error https://get.helm.sh/helm-v${{ env.HELM_VERSION }}-${OS}-${ARCH}.tar.gz | tar --extract --gzip --file /dev/stdin
|
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 ${OS}-${ARCH}/helm /usr/local/bin/
|
mv linux-$(dpkg --print-architecture)/helm /usr/local/bin/
|
||||||
rm --force --recursive ${OS}-${ARCH} helm-v${{ env.HELM_VERSION }}-${OS}-${ARCH}.tar.gz
|
rm --force --recursive linux-$(dpkg --print-architecture) helm-v${HELM_VERSION}-linux-$(dpkg --print-architecture).tar.gz
|
||||||
helm version
|
helm version
|
||||||
|
|
||||||
- name: Install yq
|
- name: Install yq
|
||||||
env:
|
env:
|
||||||
YQ_VERSION: v4.45.4 # renovate: datasource=github-releases depName=mikefarah/yq
|
YQ_VERSION: v4.45.4 # renovate: datasource=github-releases depName=mikefarah/yq
|
||||||
run: |
|
run: |
|
||||||
curl --fail --location --output /dev/stdout --silent --show-error https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_${OS}_${ARCH}.tar.gz | tar --extract --gzip --file /dev/stdin
|
curl --fail --location --output /dev/stdout --silent --show-error https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_$(dpkg --print-architecture).tar.gz | tar --extract --gzip --file /dev/stdin
|
||||||
mv yq_${OS}_${ARCH} /usr/local/bin
|
mv yq_linux_$(dpkg --print-architecture) /usr/local/bin
|
||||||
rm --force --recursive yq_${OS}_${ARCH} yq_${OS}_${ARCH}.tar.gz
|
rm --force --recursive yq_linux_$(dpkg --print-architecture) yq_linux_$(dpkg --print-architecture).tar.gz
|
||||||
yq --version
|
yq --version
|
||||||
|
|
||||||
- name: Install docker-ce via apt
|
- name: Install docker-ce via apt
|
||||||
run: |
|
run: |
|
||||||
echo "INFO: Install docker"
|
|
||||||
install -m 0755 -d /etc/apt/keyrings
|
install -m 0755 -d /etc/apt/keyrings
|
||||||
curl --fail --location --silent --show-error https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
curl --fail --location --silent --show-error https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||||
chmod a+r /etc/apt/keyrings/docker.gpg
|
chmod a+r /etc/apt/keyrings/docker.gpg
|
||||||
@ -68,79 +48,76 @@ jobs:
|
|||||||
|
|
||||||
- name: Install awscli
|
- name: Install awscli
|
||||||
run: |
|
run: |
|
||||||
echo "INFO: Install awscli via python pip"
|
|
||||||
pip install awscli --break-system-packages
|
pip install awscli --break-system-packages
|
||||||
aws --version
|
aws --version
|
||||||
|
|
||||||
# - name: Import GPG key
|
- name: Import GPG key
|
||||||
# id: import_gpg
|
id: import_gpg
|
||||||
# uses: https://github.com/crazy-max/ghaction-import-gpg@v6
|
uses: https://github.com/crazy-max/ghaction-import-gpg@v6
|
||||||
# with:
|
with:
|
||||||
# gpg_private_key: ${{ secrets.GPGSIGN_KEY }}
|
gpg_private_key: ${{ secrets.GPGSIGN_KEY }}
|
||||||
# passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }}
|
passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }}
|
||||||
# fingerprint: CC64B1DB67ABBEECAB24B6455FC346329753F4B0
|
fingerprint: CC64B1DB67ABBEECAB24B6455FC346329753F4B0
|
||||||
|
|
||||||
- name: Add Artifacthub.io annotations
|
- name: Add Artifacthub.io annotations
|
||||||
run: |
|
run: |
|
||||||
NEW_TAG=v12.0.0
|
NEW_TAG="$(git tag --sort=-version:refname | head --lines 1)"
|
||||||
OLD_TAG=v11.0.1
|
OLD_TAG="$(git tag --sort=-version:refname | head --lines 2 | tail --lines 1)"
|
||||||
# NEW_TAG="$(git tag --sort=-version:refname | head --lines 1)"
|
|
||||||
# OLD_TAG="$(git tag --sort=-version:refname | head --lines 2 | tail --lines 1)"
|
|
||||||
.gitea/scripts/add-annotations.sh "${OLD_TAG}" "${NEW_TAG}"
|
.gitea/scripts/add-annotations.sh "${OLD_TAG}" "${NEW_TAG}"
|
||||||
|
|
||||||
- name: Print Chart.yaml
|
- name: Print Chart.yaml
|
||||||
run: cat Chart.yaml
|
run: cat Chart.yaml
|
||||||
|
|
||||||
# # Using helm gpg plugin as 'helm package --sign' has issues with gpg2: https://github.com/helm/helm/issues/2843
|
# Using helm gpg plugin as 'helm package --sign' has issues with gpg2: https://github.com/helm/helm/issues/2843
|
||||||
# - name: package chart
|
- name: package chart
|
||||||
# run: |
|
run: |
|
||||||
# echo ${{ secrets.DOCKER_CHARTS_PASSWORD }} | docker login -u ${{ secrets.DOCKER_CHARTS_USERNAME }} --password-stdin
|
echo ${{ secrets.DOCKER_CHARTS_PASSWORD }} | docker login -u ${{ secrets.DOCKER_CHARTS_USERNAME }} --password-stdin
|
||||||
# # FIXME: use upstream after https://github.com/technosophos/helm-gpg/issues/1 is solved
|
# FIXME: use upstream after https://github.com/technosophos/helm-gpg/issues/1 is solved
|
||||||
# helm plugin install https://github.com/pat-s/helm-gpg
|
helm plugin install https://github.com/pat-s/helm-gpg
|
||||||
# helm dependency build
|
helm dependency build
|
||||||
# helm package --version "${GITHUB_REF#refs/tags/v}" ./
|
helm package --version "${GITHUB_REF#refs/tags/v}" ./
|
||||||
# mkdir gitea
|
mkdir gitea
|
||||||
# mv gitea*.tgz gitea/
|
mv gitea*.tgz gitea/
|
||||||
# curl --fail --location --output gitea/index.yaml --silent --show-error https://dl.gitea.com/charts/index.yaml
|
curl --fail --location --output gitea/index.yaml --silent --show-error https://dl.gitea.com/charts/index.yaml
|
||||||
# helm repo index gitea/ --url https://dl.gitea.com/charts --merge gitea/index.yaml
|
helm repo index gitea/ --url https://dl.gitea.com/charts --merge gitea/index.yaml
|
||||||
# # push to dockerhub
|
# push to dockerhub
|
||||||
# echo ${{ secrets.DOCKER_CHARTS_PASSWORD }} | helm registry login -u ${{ secrets.DOCKER_CHARTS_USERNAME }} registry-1.docker.io --password-stdin
|
echo ${{ secrets.DOCKER_CHARTS_PASSWORD }} | helm registry login -u ${{ secrets.DOCKER_CHARTS_USERNAME }} registry-1.docker.io --password-stdin
|
||||||
# helm push gitea/gitea-${GITHUB_REF#refs/tags/v}.tgz oci://registry-1.docker.io/giteacharts
|
helm push gitea/gitea-${GITHUB_REF#refs/tags/v}.tgz oci://registry-1.docker.io/giteacharts
|
||||||
# helm registry logout registry-1.docker.io
|
helm registry logout registry-1.docker.io
|
||||||
|
|
||||||
# - name: aws credential configure
|
- name: aws credential configure
|
||||||
# uses: https://github.com/aws-actions/configure-aws-credentials@v4
|
uses: https://github.com/aws-actions/configure-aws-credentials@v4
|
||||||
# with:
|
with:
|
||||||
# aws-access-key-id: ${{ secrets.AWS_KEY_ID }}
|
aws-access-key-id: ${{ secrets.AWS_KEY_ID }}
|
||||||
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
# aws-region: ${{ secrets.AWS_REGION }}
|
aws-region: ${{ secrets.AWS_REGION }}
|
||||||
|
|
||||||
# - name: Copy files to S3 and clear cache
|
- name: Copy files to S3 and clear cache
|
||||||
# run: |
|
run: |
|
||||||
# aws s3 sync gitea/ s3://${{ secrets.AWS_S3_BUCKET}}/charts/
|
aws s3 sync gitea/ s3://${{ secrets.AWS_S3_BUCKET}}/charts/
|
||||||
|
|
||||||
# release-gitea:
|
release-gitea:
|
||||||
# # needs: generate-chart-publish
|
# needs: generate-chart-publish
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# container: docker.io/thegeeklab/git-sv:2.0.1
|
container: docker.io/thegeeklab/git-sv:2.0.1
|
||||||
# steps:
|
steps:
|
||||||
# - name: install tools
|
- name: install tools
|
||||||
# run: |
|
run: |
|
||||||
# apk add -q --update --no-cache nodejs
|
apk add -q --update --no-cache nodejs
|
||||||
# - uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
# with:
|
with:
|
||||||
# fetch-tags: true
|
fetch-tags: true
|
||||||
# fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
# - name: Create changelog
|
- name: Create changelog
|
||||||
# run: |
|
run: |
|
||||||
# git sv current-version
|
git sv current-version
|
||||||
# git sv release-notes -t ${GITHUB_REF#refs/tags/} -o CHANGELOG.md
|
git sv release-notes -t ${GITHUB_REF#refs/tags/} -o CHANGELOG.md
|
||||||
# sed -i '1,2d' CHANGELOG.md # remove version
|
sed -i '1,2d' CHANGELOG.md # remove version
|
||||||
# cat CHANGELOG.md
|
cat CHANGELOG.md
|
||||||
|
|
||||||
# - name: Release
|
- name: Release
|
||||||
# uses: https://github.com/akkuman/gitea-release-action@v1
|
uses: https://github.com/akkuman/gitea-release-action@v1
|
||||||
# with:
|
with:
|
||||||
# body_path: CHANGELOG.md
|
body_path: CHANGELOG.md
|
||||||
# token: "${{ secrets.RELEASE_TOKEN }}"
|
token: "${{ secrets.RELEASE_TOKEN }}"
|
||||||
|
45
.gitea/workflows/test-pr.yml
Normal file
45
.gitea/workflows/test-pr.yml
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
name: check-and-test
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- "*"
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
env:
|
||||||
|
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest
|
||||||
|
HELM_UNITTEST_VERSION: "v0.8.2"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-and-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: alpine/helm:3.18.2
|
||||||
|
steps:
|
||||||
|
- name: install tools
|
||||||
|
run: |
|
||||||
|
apk update
|
||||||
|
apk add --update bash make nodejs npm yamllint ncurses
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: install chart dependencies
|
||||||
|
run: helm dependency build
|
||||||
|
- name: lint
|
||||||
|
run: helm lint
|
||||||
|
- name: template
|
||||||
|
run: helm template --debug gitea-helm .
|
||||||
|
- name: prepare unit test environment
|
||||||
|
run: |
|
||||||
|
helm plugin install --version ${{ env.HELM_UNITTEST_VERSION }} https://github.com/helm-unittest/helm-unittest
|
||||||
|
git submodule update --init --recursive
|
||||||
|
- name: unit tests
|
||||||
|
env:
|
||||||
|
TERM: xterm
|
||||||
|
run: |
|
||||||
|
make unittests
|
||||||
|
- name: verify readme
|
||||||
|
run: |
|
||||||
|
make readme
|
||||||
|
git diff --exit-code --name-only README.md
|
||||||
|
- name: yaml lint
|
||||||
|
uses: https://github.com/ibiqlik/action-yamllint@v3
|
12
Chart.lock
12
Chart.lock
@ -1,15 +1,15 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 16.7.4
|
version: 16.7.11
|
||||||
- name: postgresql-ha
|
- name: postgresql-ha
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 16.0.6
|
version: 16.0.14
|
||||||
- name: valkey-cluster
|
- name: valkey-cluster
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 3.0.10
|
version: 3.0.14
|
||||||
- name: valkey
|
- name: valkey
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 3.0.9
|
version: 3.0.13
|
||||||
digest: sha256:aeafc605b86db0ff3999cd808af1c9ca3a6a749aae0d42f2fdae89803b3bb60a
|
digest: sha256:87746bfd77ba585a15e85a2c8705ca3e86668298ba012a1adca2bc221deb7f49
|
||||||
generated: "2025-05-25T00:23:17.804516988Z"
|
generated: "2025-06-15T00:04:51.382524189Z"
|
||||||
|
10
Chart.yaml
10
Chart.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.8
|
appVersion: 1.24.0
|
||||||
icon: https://gitea.com/assets/img/logo.svg
|
icon: https://gitea.com/assets/img/logo.svg
|
||||||
|
|
||||||
keywords:
|
keywords:
|
||||||
@ -36,20 +36,20 @@ dependencies:
|
|||||||
# https://github.com/bitnami/charts/blob/main/bitnami/postgresql
|
# https://github.com/bitnami/charts/blob/main/bitnami/postgresql
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 16.7.4
|
version: 16.7.11
|
||||||
condition: postgresql.enabled
|
condition: postgresql.enabled
|
||||||
# https://github.com/bitnami/charts/blob/main/bitnami/postgresql-ha/Chart.yaml
|
# https://github.com/bitnami/charts/blob/main/bitnami/postgresql-ha/Chart.yaml
|
||||||
- name: postgresql-ha
|
- name: postgresql-ha
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 16.0.6
|
version: 16.0.14
|
||||||
condition: postgresql-ha.enabled
|
condition: postgresql-ha.enabled
|
||||||
# https://github.com/bitnami/charts/blob/main/bitnami/valkey-cluster/Chart.yaml
|
# https://github.com/bitnami/charts/blob/main/bitnami/valkey-cluster/Chart.yaml
|
||||||
- name: valkey-cluster
|
- name: valkey-cluster
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 3.0.10
|
version: 3.0.14
|
||||||
condition: valkey-cluster.enabled
|
condition: valkey-cluster.enabled
|
||||||
# https://github.com/bitnami/charts/blob/main/bitnami/valkey/Chart.yaml
|
# https://github.com/bitnami/charts/blob/main/bitnami/valkey/Chart.yaml
|
||||||
- name: valkey
|
- name: valkey
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 3.0.9
|
version: 3.0.13
|
||||||
condition: valkey.enabled
|
condition: valkey.enabled
|
||||||
|
@ -27,7 +27,7 @@ stringData:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- /* multiple replicas assertions */ -}}
|
{{- /* multiple replicas assertions */ -}}
|
||||||
{{- if gt .Values.replicaCount 1.0 -}}
|
{{- if gt (.Values.replicaCount | int) 1 -}}
|
||||||
{{- if .Values.gitea.config.cron -}}
|
{{- if .Values.gitea.config.cron -}}
|
||||||
{{- if .Values.gitea.config.cron.GIT_GC_REPOS -}}
|
{{- if .Values.gitea.config.cron.GIT_GC_REPOS -}}
|
||||||
{{- if eq .Values.gitea.config.cron.GIT_GC_REPOS.ENABLED true -}}
|
{{- if eq .Values.gitea.config.cron.GIT_GC_REPOS.ENABLED true -}}
|
||||||
|
@ -10,7 +10,7 @@ metadata:
|
|||||||
{{ .Values.persistence.labels | toYaml | indent 4}}
|
{{ .Values.persistence.labels | toYaml | indent 4}}
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
{{- if gt .Values.replicaCount 1.0 }}
|
{{- if gt (.Values.replicaCount | int) 1 }}
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- .Values.persistence.accessModes | toYaml | nindent 4 }}
|
{{- .Values.persistence.accessModes | toYaml | nindent 4 }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user