Commit new Chart releases for TrueCharts

Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
This commit is contained in:
TrueCharts-Bot 2024-02-21 01:20:25 +00:00
parent 3a69622ac6
commit 847e59f145
16 changed files with 4437 additions and 53 deletions

View File

@ -2,98 +2,243 @@
title: Changelog
---
**Important:**
*for the complete changelog, please refer to the website*
## [cops-7.1.18](https://github.com/truecharts/charts/compare/cops-7.1.17...cops-7.1.18) (2024-02-12)
## [cops-1.0.0](https://github.com/truecharts/charts/compare/cops-0.0.36...cops-1.0.0) (2022-11-10)
### Chore
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Major Change to GUI
- update helm general non-major ([#4342](https://github.com/truecharts/charts/issues/4342))
- update helm general non-major ([#4349](https://github.com/truecharts/charts/issues/4349))
- update helm general non-major ([#4329](https://github.com/truecharts/charts/issues/4329))
### Fix
- update container image lscr.io/linuxserver/cops to 2.2.1[@25577a2](https://github.com/25577a2) by renovate ([#18092](https://github.com/truecharts/charts/issues/18092))
- change container config label
## [cops-7.1.17](https://github.com/truecharts/charts/compare/cops-7.1.16...cops-7.1.17) (2024-02-05)
## [cops-0.0.39](https://github.com/truecharts/charts/compare/cops-0.0.36...cops-0.0.39) (2022-11-08)
### Chore
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- update helm general non-major ([#4342](https://github.com/truecharts/charts/issues/4342))
- update helm general non-major ([#4349](https://github.com/truecharts/charts/issues/4349))
- update helm general non-major ([#4329](https://github.com/truecharts/charts/issues/4329))
- update container image lscr.io/linuxserver/cops to 2.2.1[@31ef885](https://github.com/31ef885) by renovate ([#17882](https://github.com/truecharts/charts/issues/17882))
## [cops-7.1.16](https://github.com/truecharts/charts/compare/cops-7.1.15...cops-7.1.16) (2024-02-03)
## [cops-0.0.38](https://github.com/truecharts/charts/compare/cops-0.0.36...cops-0.0.38) (2022-11-08)
### Chore
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- update helm general non-major ([#4342](https://github.com/truecharts/charts/issues/4342))
- update helm general non-major ([#4329](https://github.com/truecharts/charts/issues/4329))
- update container image common to v17.2.30[@19ad5ec](https://github.com/19ad5ec) by renovate ([#17804](https://github.com/truecharts/charts/issues/17804))
## [cops-7.1.15](https://github.com/truecharts/charts/compare/cops-7.1.14...cops-7.1.15) (2024-01-26)
## [cops-0.0.38](https://github.com/truecharts/charts/compare/cops-0.0.36...cops-0.0.38) (2022-11-08)
### Chore
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- update helm general non-major ([#4342](https://github.com/truecharts/charts/issues/4342))
- update helm general non-major ([#4329](https://github.com/truecharts/charts/issues/4329))
- update container image common to v17.2.29[@d7c41a3](https://github.com/d7c41a3) by renovate ([#17545](https://github.com/truecharts/charts/issues/17545))
## [cops-7.1.14](https://github.com/truecharts/charts/compare/cops-7.1.13...cops-7.1.14) (2024-01-22)
## [cops-0.0.38](https://github.com/truecharts/charts/compare/cops-0.0.36...cops-0.0.38) (2022-11-08)
### Chore
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- update helm general non-major ([#4342](https://github.com/truecharts/charts/issues/4342))
- update helm general non-major ([#4329](https://github.com/truecharts/charts/issues/4329))
- update container image lscr.io/linuxserver/cops to 2.2.1[@4fc2dfa](https://github.com/4fc2dfa) by renovate ([#17482](https://github.com/truecharts/charts/issues/17482))
## [cops-7.1.13](https://github.com/truecharts/charts/compare/cops-7.1.12...cops-7.1.13) (2024-01-21)
## [cops-0.0.37](https://github.com/truecharts/charts/compare/cops-0.0.36...cops-0.0.37) (2022-11-07)
### Chore
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- update helm general non-major ([#4329](https://github.com/truecharts/charts/issues/4329))
- update container image common to v17.2.28[@918b4c5](https://github.com/918b4c5) by renovate ([#17478](https://github.com/truecharts/charts/issues/17478))
## [cops-7.1.12](https://github.com/truecharts/charts/compare/cops-7.1.11...cops-7.1.12) (2024-01-21)
## [cops-0.0.37](https://github.com/truecharts/charts/compare/cops-0.0.36...cops-0.0.37) (2022-11-06)
### Chore
- Auto-update chart README [skip ci]
- update helm general non-major ([#4329](https://github.com/truecharts/charts/issues/4329))
- update container image common to v17.2.26[@24c98f7](https://github.com/24c98f7) by renovate ([#17409](https://github.com/truecharts/charts/issues/17409))
## [cops-7.1.11](https://github.com/truecharts/charts/compare/cops-7.1.10...cops-7.1.11) (2024-01-21)
## [cops-0.0.36](https://github.com/truecharts/charts/compare/cops-0.0.35...cops-0.0.36) (2022-11-06)
### Chore
- Auto-update chart README [skip ci]
- update helm general non-major ([#4317](https://github.com/truecharts/charts/issues/4317))
- update metadata in chart.yaml ([#17457](https://github.com/truecharts/charts/issues/17457))
## [cops-7.1.10](https://github.com/truecharts/charts/compare/cops-7.1.9...cops-7.1.10) (2024-01-15)
## [cops-0.0.35](https://github.com/truecharts/charts/compare/cops-0.0.34...cops-0.0.35) (2022-11-05)
### Chore
- Auto-update chart README [skip ci]
- update helm general non-major ([#4308](https://github.com/truecharts/charts/issues/4308))
- update container image lscr.io/linuxserver/cops to 2.2.1[@06ce711](https://github.com/06ce711) by renovate ([#17238](https://github.com/truecharts/charts/issues/17238))
## [cops-7.1.9](https://github.com/truecharts/charts/compare/cops-7.1.8...cops-7.1.9) (2024-01-09)
## [cops-0.0.34](https://github.com/truecharts/charts/compare/cops-0.0.33...cops-0.0.34) (2022-11-02)
### Chore
- Auto-update chart README [skip ci]
- update helm general non-major ([#4261](https://github.com/truecharts/charts/issues/4261))
## [cops-0.0.33](https://github.com/truecharts/charts/compare/cops-0.0.32...cops-0.0.33) (2022-10-25)
### Chore
- Auto-update chart README [skip ci]
- update helm general non-major ([#4182](https://github.com/truecharts/charts/issues/4182))
## [cops-0.0.32](https://github.com/truecharts/charts/compare/cops-0.0.31...cops-0.0.32) (2022-10-19)
### Chore
- Auto-update chart README [skip ci]
- update helm general non-major ([#4122](https://github.com/truecharts/charts/issues/4122))
## [cops-0.0.31](https://github.com/truecharts/charts/compare/cops-0.0.30...cops-0.0.31) (2022-10-12)
### Chore
- Auto-update chart README [skip ci]
- update helm general non-major ([#4071](https://github.com/truecharts/charts/issues/4071))
## [cops-0.0.30](https://github.com/truecharts/charts/compare/cops-0.0.29...cops-0.0.30) (2022-10-07)
### Chore
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- update helm general non-major
## [cops-0.0.30](https://github.com/truecharts/charts/compare/cops-0.0.29...cops-0.0.30) (2022-10-07)
### Chore
- Auto-update chart README [skip ci]
- update helm general non-major
## [cops-0.0.29](https://github.com/truecharts/charts/compare/cops-0.0.28...cops-0.0.29) (2022-10-05)
### Chore
- Auto-update chart README [skip ci]
- split addons in smaller templates ([#3979](https://github.com/truecharts/charts/issues/3979))
- update helm general non-major
## [cops-0.0.28](https://github.com/truecharts/charts/compare/cops-0.0.27...cops-0.0.28) (2022-09-27)
### Chore
- Auto-update chart README [skip ci]
- update helm general non-major ([#3918](https://github.com/truecharts/charts/issues/3918))
## [cops-0.0.27](https://github.com/truecharts/charts/compare/cops-0.0.26...cops-0.0.27) (2022-09-25)
### Chore
- Auto-update chart README [skip ci]
- update helm general non-major ([#3898](https://github.com/truecharts/charts/issues/3898))
## [cops-0.0.26](https://github.com/truecharts/charts/compare/cops-0.0.24...cops-0.0.26) (2022-09-22)
### Chore
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- refactor Services SCALE GUI
- update docker general non-major ([#3839](https://github.com/truecharts/charts/issues/3839))
- update helm general non-major ([#3767](https://github.com/truecharts/charts/issues/3767))
- split serviceSelector ([#3751](https://github.com/truecharts/charts/issues/3751))
## [cops-0.0.26](https://github.com/truecharts/charts/compare/cops-0.0.24...cops-0.0.26) (2022-09-22)
### Chore
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- refactor Services SCALE GUI
- update docker general non-major ([#3839](https://github.com/truecharts/charts/issues/3839))
- update helm general non-major ([#3767](https://github.com/truecharts/charts/issues/3767))
- split serviceSelector ([#3751](https://github.com/truecharts/charts/issues/3751))
## [cops-0.0.25](https://github.com/truecharts/charts/compare/cops-0.0.24...cops-0.0.25) (2022-09-21)
### Chore
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- refactor Services SCALE GUI
- update helm general non-major ([#3767](https://github.com/truecharts/charts/issues/3767))
- split serviceSelector ([#3751](https://github.com/truecharts/charts/issues/3751))
## [cops-0.0.25](https://github.com/truecharts/charts/compare/cops-0.0.24...cops-0.0.25) (2022-09-20)
### Chore
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- Auto-update chart README [skip ci]
- refactor Services SCALE GUI
- update helm general non-major ([#3767](https://github.com/truecharts/charts/issues/3767))
- split serviceSelector ([#3751](https://github.com/truecharts/charts/issues/3751))

View File

@ -0,0 +1,30 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# OWNERS file for Kubernetes
OWNERS
# helm-docs templates
*.gotmpl
# docs folder
/docs
# icon
icon.png

View File

@ -0,0 +1,99 @@
---
title: Changelog
---
**Important:**
*for the complete changelog, please refer to the website*
## [gitea-17.1.18](https://github.com/truecharts/charts/compare/gitea-17.1.17...gitea-17.1.18) (2024-02-03)
### Chore
- update container image common to v17.2.30[@19ad5ec](https://github.com/19ad5ec) by renovate ([#17804](https://github.com/truecharts/charts/issues/17804))
## [gitea-17.1.17](https://github.com/truecharts/charts/compare/gitea-17.1.16...gitea-17.1.17) (2024-02-02)
### Chore
- update container image gitea/gitea to v1.21.5[@874a8d8](https://github.com/874a8d8) by renovate ([#17787](https://github.com/truecharts/charts/issues/17787))
## [gitea-17.1.16](https://github.com/truecharts/charts/compare/gitea-17.1.15...gitea-17.1.16) (2024-01-27)
### Chore
- update helm general non-major by renovate ([#17525](https://github.com/truecharts/charts/issues/17525))
## [gitea-17.1.15](https://github.com/truecharts/charts/compare/gitea-17.1.14...gitea-17.1.15) (2024-01-26)
### Chore
- update container image common to v17.2.29[@d7c41a3](https://github.com/d7c41a3) by renovate ([#17545](https://github.com/truecharts/charts/issues/17545))
## [gitea-17.1.14](https://github.com/truecharts/charts/compare/gitea-17.1.13...gitea-17.1.14) (2024-01-21)
### Chore
- update container image common to v17.2.28[@918b4c5](https://github.com/918b4c5) by renovate ([#17478](https://github.com/truecharts/charts/issues/17478))
## [gitea-17.1.13](https://github.com/truecharts/charts/compare/gitea-17.1.12...gitea-17.1.13) (2024-01-21)
### Chore
- update container image common to v17.2.26[@24c98f7](https://github.com/24c98f7) by renovate ([#17409](https://github.com/truecharts/charts/issues/17409))
## [gitea-17.1.12](https://github.com/truecharts/charts/compare/gitea-17.1.11...gitea-17.1.12) (2024-01-21)
### Chore
- update metadata in chart.yaml ([#17457](https://github.com/truecharts/charts/issues/17457))
## [gitea-17.1.11](https://github.com/truecharts/charts/compare/gitea-17.1.10...gitea-17.1.11) (2024-01-21)
### Chore
- update container image gitea/gitea to v1.21.4[@600f1f1](https://github.com/600f1f1) by renovate ([#17304](https://github.com/truecharts/charts/issues/17304))
## [gitea-17.1.10](https://github.com/truecharts/charts/compare/gitea-17.1.9...gitea-17.1.10) (2024-01-09)
### Chore
- update container image common to v17.2.22[@e7c9056](https://github.com/e7c9056) by renovate ([#16986](https://github.com/truecharts/charts/issues/16986))
## [gitea-17.1.9](https://github.com/truecharts/charts/compare/gitea-17.1.8...gitea-17.1.9) (2024-01-02)

View File

@ -0,0 +1,49 @@
annotations:
max_scale_version: 23.10.2
min_scale_version: 23.10.0
truecharts.org/SCALE-support: "true"
truecharts.org/category: GIT
truecharts.org/max_helm_version: "3.14"
truecharts.org/min_helm_version: "3.12"
truecharts.org/train: stable
apiVersion: v2
appVersion: 1.21.5
dependencies:
- name: common
version: 17.4.2
repository: oci://tccr.io/truecharts
condition: ""
alias: ""
tags: []
import-values: []
- name: memcached
version: 11.2.1
repository: oci://tccr.io/truecharts
condition: memcached.enabled
alias: ""
tags: []
import-values: []
deprecated: false
description: Self hosted GIT repositories
home: https://truecharts.org/charts/stable/gitea
icon: https://truecharts.org/img/hotlink-ok/chart-icons/gitea.png
keywords:
- git
- issue tracker
- code review
- wiki
- gitea
- gogs
kubeVersion: ">=1.24.0-0"
maintainers:
- name: TrueCharts
email: info@truecharts.org
url: https://truecharts.org
name: gitea
sources:
- https://gitea.com/gitea/helm-chart
- https://github.com/go-gitea/gitea
- https://github.com/truecharts/charts/tree/master/charts/stable/gitea
- https://hub.docker.com/r/gitea/gitea
type: application
version: 17.3.0

106
stable/gitea/17.3.0/LICENSE Normal file
View File

@ -0,0 +1,106 @@
Business Source License 1.1
Parameters
Licensor: The TrueCharts Project, it's owner and it's contributors
Licensed Work: The TrueCharts "Blocky" Helm Chart
Additional Use Grant: You may use the licensed work in production, as long
as it is directly sourced from a TrueCharts provided
official repository, catalog or source. You may also make private
modification to the directly sourced licenced work,
when used in production.
The following cases are, due to their nature, also
defined as 'production use' and explicitly prohibited:
- Bundling, including or displaying the licensed work
with(in) another work intended for production use,
with the apparent intend of facilitating and/or
promoting production use by third parties in
violation of this license.
Change Date: 2050-01-01
Change License: 3-clause BSD license
For information about alternative licensing arrangements for the Software,
please contact: legal@truecharts.org
Notice
The Business Source License (this document, or the “License”) is not an Open
Source license. However, the Licensed Work will eventually be made available
under an Open Source License, as stated in this License.
License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
“Business Source License” is a trademark of MariaDB Corporation Ab.
-----------------------------------------------------------------------------
Business Source License 1.1
Terms
The Licensor hereby grants you the right to copy, modify, create derivative
works, redistribute, and make non-production use of the Licensed Work. The
Licensor may make an Additional Use Grant, above, permitting limited
production use.
Effective on the Change Date, or the fourth anniversary of the first publicly
available distribution of a specific version of the Licensed Work under this
License, whichever comes first, the Licensor hereby grants you rights under
the terms of the Change License, and the rights granted in the paragraph
above terminate.
If your use of the Licensed Work does not comply with the requirements
currently in effect as described in this License, you must purchase a
commercial license from the Licensor, its affiliated entities, or authorized
resellers, or you must refrain from using the Licensed Work.
All copies of the original and modified Licensed Work, and derivative works
of the Licensed Work, are subject to this License. This License applies
separately for each version of the Licensed Work and the Change Date may vary
for each version of the Licensed Work released by Licensor.
You must conspicuously display this License on each original or modified copy
of the Licensed Work. If you receive the Licensed Work in original or
modified form from a third party, the terms and conditions set forth in this
License apply to your use of that work.
Any use of the Licensed Work in violation of this License will automatically
terminate your rights under this License for the current and all other
versions of the Licensed Work.
This License does not grant you any right in any trademark or logo of
Licensor or its affiliates (provided that you may use a trademark or logo of
Licensor as expressly required by this License).
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
TITLE.
MariaDB hereby grants you permission to use this Licenses text to license
your works, and to refer to it using the trademark “Business Source License”,
as long as you comply with the Covenants of Licensor below.
Covenants of Licensor
In consideration of the right to use this Licenses text and the “Business
Source License” name and trademark, Licensor covenants to MariaDB, and to all
other recipients of the licensed work to be provided by Licensor:
1. To specify as the Change License the GPL Version 2.0 or any later version,
or a license that is compatible with GPL Version 2.0 or a later version,
where “compatible” means that software provided under the Change License can
be included in a program with software provided under GPL Version 2.0 or a
later version. Licensor may specify additional Change Licenses without
limitation.
2. To either: (a) specify an additional grant of rights to use that does not
impose any additional restriction on the right granted in this License, as
the Additional Use Grant; or (b) insert the text “None”.
3. To specify a Change Date.
4. Not to modify this License in any other way.

View File

@ -0,0 +1,28 @@
---
title: README
---
## General Info
TrueCharts can be installed as both _normal_ Helm Charts or as Apps on TrueNAS SCALE.
However only installations using the TrueNAS SCALE Apps system are supported.
For more information about this App, please check the docs on the TrueCharts [website](https://truecharts.org/charts/stable/gitea)
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/charts/issues/new/choose)**
## Support
- Please check our [quick-start guides for TrueNAS SCALE](https://truecharts.org/manual/SCALE/guides/scale-intro).
- See the [Website](https://truecharts.org)
- Check our [Discord](https://discord.gg/tVsPTHWTtr)
- Open a [issue](https://github.com/truecharts/charts/issues/new/choose)
---
## Sponsor TrueCharts
TrueCharts can only exist due to the incredible effort of our staff.
Please consider making a [donation](https://truecharts.org/sponsor) or contributing back to the project any way you can!
_All Rights Reserved - The TrueCharts Project_

View File

@ -0,0 +1,8 @@
Self hosted GIT repositories
This App is supplied by TrueCharts, for more information visit the manual: [https://truecharts.org/charts/stable/gitea](https://truecharts.org/charts/stable/gitea)
---
TrueCharts can only exist due to the incredible effort of our staff.
Please consider making a [donation](https://truecharts.org/sponsor) or contributing back to the project any way you can!

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,132 @@
image:
repository: gitea/gitea
tag: 1.21.5-rootless@sha256:874a8d88bb65f90c33fcafe4efe2de17039de1347c00f284e6f2a883a7caa55f
pullPolicy: IfNotPresent
service:
main:
ports:
main:
port: 10037
targetPort: 3000
ssh:
enabled: true
ports:
ssh:
enabled: true
port: 2222
targetPort: 2222
persistence:
data:
enabled: true
mountPath: "/data"
targetSelectAll: true
varlib:
enabled: true
mountPath: "/var/lib/gitea"
type: emptyDir
# Configure commit/action signing prerequisites
signing:
enabled: true
gpgHome: /data/git/.gnupg
admin:
username: giteaadmin
password: r8sA8CPHD9!bt6d
email: "gitea@local.domain"
metrics:
main:
enabled: true
type: "servicemonitor"
endpoints:
- port: main
path: /metrics
ldap:
enabled: false
# name:
# securityProtocol:
# host:
# port:
# userSearchBase:
# userFilter:
# adminFilter:
# emailAttribute:
# bindDn:
# bindPassword:
# usernameAttribute:
# sshPublicKeyAttribute:
oauth:
enabled: false
# name:
# provider:
# key:
# secret:
# autoDiscoverUrl:
# useCustomUrls:
# customAuthUrl:
# customTokenUrl:
# customProfileUrl:
# customEmailUrl:
config:
APP_NAME: "Gitea: Git with a cup of tea"
RUN_MODE: dev
ALLOWED_HOST_LIST: "127.0.0.1"
nodeIP: 127.0.0.1
customConfig: []
# - name: test
# keys:
# - name: testkey
# value: testvalue
# Enabled postgres
cnpg:
main:
enabled: true
user: gitea
database: gitea
# -- memcached dependency settings
memcached:
enabled: true
portal:
open:
enabled: true
securityContext:
container:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
workload:
main:
podSpec:
initContainers:
1-init-directories:
enabled: true
imageSelector: image
type: init
command:
- "/usr/sbin/init_directory_structure.sh"
securityContext:
runAsUser: 0
runAsNonRoot: false
envFrom:
- configMapRef:
name: gitea-env
2-configure-gitea:
enabled: true
imageSelector: image
type: init
command:
- "/usr/sbin/configure_gitea.sh"
envFrom:
- configMapRef:
name: gitea-env
containers:
main:
probes:
liveness:
type: tcp
readiness:
type: tcp
startup:
type: tcp
envFrom:
- configMapRef:
name: gitea-env

3486
stable/gitea/17.3.0/questions.yaml Executable file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}

View File

@ -0,0 +1,15 @@
{{/* Define the configmap */}}
{{- define "gitea.configmap" -}}
enabled: true
data:
GITEA_APP_INI: "/data/gitea/conf/app.ini"
GITEA_CUSTOM: "/data/gitea"
GITEA_WORK_DIR: "/data"
GITEA_TEMP: "/tmp/gitea"
GITEA_ADMIN_USERNAME: {{ .Values.admin.username | quote }}
GITEA_ADMIN_PASSWORD: {{ .Values.admin.password | quote }}
SSH_PORT: {{ .Values.service.ssh.ports.ssh.port | quote }}
SSH_LISTEN_PORT: {{ .Values.service.ssh.ports.ssh.targetPort | quote }}
TMPDIR: "/tmp/gitea"
GNUPGHOME: "/data/git/.gnupg"
{{- end -}}

View File

@ -0,0 +1,233 @@
{{/* Define the secrets */}}
{{- define "gitea.secrets" -}}
{{ $DOMAIN := .Values.config.nodeIP | quote -}}
{{ $URL := (printf "http://%s:%v/" .Values.config.nodeIP .Values.service.main.ports.main.port) }}
{{- $pgHost := printf "%v-cnpg-main-rw" (include "tc.v1.common.lib.chart.names.fullname" $) -}}
{{- if and (.Values.ingress.main.enabled) (gt (len .Values.ingress.main.hosts) 0) -}}
{{- $DOMAIN = (index .Values.ingress.main.hosts 0).host -}}
{{- $URL = (printf "https://%s/" (index .Values.ingress.main.hosts 0).host) -}}
{{- end -}}
secret:
enabled: true
data:
app.ini: |-
APP_NAME = {{ .Values.config.APP_NAME }}
RUN_MODE = {{ .Values.config.RUN_MODE }}
[cache]
ADAPTER = memcache
ENABLED = true
HOST = {{ printf "%v-%v:%v" .Release.Name "memcached" "11211" }}
{{- range $catindex, $catvalue := .Values.customConfig }}
{{- if eq $catvalue.name "cache" }}
{{- range $index, $value := $catvalue.keys }}
{{ $value.name }} = {{ $value.value }}
{{- end }}
{{- end }}
{{- end }}
[database]
DB_TYPE = postgres
HOST = {{ printf "%v:5432" $pgHost }}
NAME = {{ .Values.cnpg.main.database }}
PASSWD = {{ .Values.cnpg.main.creds.password }}
USER = {{ .Values.cnpg.main.user }}
{{- range $catindex, $catvalue := .Values.customConfig }}
{{- if eq $catvalue.name "database" }}
{{- range $index, $value := $catvalue.keys }}
{{ $value.name }} = {{ $value.value }}
{{- end }}
{{- end }}
{{- end }}
[metrics]
ENABLED = {{ .Values.metrics.main.enabled }}
{{- range $catindex, $catvalue := .Values.customConfig }}
{{- if eq $catvalue.name "metrics" }}
{{- range $index, $value := $catvalue.keys }}
{{ $value.name }} = {{ $value.value }}
{{- end }}
{{- end }}
{{- end }}
[repository]
ROOT = /data/git/gitea-repositories
{{- range $catindex, $catvalue := .Values.customConfig }}
{{- if eq $catvalue.name "repository" }}
{{- range $index, $value := $catvalue.keys }}
{{ $value.name }} = {{ $value.value }}
{{- end }}
{{- end }}
{{- end }}
[security]
INSTALL_LOCK = true
{{- range $catindex, $catvalue := .Values.customConfig }}
{{- if eq $catvalue.name "security" }}
{{- range $index, $value := $catvalue.keys }}
{{ $value.name }} = {{ $value.value }}
{{- end }}
{{- end }}
{{- end }}
[webhook]
ALLOWED_HOST_LIST = {{ .Values.config.ALLOWED_HOST_LIST }}
[server]
APP_DATA_PATH = /data
DOMAIN = {{ $DOMAIN }}
ENABLE_PPROF = false
HTTP_PORT = {{ .Values.service.main.ports.main.targetPort }}
PROTOCOL = http
ROOT_URL = {{ $URL }}
SSH_DOMAIN = {{ $DOMAIN }}
SSH_LISTEN_PORT = {{ .Values.service.ssh.ports.ssh.targetPort }}
SSH_PORT = {{ .Values.service.ssh.ports.ssh.port }}
START_SSH_SERVER = true
{{- range $catindex, $catvalue := .Values.customConfig }}
{{- if eq $catvalue.name "server" }}
{{- range $index, $value := $catvalue.keys }}
{{ $value.name }} = {{ $value.value }}
{{- end }}
{{- end }}
{{- end }}
{{- range $catindex, $catvalue := .Values.customConfig }}
{{- if not ( or ( eq $catvalue.name "server" ) ( eq $catvalue.name "server" ) ( eq $catvalue.name "security" ) ( eq $catvalue.name "repository" ) ( eq $catvalue.name "metrics" ) ( eq $catvalue.name "database" ) ( eq $catvalue.name "cache" ) ) }}
[{{ $catvalue.name }}]
{{- range $index, $value := $catvalue.keys }}
{{ $value.name }} = {{ $value.value }}
{{- end }}
{{- end }}
{{- end }}
init:
enabled: true
data:
init_directory_structure.sh: |-
#!/usr/bin/env bash
set -euo pipefail
{{- if .Values.initPreScript }}
# BEGIN: initPreScript
{{- with .Values.initPreScript -}}
{{ . | nindent 4}}
{{- end -}}
# END: initPreScript
{{- end }}
set -x
mkdir -p /data/git/.ssh
chmod -R 700 /data/git/.ssh
[ ! -d /data/gitea ] && mkdir -p /data/gitea/conf
# prepare temp directory structure
mkdir -p "${GITEA_TEMP}"
chown -Rf {{ .Values.securityContext.container.runAsUser }}:{{ .Values.securityContext.pod.fsGroup }} "${GITEA_TEMP}"
chmod ug+rwx "${GITEA_TEMP}"
# Copy config file to writable volume
cp /etc/gitea/conf/app.ini /data/gitea/conf/app.ini
chown -Rf {{ .Values.securityContext.container.runAsUser }}:{{ .Values.securityContext.pod.fsGroup }} "/data"
chmod a+rwx /data/gitea/conf/app.ini
# Patch dockercontainer for dynamic users
chown -Rf {{ .Values.securityContext.container.runAsUser }}:{{ .Values.securityContext.pod.fsGroup }} "/var/lib/gitea"
configure_gitea.sh: |-
#!/usr/bin/env bash
set -euo pipefail
# Connection retry inspired by https://gist.github.com/dublx/e99ea94858c07d2ca6de
function test_db_connection() {
local RETRY=0
local MAX=30
echo 'Wait for database to become avialable...'
until [ "${RETRY}" -ge "${MAX}" ]; do
nc -vz -w2 {{ $pgHost }} 5432 && break
RETRY=$[${RETRY}+1]
echo "...not ready yet (${RETRY}/${MAX})"
done
if [ "${RETRY}" -ge "${MAX}" ]; then
echo "Database not reachable after '${MAX}' attempts!"
exit 1
fi
}
test_db_connection
echo '==== BEGIN GITEA MIGRATION ===='
gitea migrate
echo '==== BEGIN GITEA CONFIGURATION ===='
{{- if or .Values.admin.existingSecret (and .Values.admin.username .Values.admin.password) }}
function configure_admin_user() {
local ACCOUNT_ID=$(gitea admin user list --admin | grep -e "\s\+${GITEA_ADMIN_USERNAME}\|{{ .Values.admin.email }}\s\+" | awk -F " " "{printf \$1}")
if [[ -z "${ACCOUNT_ID}" ]]; then
echo "No admin user '${GITEA_ADMIN_USERNAME}' found, neither email '{{ .Values.admin.email }}' is assigned to an admin. Creating now..."
gitea admin user create --admin --username "${GITEA_ADMIN_USERNAME}" --password "${GITEA_ADMIN_PASSWORD}" --email {{ .Values.admin.email | quote }} --must-change-password=false
echo '...created.'
else
echo "Admin account '${GITEA_ADMIN_USERNAME}' or email {{ .Values.admin.email }} already exist. Running update to sync password..."
gitea admin user change-password --username "${GITEA_ADMIN_USERNAME}" --password "${GITEA_ADMIN_PASSWORD}"
echo '...password sync done.'
fi
}
configure_admin_user
{{- end }}
{{- if .Values.ldap.enabled }}
function configure_ldap() {
local LDAP_NAME={{ (printf "%s" .Values.ldap.name) | squote }}
local GITEA_AUTH_ID=$(gitea admin auth list --vertical-bars | grep -E "\|${LDAP_NAME}\s+\|" | grep -iE '\|LDAP \(via BindDN\)\s+\|' | awk -F " " "{print \$1}")
if [[ -z "${GITEA_AUTH_ID}" ]]; then
echo "No ldap configuration found with name '${LDAP_NAME}'. Installing it now..."
gitea admin auth add-ldap {{- include "gitea.ldap_settings" . | indent 1 }}
echo '...installed.'
else
echo "Existing ldap configuration with name '${LDAP_NAME}': '${GITEA_AUTH_ID}'. Running update to sync settings..."
gitea admin auth update-ldap --id "${GITEA_AUTH_ID}" {{- include "gitea.ldap_settings" . | indent 1 }}
echo '...sync settings done.'
fi
}
configure_ldap
{{- end }}
{{- if .Values.oauth.enabled }}
function configure_oauth() {
local OAUTH_NAME={{ (printf "%s" .Values.oauth.name) | squote }}
local AUTH_ID=$(gitea admin auth list --vertical-bars | grep -E "\|${OAUTH_NAME}\s+\|" | grep -iE '\|OAuth2\s+\|' | awk -F " " "{print \$1}")
if [[ -z "${AUTH_ID}" ]]; then
echo "No oauth configuration found with name '${OAUTH_NAME}'. Installing it now..."
gitea admin auth add-oauth {{- include "gitea.oauth_settings" . | indent 1 }}
echo '...installed.'
else
echo "Existing oauth configuration with name '${OAUTH_NAME}': '${AUTH_ID}'. Running update to sync settings..."
gitea admin auth update-oauth --id "${AUTH_ID}" {{- include "gitea.oauth_settings" . | indent 1 }}
echo '...sync settings done.'
fi
}
configure_oauth
{{- end }}
echo '==== END GITEA CONFIGURATION ===='
{{- end -}}

View File

@ -0,0 +1,52 @@
{{/* Make sure all variables are set properly */}}
{{- include "tc.v1.common.loader.init" . }}
{{/* Render secrets for gitea */}}
{{- $secrets := include "gitea.secrets" . | fromYaml -}}
{{- if $secrets -}}
{{- $_ := mustMergeOverwrite .Values.secret $secrets -}}
{{- end -}}
{{/* Render configmap for gitea */}}
{{- $configmap := include "gitea.configmap" . | fromYaml -}}
{{- if $configmap -}}
{{- $_ := set .Values.configmap "gitea-env" $configmap -}}
{{- end -}}
{{/* Append the general secret volumes to the volumes */}}
{{- define "gitea.initvolume" -}}
enabled: true
readOnly: true
type: secret
objectName: init
defaultMode: "0777"
targetSelector:
main:
main:
mountPath: /secrets/ini
1-init-directories:
mountPath: "/usr/sbin"
2-configure-gitea:
mountPath: "/usr/sbin"
{{- end -}}
{{/* Append the general secret volumes to the volumes */}}
{{- define "gitea.configvolume" -}}
enabled: true
readOnly: true
type: secret
objectName: secret
targetSelector:
main:
main:
mountPath: /secrets/config
1-init-directories:
mountPath: /etc/gitea/conf
{{- end -}}
{{- $_ := set .Values.persistence "init" (include "gitea.initvolume" . | fromYaml) -}}
{{- $_ := set .Values.persistence "config" (include "gitea.configvolume" . | fromYaml) -}}
{{/* Render the templates */}}
{{ include "tc.v1.common.loader.apply" . }}

View File