diff --git a/apps/gitea/base/.helmignore b/apps/gitea/base/.helmignore
new file mode 100644
index 0000000..207983f
--- /dev/null
+++ b/apps/gitea/base/.helmignore
@@ -0,0 +1,25 @@
+# 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
+# img folder
+img/
+# Changelog
+CHANGELOG.md
diff --git a/apps/gitea/base/CHANGELOG.md b/apps/gitea/base/CHANGELOG.md
new file mode 100644
index 0000000..544fea4
--- /dev/null
+++ b/apps/gitea/base/CHANGELOG.md
@@ -0,0 +1,464 @@
+# Changelog
+
+## 2.3.13 (2024-07-15)
+
+* [bitnami/gitea] Include goss-wait test to improve test results ([#27980](https://github.com/bitnami/charts/pull/27980))
+
+## 2.3.12 (2024-07-15)
+
+* [bitnami/gitea] Release 2.3.12 (#27964) ([48112ab](https://github.com/bitnami/charts/commit/48112ab4823167fd68daa82cda933f4f896acf7e)), closes [#27964](https://github.com/bitnami/charts/issues/27964)
+
+## 2.3.11 (2024-07-05)
+
+* [bitnami/gitea] Release 2.3.11 (#27810) ([f792844](https://github.com/bitnami/charts/commit/f7928444d215f77f582b06dd8b0cce317d538992)), closes [#27810](https://github.com/bitnami/charts/issues/27810)
+
+## 2.3.10 (2024-07-04)
+
+* [bitnami/gitea] Release 2.3.10 (#27803) ([0dd2cf0](https://github.com/bitnami/charts/commit/0dd2cf0499d348260f7b967a9d739a8e57d451c4)), closes [#27803](https://github.com/bitnami/charts/issues/27803)
+
+## 2.3.9 (2024-07-04)
+
+* [bitnami/gitea] Release 2.3.9 (#27752) ([b37b9ef](https://github.com/bitnami/charts/commit/b37b9ef02ef34e15e576544ff94ce3c98c1ac159)), closes [#27752](https://github.com/bitnami/charts/issues/27752)
+
+## 2.3.8 (2024-07-03)
+
+* [bitnami/gitea] Release 2.3.8 (#27647) ([53e54e7](https://github.com/bitnami/charts/commit/53e54e79995cd75fb1356302f22b8f16160928e8)), closes [#27647](https://github.com/bitnami/charts/issues/27647)
+
+## 2.3.7 (2024-07-02)
+
+* [bitnami/*] Update README changing TAC wording (#27530) ([52dfed6](https://github.com/bitnami/charts/commit/52dfed6bac44d791efabfaf06f15daddc4fefb0c)), closes [#27530](https://github.com/bitnami/charts/issues/27530)
+* [bitnami/gitea] Release 2.3.7 (#27630) ([e0208e5](https://github.com/bitnami/charts/commit/e0208e5b734d3c5c3e9475894222ce4b5bb653da)), closes [#27630](https://github.com/bitnami/charts/issues/27630)
+
+## 2.3.6 (2024-06-18)
+
+* [bitnami/gitea] Release 2.3.6 (#27348) ([b74347f](https://github.com/bitnami/charts/commit/b74347fad60d2643e60d6a6a572ec7d436b0d447)), closes [#27348](https://github.com/bitnami/charts/issues/27348)
+
+## 2.3.5 (2024-06-17)
+
+* [bitnami/gitea] Release 2.3.5 (#27223) ([8933668](https://github.com/bitnami/charts/commit/893366838219b710030bd39c047cf64bdd7cdf6b)), closes [#27223](https://github.com/bitnami/charts/issues/27223)
+
+## 2.3.4 (2024-06-06)
+
+* [bitnami/gitea] Release 2.3.4 (#26952) ([02b29d7](https://github.com/bitnami/charts/commit/02b29d737ef4e5aca0386b21f0084f13ce7bfd7b)), closes [#26952](https://github.com/bitnami/charts/issues/26952)
+
+## 2.3.3 (2024-06-05)
+
+* [bitnami/gitea] Bump chart version (#26830) ([8412b82](https://github.com/bitnami/charts/commit/8412b824b39039281dfd0680cc81e87568fb5411)), closes [#26830](https://github.com/bitnami/charts/issues/26830)
+
+## 2.3.2 (2024-06-05)
+
+* [bitnami/gitea] Bump chart version (#26772) ([9cf1e1c](https://github.com/bitnami/charts/commit/9cf1e1cebc78b6a7ed5e304ca0bacb5c01f0a40c)), closes [#26772](https://github.com/bitnami/charts/issues/26772)
+
+## 2.3.1 (2024-06-05)
+
+* [bitnami/gitea] Release 2.3.1 (#26727) ([05a43bd](https://github.com/bitnami/charts/commit/05a43bd2116fefd64e7796ea9036bfb99ba0983c)), closes [#26727](https://github.com/bitnami/charts/issues/26727)
+
+## 2.3.0 (2024-06-03)
+
+* [bitnami/gitea] Enable PodDisruptionBudgets (#26433) ([4b3877b](https://github.com/bitnami/charts/commit/4b3877b03c181c7b77386f4f327568fc93093a55)), closes [#26433](https://github.com/bitnami/charts/issues/26433)
+
+## 2.2.1 (2024-05-27)
+
+* [bitnami/gitea] Release 2.2.1 (#26460) ([906fd77](https://github.com/bitnami/charts/commit/906fd77e7701577bed88a0dd5dea35e07163fafc)), closes [#26460](https://github.com/bitnami/charts/issues/26460)
+
+## 2.2.0 (2024-05-21)
+
+* [bitnami/*] ci: :construction_worker: Add tag and changelog support (#25359) ([91c707c](https://github.com/bitnami/charts/commit/91c707c9e4e574725a09505d2d313fb93f1b4c0a)), closes [#25359](https://github.com/bitnami/charts/issues/25359)
+* [bitnami/gitea] feat: :sparkles: :lock: Add warning when original images are replaced (#26208) ([fcc0ff9](https://github.com/bitnami/charts/commit/fcc0ff90bb25d1e59bf0a314223b0f4c9da8e723)), closes [#26208](https://github.com/bitnami/charts/issues/26208)
+
+## 2.1.2 (2024-05-20)
+
+* [bitnami/gitea] Use different liveness/readiness probes (#25987) ([9efee88](https://github.com/bitnami/charts/commit/9efee882f14cd1f9f97643c80f0293fe4069ed2d)), closes [#25987](https://github.com/bitnami/charts/issues/25987)
+
+## 2.1.1 (2024-05-18)
+
+* [bitnami/gitea] Release 2.1.1 updating components versions (#26017) ([d707ebd](https://github.com/bitnami/charts/commit/d707ebde3f28cb7c28a6daf2388419992e6a8e0a)), closes [#26017](https://github.com/bitnami/charts/issues/26017)
+
+## 2.1.0 (2024-05-14)
+
+* [bitnami/gitea] Add new customizable environment variables - ENABLE OPENID SIGNIN/SIGNUP (#25684) ([9cca25b](https://github.com/bitnami/charts/commit/9cca25b5884e936b74d2d4cf7a46a96b91c1309a)), closes [#25684](https://github.com/bitnami/charts/issues/25684)
+
+## 2.0.6 (2024-05-13)
+
+* [bitnami/*] Change non-root and rolling-tags doc URLs (#25628) ([b067c94](https://github.com/bitnami/charts/commit/b067c94f6bcde427863c197fd355f0b5ba12ff5b)), closes [#25628](https://github.com/bitnami/charts/issues/25628)
+* [bitnami/gitea] Release 2.0.6 updating components versions (#25758) ([2ea38a3](https://github.com/bitnami/charts/commit/2ea38a3fc3df8f4509469c904b419c2d6eaf96fc)), closes [#25758](https://github.com/bitnami/charts/issues/25758)
+
+## 2.0.5 (2024-05-07)
+
+* [bitnami/*] Set new header/owner (#25558) ([8d1dc11](https://github.com/bitnami/charts/commit/8d1dc11f5fb30db6fba50c43d7af59d2f79deed3)), closes [#25558](https://github.com/bitnami/charts/issues/25558)
+* [bitnami/gitea] Release 2.0.5 updating components versions (#25592) ([c66f3cd](https://github.com/bitnami/charts/commit/c66f3cd241259c6bbb0cd5b8fc59ac3cf1e0e40e)), closes [#25592](https://github.com/bitnami/charts/issues/25592)
+* [bitnami/multiple charts] Fix typo: "NetworkPolice" vs "NetworkPolicy" (#25348) ([6970c1b](https://github.com/bitnami/charts/commit/6970c1ba245873506e73d459c6eac1e4919b778f)), closes [#25348](https://github.com/bitnami/charts/issues/25348)
+* Replace VMware by Broadcom copyright text (#25306) ([a5e4bd0](https://github.com/bitnami/charts/commit/a5e4bd0e35e419203793976a78d9d0a13de92c76)), closes [#25306](https://github.com/bitnami/charts/issues/25306)
+
+## 2.0.4 (2024-04-16)
+
+* [bitnami/gitea] Release 2.0.4 updating components versions (#25186) ([a42b0d3](https://github.com/bitnami/charts/commit/a42b0d333ea7743be596135f4f86db6d1379a6ca)), closes [#25186](https://github.com/bitnami/charts/issues/25186)
+
+## 2.0.3 (2024-04-06)
+
+* [bitnami/gitea] Release 2.0.3 updating components versions (#25006) ([7f6eb12](https://github.com/bitnami/charts/commit/7f6eb12526cfb0519abe3c8ac4f68d02c19fd36e)), closes [#25006](https://github.com/bitnami/charts/issues/25006)
+
+## 2.0.2 (2024-04-05)
+
+* [bitnami/gitea] Release 2.0.2 updating components versions (#24950) ([be5714d](https://github.com/bitnami/charts/commit/be5714de2ab4b6c66b19b41d6dcbcc23b1f7dcc4)), closes [#24950](https://github.com/bitnami/charts/issues/24950)
+
+## 2.0.1 (2024-04-04)
+
+* [bitnami/gitea] Release 2.0.1 (#24881) ([ac10211](https://github.com/bitnami/charts/commit/ac10211abd3190186afadad9d18daa4c5c9c5e60)), closes [#24881](https://github.com/bitnami/charts/issues/24881)
+* Update resourcesPreset comments (#24467) ([92e3e8a](https://github.com/bitnami/charts/commit/92e3e8a507326d2a20a8f10ab3e7746a2ec5c554)), closes [#24467](https://github.com/bitnami/charts/issues/24467)
+
+## 2.0.0 (2024-04-02)
+
+* [bitnami/gitea] feat!: :lock: :boom: Improve security defaults (#24646) ([433b920](https://github.com/bitnami/charts/commit/433b920ca3d3f06981bcf8232ab53cd3a684adde)), closes [#24646](https://github.com/bitnami/charts/issues/24646)
+
+## 1.6.4 (2024-03-26)
+
+* [bitnami/gitea] Release 1.6.4 updating components versions (#24663) ([61a37b9](https://github.com/bitnami/charts/commit/61a37b93a2baeaaae9d85b57bf481d82913e4370)), closes [#24663](https://github.com/bitnami/charts/issues/24663)
+
+## 1.6.3 (2024-03-22)
+
+* [bitnami/*] Reorder Chart sections (#24455) ([0cf4048](https://github.com/bitnami/charts/commit/0cf4048e8743f70a9753d460655bd030cbff6824)), closes [#24455](https://github.com/bitnami/charts/issues/24455)
+* [bitnami/gitea] Release 1.6.3 updating components versions (#24615) ([a1402f2](https://github.com/bitnami/charts/commit/a1402f2bf88edb882a639fd1c7116b41e409a5bb)), closes [#24615](https://github.com/bitnami/charts/issues/24615)
+
+## 1.6.2 (2024-03-13)
+
+* [bitnami/gitea] Release 1.6.2 updating components versions (#24383) ([deb36bc](https://github.com/bitnami/charts/commit/deb36bc166bff0ba3b53add75d0526086d75120a)), closes [#24383](https://github.com/bitnami/charts/issues/24383)
+
+## 1.6.1 (2024-03-06)
+
+* [bitnami/gitea] Release 1.6.1 updating components versions (#24195) ([7a4761b](https://github.com/bitnami/charts/commit/7a4761b7950b2527674c0431be19616aa38223ff)), closes [#24195](https://github.com/bitnami/charts/issues/24195)
+
+## 1.6.0 (2024-03-06)
+
+* [bitnami/gitea] feat: :sparkles: :lock: Add automatic adaptation for Openshift restricted-v2 SCC (#2 ([134c85b](https://github.com/bitnami/charts/commit/134c85bd90f25d008f3d46c6f24edad8b36ca758)), closes [#24086](https://github.com/bitnami/charts/issues/24086)
+
+## 1.5.4 (2024-02-26)
+
+* [bitnami/gitea] Release 1.5.4 updating components versions (#23916) ([23e5132](https://github.com/bitnami/charts/commit/23e51328688dfd7a46557cdf9210d2e9854a73e9)), closes [#23916](https://github.com/bitnami/charts/issues/23916)
+
+## 1.5.3 (2024-02-23)
+
+* [bitnami/gitea] Release 1.5.3 updating components versions (#23868) ([a5308b8](https://github.com/bitnami/charts/commit/a5308b8f4cab618db996832adcdc1dc201b6ff0c)), closes [#23868](https://github.com/bitnami/charts/issues/23868)
+
+## 1.5.2 (2024-02-21)
+
+* [bitnami/gitea] Release 1.5.2 updating components versions (#23754) ([c5615e2](https://github.com/bitnami/charts/commit/c5615e23ea1d07d721eba4c376209ef205776c0a)), closes [#23754](https://github.com/bitnami/charts/issues/23754)
+
+## 1.5.1 (2024-02-21)
+
+* [bitnami/gitea] feat: :sparkles: :lock: Add resource preset support (#23453) ([018d8ab](https://github.com/bitnami/charts/commit/018d8abb412a546b478b94630c6dbbfcc05997e7)), closes [#23453](https://github.com/bitnami/charts/issues/23453)
+* [bitnami/gitea] Release 1.5.1 updating components versions (#23650) ([9e9d449](https://github.com/bitnami/charts/commit/9e9d449cf1a7088905489cf34c7ae9f10fd39064)), closes [#23650](https://github.com/bitnami/charts/issues/23650)
+
+## 1.5.0 (2024-02-20)
+
+* [bitnami/*] Bump all versions (#23602) ([b70ee2a](https://github.com/bitnami/charts/commit/b70ee2a30e4dc256bf0ac52928fb2fa7a70f049b)), closes [#23602](https://github.com/bitnami/charts/issues/23602)
+
+## 1.4.9 (2024-02-07)
+
+* [bitnami/gitea] Release 1.4.9 updating components versions (#23271) ([0158b2c](https://github.com/bitnami/charts/commit/0158b2c6682196db2d954e7e12cd283f2dbaa1cf)), closes [#23271](https://github.com/bitnami/charts/issues/23271)
+
+## 1.4.8 (2024-02-07)
+
+* [bitnami/gitea] Release 1.4.8 updating components versions (#23228) ([221bae0](https://github.com/bitnami/charts/commit/221bae067be53a812f8f644b55c8ac93988c4cd3)), closes [#23228](https://github.com/bitnami/charts/issues/23228)
+
+## 1.4.7 (2024-02-02)
+
+* [bitnami/gitea] Release 1.4.7 updating components versions (#23093) ([10194a8](https://github.com/bitnami/charts/commit/10194a8f2e0f275434e36c2800b06b839b91a237)), closes [#23093](https://github.com/bitnami/charts/issues/23093)
+
+## 1.4.6 (2024-02-02)
+
+* [bitnami/gitea] Release 1.4.6 updating components versions (#23041) ([97376fb](https://github.com/bitnami/charts/commit/97376fbfdb2eeb344a712dff327a0cb4ecc032e1)), closes [#23041](https://github.com/bitnami/charts/issues/23041)
+
+## 1.4.5 (2024-01-30)
+
+* [bitnami/gitea] Release 1.4.5 updating components versions (#22921) ([7f596e4](https://github.com/bitnami/charts/commit/7f596e456e7bd0e31a0875ee350048974929d298)), closes [#22921](https://github.com/bitnami/charts/issues/22921)
+
+## 1.4.4 (2024-01-30)
+
+* [bitnami/gitea] Release 1.4.4 updating components versions (#22910) ([f460675](https://github.com/bitnami/charts/commit/f460675b57ae6e4fed2b4a2c81f3a0564e8eb964)), closes [#22910](https://github.com/bitnami/charts/issues/22910)
+
+## 1.4.3 (2024-01-30)
+
+* [bitnami/gitea] Release 1.4.3 updating components versions (#22847) ([41a758d](https://github.com/bitnami/charts/commit/41a758d0973cbf91229f60f597221f180c08baf0)), closes [#22847](https://github.com/bitnami/charts/issues/22847)
+
+## 1.4.2 (2024-01-27)
+
+* [bitnami/gitea] Release 1.4.2 updating components versions (#22776) ([fcaeae9](https://github.com/bitnami/charts/commit/fcaeae9dce7bb08136d2e532b77787a0a7d2c85c)), closes [#22776](https://github.com/bitnami/charts/issues/22776)
+
+## 1.4.1 (2024-01-25)
+
+* [bitnami/*] Move documentation sections from docs.bitnami.com back to the README (#22203) ([7564f36](https://github.com/bitnami/charts/commit/7564f36ca1e95ff30ee686652b7ab8690561a707)), closes [#22203](https://github.com/bitnami/charts/issues/22203)
+* [bitnami/gitea] fix: :bug: Set seLinuxOptions to null for Openshift compatibility (#22591) ([dee04a0](https://github.com/bitnami/charts/commit/dee04a0df2eb4510bda6b0a3bb8c4392de41e16e)), closes [#22591](https://github.com/bitnami/charts/issues/22591)
+
+## 1.4.0 (2024-01-22)
+
+* [bitnami/gitea] fix: :lock: Move service-account token auto-mount to pod declaration (#22403) ([a6d22fe](https://github.com/bitnami/charts/commit/a6d22febb182f28f532e62bbe98b57d643ce1650)), closes [#22403](https://github.com/bitnami/charts/issues/22403)
+
+## 1.3.2 (2024-01-18)
+
+* [bitnami/gitea] Release 1.3.2 updating components versions (#22274) ([72aff85](https://github.com/bitnami/charts/commit/72aff85c8e6f308efdb8769f7e1f84d06b46dd57)), closes [#22274](https://github.com/bitnami/charts/issues/22274)
+
+## 1.3.1 (2024-01-17)
+
+* [bitnami/gitea] Release 1.3.1 updating components versions (#22241) ([5a49422](https://github.com/bitnami/charts/commit/5a49422c05c4504053365d4a0849e8254d758001)), closes [#22241](https://github.com/bitnami/charts/issues/22241)
+
+## 1.3.0 (2024-01-16)
+
+* [bitnami/gitea] fix: :lock: Improve podSecurityContext and containerSecurityContext with essential s ([8e622af](https://github.com/bitnami/charts/commit/8e622af5f8323487c1be2488ec1d937142674ca5)), closes [#22122](https://github.com/bitnami/charts/issues/22122)
+
+## 1.2.11 (2024-01-12)
+
+* [bitnami/*] Fix ref links (in comments) (#21822) ([e4fa296](https://github.com/bitnami/charts/commit/e4fa296106b225cf8c82445727c675c7c725e380)), closes [#21822](https://github.com/bitnami/charts/issues/21822)
+* [bitnami/gitea] fix: :lock: Do not automount the service account token unless necessary (#22041) ([72985fc](https://github.com/bitnami/charts/commit/72985fc695d979575a9212c53e836d97b0242856)), closes [#22041](https://github.com/bitnami/charts/issues/22041)
+
+## 1.2.10 (2024-01-10)
+
+* [bitnami/*] Fix docs.bitnami.com broken links (#21901) ([f35506d](https://github.com/bitnami/charts/commit/f35506d2dadee4f097986e7792df1f53ab215b5d)), closes [#21901](https://github.com/bitnami/charts/issues/21901)
+* [bitnami/*] Update copyright: Year and company (#21815) ([6c4bf75](https://github.com/bitnami/charts/commit/6c4bf75dec58fc7c9aee9f089777b1a858c17d5b)), closes [#21815](https://github.com/bitnami/charts/issues/21815)
+* [bitnami/gitea] Release 1.2.10 updating components versions (#21941) ([0ace7f4](https://github.com/bitnami/charts/commit/0ace7f4a7fd2cc82042e8c0e978d0a5e14128b17)), closes [#21941](https://github.com/bitnami/charts/issues/21941)
+
+## 1.2.9 (2023-12-21)
+
+* [bitnami/gitea] Release 1.2.9 updating components versions (#21715) ([245cc37](https://github.com/bitnami/charts/commit/245cc37f8e89b54df838e7c106cf17185d589b4e)), closes [#21715](https://github.com/bitnami/charts/issues/21715)
+
+## 1.2.8 (2023-12-12)
+
+* [bitnami/gitea] Release 1.2.8 updating components versions (#21536) ([93feee7](https://github.com/bitnami/charts/commit/93feee74fcef9afac4d99108cc3c0ac9b68d3da5)), closes [#21536](https://github.com/bitnami/charts/issues/21536)
+
+## 1.2.7 (2023-12-07)
+
+* [bitnami/gitea] Release 1.2.7 updating components versions (#21446) ([f030fea](https://github.com/bitnami/charts/commit/f030fea9a0747a2b0e1ba880fa6970bdeda65031)), closes [#21446](https://github.com/bitnami/charts/issues/21446)
+
+## 1.2.6 (2023-11-26)
+
+* [bitnami/gitea] Release 1.2.6 updating components versions (#21259) ([dc420cd](https://github.com/bitnami/charts/commit/dc420cdfacd467864c0a23b17fee6d91315aad38)), closes [#21259](https://github.com/bitnami/charts/issues/21259)
+
+## 1.2.5 (2023-11-23)
+
+* [bitnami/*] Rename solutions to "Bitnami package for ..." (#21038) ([b82f979](https://github.com/bitnami/charts/commit/b82f979e4fb63423fe6e2192c946d09d79c944fc)), closes [#21038](https://github.com/bitnami/charts/issues/21038)
+* [bitnami/gitea] Release 1.2.5 (#21220) ([c242f29](https://github.com/bitnami/charts/commit/c242f29f5a19d869ce0378395915b465ff6170db)), closes [#21220](https://github.com/bitnami/charts/issues/21220)
+
+## 1.2.4 (2023-11-18)
+
+* [bitnami/*] Remove relative links to non-README sections, add verification for that and update TL;DR ([1103633](https://github.com/bitnami/charts/commit/11036334d82df0490aa4abdb591543cab6cf7d7f)), closes [#20967](https://github.com/bitnami/charts/issues/20967)
+* [bitnami/gitea] Release 1.2.4 updating components versions (#21048) ([8adc26c](https://github.com/bitnami/charts/commit/8adc26c7e034fbd5fc564f48f6a8ecb7d3a8fee2)), closes [#21048](https://github.com/bitnami/charts/issues/21048)
+
+## 1.2.3 (2023-11-09)
+
+* [bitnami/gitea] Release 1.2.3 updating components versions (#20859) ([79dc246](https://github.com/bitnami/charts/commit/79dc246a8da5cec23b2d09b91205276385949eef)), closes [#20859](https://github.com/bitnami/charts/issues/20859)
+
+## 1.2.2 (2023-11-09)
+
+* [bitnami/gitea] Release 1.2.2 updating components versions (#20833) ([de57cec](https://github.com/bitnami/charts/commit/de57cecee80681ddf1afb86a699174a0d0babb6e)), closes [#20833](https://github.com/bitnami/charts/issues/20833)
+
+## 1.2.1 (2023-11-08)
+
+* [bitnami/gitea] Release 1.2.1 updating components versions (#20729) ([7b504d6](https://github.com/bitnami/charts/commit/7b504d65d8e3833a441f35030a168b441737ce38)), closes [#20729](https://github.com/bitnami/charts/issues/20729)
+
+## 1.2.0 (2023-11-07)
+
+* [bitnami/gitea] Remove HA support (#20526) ([21469f5](https://github.com/bitnami/charts/commit/21469f5fe69c6a5c5718434c544e8acb46772b6b)), closes [#20526](https://github.com/bitnami/charts/issues/20526)
+
+## 1.1.0 (2023-10-31)
+
+* [bitnami/*] Rename VMware Application Catalog (#20361) ([3acc734](https://github.com/bitnami/charts/commit/3acc73472beb6fb56c4d99f929061001205bc57e)), closes [#20361](https://github.com/bitnami/charts/issues/20361)
+* [bitnami/*] Skip image's tag in the README files of the Bitnami Charts (#19841) ([bb9a01b](https://github.com/bitnami/charts/commit/bb9a01b65911c87e48318db922cc05eb42785e42)), closes [#19841](https://github.com/bitnami/charts/issues/19841)
+* [bitnami/*] Standardize documentation (#19835) ([af5f753](https://github.com/bitnami/charts/commit/af5f7530c1bc8c5ded53a6c4f7b8f384ac1804f2)), closes [#19835](https://github.com/bitnami/charts/issues/19835)
+* [bitnami/gitea] feat: :sparkles: Add support for PSA restricted policy (#20442) ([5fd7a29](https://github.com/bitnami/charts/commit/5fd7a2961230a5ddaa8a3f27319ecd7402496d6b)), closes [#20442](https://github.com/bitnami/charts/issues/20442)
+
+## 1.0.6 (2023-10-12)
+
+* [bitnami/gitea] Release 1.0.6 (#20131) ([2a46c21](https://github.com/bitnami/charts/commit/2a46c212219d238520f87ab4f9f2753b69031c4b)), closes [#20131](https://github.com/bitnami/charts/issues/20131)
+
+## 1.0.5 (2023-10-11)
+
+* [bitnami/gitea] Release 1.0.5 (#20039) ([9f02182](https://github.com/bitnami/charts/commit/9f0218230912f24a9ab1395d304942bd683665bb)), closes [#20039](https://github.com/bitnami/charts/issues/20039)
+
+## 1.0.4 (2023-10-09)
+
+* [bitnami/gitea] Release 1.0.4 (#19908) ([4a2e661](https://github.com/bitnami/charts/commit/4a2e6612bd36298c9181477e8c7bca1fdf937763)), closes [#19908](https://github.com/bitnami/charts/issues/19908)
+
+## 1.0.3 (2023-10-09)
+
+* [bitnami/*] Update Helm charts prerequisites (#19745) ([eb755dd](https://github.com/bitnami/charts/commit/eb755dd36a4dd3cf6635be8e0598f9a7f4c4a554)), closes [#19745](https://github.com/bitnami/charts/issues/19745)
+* [bitnami/gitea] Release 1.0.3 (#19823) ([5229cef](https://github.com/bitnami/charts/commit/5229cef0e8901b4edb23296b6bab21bafedb3731)), closes [#19823](https://github.com/bitnami/charts/issues/19823)
+
+## 1.0.2 (2023-10-05)
+
+* [bitnami/gitea] Release 1.0.2 (#19764) ([5b7faaf](https://github.com/bitnami/charts/commit/5b7faaf16e311d88c9bfaf2a4737cbfc977afdf8)), closes [#19764](https://github.com/bitnami/charts/issues/19764)
+
+## 1.0.1 (2023-10-03)
+
+* [bitnami/gitea] Release 1.0.1 (#19709) ([ff957f7](https://github.com/bitnami/charts/commit/ff957f716a29aa59563fcd6627e5a5a3fa13cc7d)), closes [#19709](https://github.com/bitnami/charts/issues/19709)
+
+## 1.0.0 (2023-09-29)
+
+* [bitnami/gitea] Update dependencies (#19613) ([1bb3840](https://github.com/bitnami/charts/commit/1bb3840f49b4a511e790b95a1946072f9777f95a)), closes [#19613](https://github.com/bitnami/charts/issues/19613)
+
+## 0.4.3 (2023-09-26)
+
+* [bitnami/*] Update readme files (#19277) ([e56aeb2](https://github.com/bitnami/charts/commit/e56aeb2fbfbf5b6e42375db48cc7ae1ef1c3a823)), closes [#19277](https://github.com/bitnami/charts/issues/19277)
+* [bitnami/gitea] Release 0.4.3 (#19544) ([59e9d48](https://github.com/bitnami/charts/commit/59e9d487e8ca9609b58cc1f447b0440251eebfbd)), closes [#19544](https://github.com/bitnami/charts/issues/19544)
+* Autogenerate schema files (#19194) ([a2c2090](https://github.com/bitnami/charts/commit/a2c2090b5ac97f47b745c8028c6452bf99739772)), closes [#19194](https://github.com/bitnami/charts/issues/19194)
+* Revert "Autogenerate schema files (#19194)" (#19335) ([73d80be](https://github.com/bitnami/charts/commit/73d80be525c88fb4b8a54451a55acd506e337062)), closes [#19194](https://github.com/bitnami/charts/issues/19194) [#19335](https://github.com/bitnami/charts/issues/19335)
+
+## 0.4.2 (2023-09-08)
+
+* [bitnami/gitea] Release 0.4.2 (#19198) ([b20e40f](https://github.com/bitnami/charts/commit/b20e40f55f1c43458c1675d9772c6cb4778e3d2c)), closes [#19198](https://github.com/bitnami/charts/issues/19198)
+
+## 0.4.1 (2023-09-07)
+
+* [bitnami/gitea: Use merge helper]: (#19042) ([6be3273](https://github.com/bitnami/charts/commit/6be3273e1288c6f88c84b444f9d23415616994c0)), closes [#19042](https://github.com/bitnami/charts/issues/19042)
+
+## 0.4.0 (2023-08-24)
+
+* [bitnami/gitea] Support for customizing standard labels (#18486) ([91b2b09](https://github.com/bitnami/charts/commit/91b2b0981c65b4a708e044ebb2cdd660473d3605)), closes [#18486](https://github.com/bitnami/charts/issues/18486)
+
+## 0.3.9 (2023-08-21)
+
+* [bitnami/gitea] Release 0.3.9 (#18763) ([de2acba](https://github.com/bitnami/charts/commit/de2acbaab8a340993d1eff39b7c8628458f4ae46)), closes [#18763](https://github.com/bitnami/charts/issues/18763)
+
+## 0.3.8 (2023-08-17)
+
+* [bitnami/gitea] Release 0.3.8 (#18520) ([f429486](https://github.com/bitnami/charts/commit/f4294866b78693b02f4fa30c30f61258ed66c90e)), closes [#18520](https://github.com/bitnami/charts/issues/18520)
+
+## 0.3.7 (2023-07-30)
+
+* [bitnami/gitea] Release 0.3.7 (#18032) ([b0fb130](https://github.com/bitnami/charts/commit/b0fb1301b8b273e2181867b6c21d30784ad0528e)), closes [#18032](https://github.com/bitnami/charts/issues/18032)
+
+## 0.3.6 (2023-07-15)
+
+* [bitnami/gitea] Release 0 (#17607) ([e4ea569](https://github.com/bitnami/charts/commit/e4ea569fbad3e4f13cbaaff331c996e6f8c8ca4a)), closes [#17607](https://github.com/bitnami/charts/issues/17607)
+
+## 0.3.5 (2023-07-04)
+
+* [bitnami/gitea] Release 0.3.5 (#17480) ([14ab5f6](https://github.com/bitnami/charts/commit/14ab5f6a7c66f9d2e17e9da1aaed9049bf72c30b)), closes [#17480](https://github.com/bitnami/charts/issues/17480)
+* Add copyright header (#17300) ([da68be8](https://github.com/bitnami/charts/commit/da68be8e951225133c7dfb572d5101ca3d61c5ae)), closes [#17300](https://github.com/bitnami/charts/issues/17300)
+
+## 0.3.4 (2023-06-22)
+
+* [bitnami/gitea] Release 0.3.4 (#17312) ([84915f5](https://github.com/bitnami/charts/commit/84915f503a65a1e405b6ea71fc5d9c4573fd43fd)), closes [#17312](https://github.com/bitnami/charts/issues/17312)
+* Update charts readme (#17217) ([31b3c0a](https://github.com/bitnami/charts/commit/31b3c0afd968ff4429107e34101f7509e6a0e913)), closes [#17217](https://github.com/bitnami/charts/issues/17217)
+
+## 0.3.3 (2023-06-20)
+
+* [bitnami/*] Change copyright section in READMEs (#17006) ([ef986a1](https://github.com/bitnami/charts/commit/ef986a1605241102b3dcafe9fd8089e6fc1201ad)), closes [#17006](https://github.com/bitnami/charts/issues/17006)
+* [bitnami/gitea] Release 0.3.3 (#17206) ([6d8fe4b](https://github.com/bitnami/charts/commit/6d8fe4b7a083ac12003dff2ed2e2b9ba3b8f4806)), closes [#17206](https://github.com/bitnami/charts/issues/17206)
+* [bitnami/several] Change copyright section in READMEs (#16989) ([5b6a5cf](https://github.com/bitnami/charts/commit/5b6a5cfb7625a751848a2e5cd796bd7278f406ca)), closes [#16989](https://github.com/bitnami/charts/issues/16989)
+
+## 0.3.2 (2023-05-21)
+
+* [bitnami/gitea] Release 0.3.2 (#16765) ([76bfbaa](https://github.com/bitnami/charts/commit/76bfbaa32d7d198f84ec0bbb9c23996722d1bea3)), closes [#16765](https://github.com/bitnami/charts/issues/16765)
+
+## 0.3.1 (2023-05-16)
+
+* [bitnami/gitea] Release 0.3.1 (#16685) ([ec2453f](https://github.com/bitnami/charts/commit/ec2453f64953c298a20af7ccf9734b1ebb5b0838)), closes [#16685](https://github.com/bitnami/charts/issues/16685)
+* Add wording for enterprise page (#16560) ([8f22774](https://github.com/bitnami/charts/commit/8f2277440b976d52785ba9149762ad8620a73d1f)), closes [#16560](https://github.com/bitnami/charts/issues/16560)
+
+## 0.3.0 (2023-05-09)
+
+* [bitnami/several] Adapt Chart.yaml to set desired OCI annotations (#16546) ([fc9b18f](https://github.com/bitnami/charts/commit/fc9b18f2e98805d4df629acbcde696f44f973344)), closes [#16546](https://github.com/bitnami/charts/issues/16546)
+
+## 0.2.3 (2023-05-09)
+
+* [bitnami/gitea] Release 0.2.3 (#16451) ([22a2fc7](https://github.com/bitnami/charts/commit/22a2fc7863dd5c8ba30c1cc0fcd1605f293ef0af)), closes [#16451](https://github.com/bitnami/charts/issues/16451)
+
+## 0.2.2 (2023-05-03)
+
+* [bitnami/gitea] Release 0.2.2 (#16368) ([cff0400](https://github.com/bitnami/charts/commit/cff040072ed216a1ac2918890c756ed991defe4f)), closes [#16368](https://github.com/bitnami/charts/issues/16368)
+
+## 0.2.1 (2023-04-29)
+
+* [bitnami/gitea] Release 0.2.1 (#16270) ([eb5f298](https://github.com/bitnami/charts/commit/eb5f2987646cb994ba5236c5b7a452c261b9f641)), closes [#16270](https://github.com/bitnami/charts/issues/16270)
+
+## 0.2.0 (2023-04-20)
+
+* [bitnami/*] Make Helm charts 100% OCI (#15998) ([8841510](https://github.com/bitnami/charts/commit/884151035efcbf2e1b3206e7def85511073fb57d)), closes [#15998](https://github.com/bitnami/charts/issues/15998)
+
+## 0.1.19 (2023-04-13)
+
+* [bitnami/gitea] Release 0.1.19 (#16039) ([bef8495](https://github.com/bitnami/charts/commit/bef8495d4f840078bc772536c3b663139d6a387d)), closes [#16039](https://github.com/bitnami/charts/issues/16039)
+
+## 0.1.18 (2023-04-01)
+
+* [bitnami/gitea] Release 0.1.18 (#15849) ([471df7f](https://github.com/bitnami/charts/commit/471df7fbd1bb6c91c72cb0b30d0e3153d148a3ba)), closes [#15849](https://github.com/bitnami/charts/issues/15849)
+
+## 0.1.17 (2023-03-30)
+
+* [bitnami/gitea] Release 0.1.17 (#15815) ([c2334c8](https://github.com/bitnami/charts/commit/c2334c8104e87c1f642c6a26537331a0b1576454)), closes [#15815](https://github.com/bitnami/charts/issues/15815)
+
+## 0.1.16 (2023-03-29)
+
+* [bitnami/gitea] Release 0.1.16 (#15789) ([1ccec51](https://github.com/bitnami/charts/commit/1ccec51b06f6ea4dff63eaa148878582f08684a1)), closes [#15789](https://github.com/bitnami/charts/issues/15789)
+
+## 0.1.15 (2023-03-18)
+
+* [bitnami/gitea] Release 0.1.15 (#15579) ([72c25df](https://github.com/bitnami/charts/commit/72c25df183b7d79f8186338b56176769cf97c11b)), closes [#15579](https://github.com/bitnami/charts/issues/15579)
+
+## 0.1.14 (2023-03-08)
+
+* [bitnami/charts] Apply linter to README files (#15357) ([0e29e60](https://github.com/bitnami/charts/commit/0e29e600d3adc8b1b46e506eccb3decfab3b4e63)), closes [#15357](https://github.com/bitnami/charts/issues/15357)
+* [bitnami/gitea] Release 0.1.14 (#15367) ([0323e25](https://github.com/bitnami/charts/commit/0323e25b36170a944a8f8a2b13ad0f307deeb025)), closes [#15367](https://github.com/bitnami/charts/issues/15367)
+
+## 0.1.13 (2023-03-01)
+
+* [bitnami/gitea] Release 0.1.13 (#15236) ([af18f38](https://github.com/bitnami/charts/commit/af18f380ed83ba269392c5310c37b437b68f870b)), closes [#15236](https://github.com/bitnami/charts/issues/15236)
+
+## 0.1.12 (2023-02-23)
+
+* [bitnami/gitea] Release 0.1.12 (#15113) ([eec101c](https://github.com/bitnami/charts/commit/eec101c8e73667162c524ad959519d5bd07bb059)), closes [#15113](https://github.com/bitnami/charts/issues/15113)
+
+## 0.1.11 (2023-02-20)
+
+* [bitnami/gitea] Release 0.1.11 (#15059) ([fb797bc](https://github.com/bitnami/charts/commit/fb797bcbd95a4b95e9de2269887b34cd711153dc)), closes [#15059](https://github.com/bitnami/charts/issues/15059)
+
+## 0.1.10 (2023-02-17)
+
+* [bitnami/*] Fix markdown linter issues (#14874) ([a51e0e8](https://github.com/bitnami/charts/commit/a51e0e8d35495b907f3e70dd2f8e7c3bcbf4166a)), closes [#14874](https://github.com/bitnami/charts/issues/14874)
+* [bitnami/*] Fix markdown linter issues 2 (#14890) ([aa96572](https://github.com/bitnami/charts/commit/aa9657237ee8df4a46db0d7fdf8a23230dd6902a)), closes [#14890](https://github.com/bitnami/charts/issues/14890)
+* [bitnami/*] Remove unexpected extra spaces (#14873) ([c97c714](https://github.com/bitnami/charts/commit/c97c714887380d47eae7bfeff316bf01595ecd1d)), closes [#14873](https://github.com/bitnami/charts/issues/14873)
+* [bitnami/gitea] Release 0.1.10 (#14955) ([40a7fe8](https://github.com/bitnami/charts/commit/40a7fe8a19ce8c657ceb4ded0e916cad7c5c3c67)), closes [#14955](https://github.com/bitnami/charts/issues/14955)
+
+## 0.1.9 (2023-02-02)
+
+* [bitnami/*] Change copyright date (#14682) ([add4ec7](https://github.com/bitnami/charts/commit/add4ec701108ac36ed4de2dffbdf407a0d091067)), closes [#14682](https://github.com/bitnami/charts/issues/14682)
+* [bitnami/gitea] Don't regenerate self-signed certs on upgrade (#14622) ([858e766](https://github.com/bitnami/charts/commit/858e766b1e69fbf0b3b50463c292f8ccb5caecea)), closes [#14622](https://github.com/bitnami/charts/issues/14622)
+
+## 0.1.8 (2023-01-24)
+
+* [bitnami/gitea] Release 0.1.8 (#14506) ([dd230b3](https://github.com/bitnami/charts/commit/dd230b354fb853f7a7fdb00e1df3e4956d934a42)), closes [#14506](https://github.com/bitnami/charts/issues/14506)
+
+## 0.1.7 (2023-01-23)
+
+* [bitnami/*] Unify READMEs (#14472) ([2064fb8](https://github.com/bitnami/charts/commit/2064fb8dcc78a845cdede8211af8c3cc52551161)), closes [#14472](https://github.com/bitnami/charts/issues/14472)
+* [bitnami/gitea] Release 0.1.7 (#14458) ([b043d8e](https://github.com/bitnami/charts/commit/b043d8ef4d51e44cc303ee72de6981b5bf8d4ff0)), closes [#14458](https://github.com/bitnami/charts/issues/14458)
+
+## 0.1.6 (2023-01-18)
+
+* [bitnami/*] Add license annotation and remove obsolete engine parameter (#14293) ([da2a794](https://github.com/bitnami/charts/commit/da2a7943bae95b6e9b5b4ed972c15e990b69fdb0)), closes [#14293](https://github.com/bitnami/charts/issues/14293)
+* [bitnami/*] Change licenses annotation format (#14377) ([0ab7608](https://github.com/bitnami/charts/commit/0ab760862c660fcc78cffadf8e1d8cdd70881473)), closes [#14377](https://github.com/bitnami/charts/issues/14377)
+* [bitnami/gitea] Release 0.1.6 (#14413) ([01ed0f5](https://github.com/bitnami/charts/commit/01ed0f590e9eb3ee435f979447fdaf48c94c4b5d)), closes [#14413](https://github.com/bitnami/charts/issues/14413)
+
+## 0.1.5 (2023-01-11)
+
+* [bitnami/gitea] Bump version chart to force new publish (#14288) ([c34b2c9](https://github.com/bitnami/charts/commit/c34b2c941a4ea029e8ceeb44b2d027c27549ce0a)), closes [#14288](https://github.com/bitnami/charts/issues/14288)
+
+## 0.1.4 (2023-01-11)
+
+* [bitnami/gitea] Release 0.1.4 (#14284) ([126c1ea](https://github.com/bitnami/charts/commit/126c1ea339577f2db4035a6b7de55e89ea950611)), closes [#14284](https://github.com/bitnami/charts/issues/14284)
+
+## 0.1.3 (2022-12-30)
+
+* [bitnami/gitea] Release 0.1.3 (#14136) ([8c78326](https://github.com/bitnami/charts/commit/8c783264c6e635a5ac8fb75caf331babf5b7f9e0)), closes [#14136](https://github.com/bitnami/charts/issues/14136)
+
+## 0.1.2 (2022-12-22)
+
+* [bitnami/gitea] Release 0.1.2 (#14066) ([1e92a49](https://github.com/bitnami/charts/commit/1e92a496bfecd923624ecf481e7e6cc0857e52f4)), closes [#14066](https://github.com/bitnami/charts/issues/14066)
+
+## 0.1.1 (2022-11-28)
+
+* [bitnami/gitea] Release 0.1.1 (#13721) ([f098e2b](https://github.com/bitnami/charts/commit/f098e2ba71aa824f267fb32509b123aa7961a118)), closes [#13721](https://github.com/bitnami/charts/issues/13721)
+
+## 0.1.0 (2022-11-27)
+
+* [bitnami/gitea] feat: :tada: Add chart (#13690) ([4803114](https://github.com/bitnami/charts/commit/4803114ff9cfa38ca4d5b7ca3a238b4ccda34b5b)), closes [#13690](https://github.com/bitnami/charts/issues/13690) [#13683](https://github.com/bitnami/charts/issues/13683) [#13685](https://github.com/bitnami/charts/issues/13685) [#13679](https://github.com/bitnami/charts/issues/13679) [#13684](https://github.com/bitnami/charts/issues/13684) [#13689](https://github.com/bitnami/charts/issues/13689) [#13691](https://github.com/bitnami/charts/issues/13691) [#13692](https://github.com/bitnami/charts/issues/13692) [#13593](https://github.com/bitnami/charts/issues/13593) [#13646](https://github.com/bitnami/charts/issues/13646) [#13695](https://github.com/bitnami/charts/issues/13695) [#13636](https://github.com/bitnami/charts/issues/13636)
diff --git a/apps/gitea/base/Chart.lock b/apps/gitea/base/Chart.lock
new file mode 100644
index 0000000..7158c17
--- /dev/null
+++ b/apps/gitea/base/Chart.lock
@@ -0,0 +1,9 @@
+dependencies:
+- name: postgresql
+ repository: oci://registry-1.docker.io/bitnamicharts
+ version: 15.5.16
+- name: common
+ repository: oci://registry-1.docker.io/bitnamicharts
+ version: 2.20.4
+digest: sha256:5c93d00902a9a347213e2cd1598f037c662eb189713320b1ea327b3715208c58
+generated: "2024-07-15T08:32:04.304332975Z"
diff --git a/apps/gitea/base/Chart.yaml b/apps/gitea/base/Chart.yaml
new file mode 100644
index 0000000..b3e3e43
--- /dev/null
+++ b/apps/gitea/base/Chart.yaml
@@ -0,0 +1,40 @@
+# Copyright Broadcom, Inc. All Rights Reserved.
+# SPDX-License-Identifier: APACHE-2.0
+
+annotations:
+ category: Analytics
+ licenses: Apache-2.0
+ images: |
+ - name: gitea
+ image: docker.io/bitnami/gitea:1.22.1-debian-12-r4
+ - name: os-shell
+ image: docker.io/bitnami/os-shell:12-debian-12-r25
+apiVersion: v2
+appVersion: 1.22.1
+dependencies:
+- condition: postgresql.enabled
+ name: postgresql
+ repository: oci://registry-1.docker.io/bitnamicharts
+ version: 15.x.x
+- name: common
+ repository: oci://registry-1.docker.io/bitnamicharts
+ tags:
+ - bitnami-common
+ version: 2.x.x
+description: Gitea is a lightweight code hosting solution. Written in Go, features low resource consumption, easy upgrades and multiple databases.
+home: https://bitnami.com
+icon: https://bitnami.com/assets/stacks/gitea/img/gitea-stack-220x234.png
+keywords:
+- gitea
+- analytics
+- http
+- web
+- application
+- php
+maintainers:
+- name: Broadcom, Inc. All Rights Reserved.
+ url: https://github.com/bitnami/charts
+name: gitea
+sources:
+- https://github.com/bitnami/charts/tree/main/bitnami/gitea
+version: 2.3.13
diff --git a/apps/gitea/base/README.md b/apps/gitea/base/README.md
new file mode 100644
index 0000000..03b8c07
--- /dev/null
+++ b/apps/gitea/base/README.md
@@ -0,0 +1,392 @@
+
+
+# Bitnami package for Gitea
+
+Gitea is a lightweight code hosting solution. Written in Go, features low resource consumption, easy upgrades and multiple databases.
+
+[Overview of Gitea](https://gitea.io/)
+
+Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
+
+## TL;DR
+
+```console
+helm install my-release oci://registry-1.docker.io/bitnamicharts/gitea
+```
+
+Looking to use Gitea in production? Try [VMware Tanzu Application Catalog](https://bitnami.com/enterprise), the commercial edition of the Bitnami catalog.
+
+## Introduction
+
+This chart bootstraps a [Gitea](https://github.com/bitnami/containers/tree/main/bitnami/gitea) deployment on a [Kubernetes](https://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
+
+It also packages the [Bitnami PostgreSQL chart](https://github.com/bitnami/charts/tree/main/bitnami/postgresql) which is required for bootstrapping a PostgreSQL deployment as a database for the Gitea application.
+
+Bitnami charts can be used with [Kubeapps](https://kubeapps.dev/) for deployment and management of Helm Charts in clusters.
+
+## Prerequisites
+
+- Kubernetes 1.23+
+- Helm 3.8.0+
+- PV provisioner support in the underlying infrastructure
+
+## Installing the Chart
+
+To install the chart with the release name `my-release`:
+
+```console
+helm install my-release oci://REGISTRY_NAME/REPOSITORY_NAME/gitea
+```
+
+> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`.
+
+The command deploys Gitea on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation.
+
+> **Tip**: List all releases using `helm list`
+
+## Configuration and installation details
+
+### Resource requests and limits
+
+Bitnami charts allow setting resource requests and limits for all containers inside the chart deployment. These are inside the `resources` value (check parameter table). Setting requests is essential for production workloads and these should be adapted to your specific use case.
+
+To make this process easier, the chart contains the `resourcesPreset` values, which automatically sets the `resources` section according to different presets. Check these presets in [the bitnami/common chart](https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15). However, in production workloads using `resourcePreset` is discouraged as it may not fully adapt to your specific needs. Find more information on container resource management in the [official Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/).
+
+### [Rolling VS Immutable tags](https://docs.vmware.com/en/VMware-Tanzu-Application-Catalog/services/tutorials/GUID-understand-rolling-tags-containers-index.html)
+
+It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image.
+
+Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.
+
+### Image
+
+The `image` parameter allows specifying which image will be pulled for the chart.
+
+#### Private registry
+
+If you configure the `image` value to one in a private registry, you will need to [specify an image pull secret](https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod).
+
+1. Manually create image pull secret(s) in the namespace. See [this YAML example reference](https://kubernetes.io/docs/concepts/containers/images/#creating-a-secret-with-a-docker-config). Consult your image registry's documentation about getting the appropriate secret.
+2. Note that the `imagePullSecrets` configuration value cannot currently be passed to helm using the `--set` parameter, so you must supply these using a `values.yaml` file, such as:
+
+ ```yaml
+ imagePullSecrets:
+ - name: SECRET_NAME
+ ```
+
+3. Install the chart
+
+### Setting Pod's affinity
+
+This chart allows you to set your custom affinity using the `affinity` parameter. Find more information about Pod's affinity in the [kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity).
+
+As an alternative, you can use of the preset configurations for pod affinity, pod anti-affinity, and node affinity available at the [bitnami/common](https://github.com/bitnami/charts/tree/main/bitnami/common#affinities) chart. To do so, set the `podAffinityPreset`, `podAntiAffinityPreset`, or `nodeAffinityPreset` parameters.
+
+## Persistence
+
+The [Bitnami Gitea](https://github.com/bitnami/containers/tree/main/bitnami/gitea) image stores the Gitea data and configurations at the `/bitnami/gitea` path of the container.
+
+Persistent Volume Claims are used to keep the data across deployments. This is known to work in GCE, AWS, and minikube.
+See the [Parameters](#parameters) section to configure the PVC or to disable persistence.
+
+### Existing PersistentVolumeClaim
+
+1. Create the PersistentVolume
+2. Create the PersistentVolumeClaim
+3. Install the chart
+
+```console
+helm install my-release --set persistence.existingClaim=PVC_NAME oci://REGISTRY_NAME/REPOSITORY_NAME/gitea
+```
+
+> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`.
+
+### Host path
+
+#### System compatibility
+
+- The local filesystem accessibility to a container in a pod with `hostPath` has been tested on OSX/MacOS with xhyve, and Linux with VirtualBox.
+- Windows has not been tested with the supported VM drivers. Minikube does however officially support [Mounting Host Folders](https://minikube.sigs.k8s.io/docs/handbook/mount/) per pod. Or you may manually sync your container whenever host files are changed with tools like [docker-sync](https://github.com/EugenMayer/docker-sync) or [docker-bg-sync](https://github.com/cweagans/docker-bg-sync).
+
+#### Mounting steps
+
+1. The specified `hostPath` directory must already exist (create one if it does not).
+2. Install the chart
+
+ ```console
+ helm install my-release --set persistence.hostPath=/PATH/TO/HOST/MOUNT oci://REGISTRY_NAME/REPOSITORY_NAME/gitea
+ ```
+
+ > Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`.
+
+ This will mount the `gitea-data` volume into the `hostPath` directory. The site data will be persisted if the mount path contains valid data, else the site data will be initialized at first launch.
+3. Because the container cannot control the host machine's directory permissions, you must set the Gitea file directory permissions yourself
+
+## Parameters
+
+### Global parameters
+
+| Name | Description | Value |
+| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
+| `global.imageRegistry` | Global Docker image registry | `""` |
+| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` |
+| `global.storageClass` | Global StorageClass for Persistent Volume(s) | `""` |
+| `global.compatibility.openshift.adaptSecurityContext` | Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation) | `auto` |
+
+### Common parameters
+
+| Name | Description | Value |
+| ------------------- | --------------------------------------------------------------------------------------------------------- | ----- |
+| `kubeVersion` | Force target Kubernetes version (using Helm capabilities if not set) | `""` |
+| `nameOverride` | String to partially override gitea.fullname template (will maintain the release name) | `""` |
+| `fullnameOverride` | String to fully override gitea.fullname template | `""` |
+| `namespaceOverride` | String to fully override common.names.namespace | `""` |
+| `commonAnnotations` | Common annotations to add to all Gitea resources (sub-charts are not considered). Evaluated as a template | `{}` |
+| `commonLabels` | Common labels to add to all Gitea resources (sub-charts are not considered). Evaluated as a template | `{}` |
+| `extraDeploy` | Array of extra objects to deploy with the release (evaluated as a template). | `[]` |
+
+### Gitea parameters
+
+| Name | Description | Value |
+| --------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
+| `image.registry` | Gitea image registry | `REGISTRY_NAME` |
+| `image.repository` | Gitea Image name | `REPOSITORY_NAME/gitea` |
+| `image.digest` | Gitea image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` |
+| `image.pullPolicy` | Gitea image pull policy | `IfNotPresent` |
+| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` |
+| `image.debug` | Specify if debug logs should be enabled | `false` |
+| `adminUsername` | User of the application | `bn_user` |
+| `adminPassword` | Application password | `""` |
+| `adminEmail` | Admin email | `user@example.com` |
+| `appName` | Gitea application name | `example` |
+| `runMode` | Gitea application host | `prod` |
+| `exposeSSH` | Make the SSH server accesible | `true` |
+| `rootURL` | UI Root URL (for link generation) | `""` |
+| `command` | Override default container command (useful when using custom images) | `[]` |
+| `args` | Override default container args (useful when using custom images) | `[]` |
+| `updateStrategy.type` | Update strategy - only really applicable for deployments with RWO PVs attached | `RollingUpdate` |
+| `priorityClassName` | Gitea pods' priorityClassName | `""` |
+| `schedulerName` | Name of the k8s scheduler (other than default) | `""` |
+| `topologySpreadConstraints` | Topology Spread Constraints for pod assignment | `[]` |
+| `automountServiceAccountToken` | Mount Service Account token in pod | `false` |
+| `hostAliases` | Add deployment host aliases | `[]` |
+| `extraEnvVars` | Extra environment variables | `[]` |
+| `extraEnvVarsCM` | ConfigMap containing extra env vars | `""` |
+| `extraEnvVarsSecret` | Secret containing extra env vars (in case of sensitive data) | `""` |
+| `extraVolumes` | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts` | `[]` |
+| `extraVolumeMounts` | Array of extra volume mounts to be added to the container (evaluated as template). Normally used with `extraVolumes`. | `[]` |
+| `initContainers` | Add additional init containers to the pod (evaluated as a template) | `[]` |
+| `pdb.create` | Enable/disable a Pod Disruption Budget creation | `true` |
+| `pdb.minAvailable` | Minimum number/percentage of pods that should remain scheduled | `""` |
+| `pdb.maxUnavailable` | Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty. | `""` |
+| `sidecars` | Attach additional containers to the pod (evaluated as a template) | `[]` |
+| `tolerations` | Tolerations for pod assignment | `[]` |
+| `existingSecret` | Name of a secret with the application password | `""` |
+| `existingSecretKey` | Key inside the existing secret containing the password | `admin-password` |
+| `smtpHost` | SMTP host | `""` |
+| `smtpPort` | SMTP port | `""` |
+| `smtpUser` | SMTP user | `""` |
+| `smtpPassword` | SMTP password | `""` |
+| `smtpExistingSecret` | The name of an existing secret with SMTP credentials | `""` |
+| `containerPorts` | Container ports | `{}` |
+| `extraContainerPorts` | Optionally specify extra list of additional ports for Gitea container(s) | `[]` |
+| `openid.enableSignIn` | Enable sign in with OpenID | `false` |
+| `openid.enableSignUp` | Enable sign up with OpenID | `false` |
+| `persistence.enabled` | Enable persistence using PVC | `true` |
+| `persistence.storageClass` | PVC Storage Class for Gitea volume | `""` |
+| `persistence.accessModes` | PVC Access Mode for Gitea volume | `["ReadWriteOnce"]` |
+| `persistence.size` | PVC Storage Request for Gitea volume | `8Gi` |
+| `persistence.dataSource` | Custom PVC data source | `{}` |
+| `persistence.existingClaim` | A manually managed Persistent Volume Claim | `""` |
+| `persistence.hostPath` | If defined, the gitea-data volume will mount to the specified hostPath. | `""` |
+| `persistence.annotations` | Persistent Volume Claim annotations | `{}` |
+| `persistence.selector` | Selector to match an existing Persistent Volume for Gitea data PVC | `{}` |
+| `podAffinityPreset` | Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
+| `podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `soft` |
+| `nodeAffinityPreset.type` | Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
+| `nodeAffinityPreset.key` | Node label key to match Ignored if `affinity` is set. | `""` |
+| `nodeAffinityPreset.values` | Node label values to match. Ignored if `affinity` is set. | `[]` |
+| `affinity` | Affinity for pod assignment | `{}` |
+| `nodeSelector` | Node labels for pod assignment. Evaluated as a template. | `{}` |
+| `resourcesPreset` | Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if resources is set (resources is recommended for production). | `micro` |
+| `resources` | Set container requests and limits for different resources like CPU or memory (essential for production workloads) | `{}` |
+| `podSecurityContext.enabled` | Enable Gitea pods' Security Context | `true` |
+| `podSecurityContext.fsGroupChangePolicy` | Set filesystem group change policy | `Always` |
+| `podSecurityContext.sysctls` | Set kernel settings using the sysctl interface | `[]` |
+| `podSecurityContext.supplementalGroups` | Set filesystem extra groups | `[]` |
+| `podSecurityContext.fsGroup` | Gitea pods' group ID | `1001` |
+| `containerSecurityContext.enabled` | Enabled containers' Security Context | `true` |
+| `containerSecurityContext.seLinuxOptions` | Set SELinux options in container | `{}` |
+| `containerSecurityContext.runAsUser` | Set containers' Security Context runAsUser | `1001` |
+| `containerSecurityContext.runAsGroup` | Set containers' Security Context runAsGroup | `1001` |
+| `containerSecurityContext.runAsNonRoot` | Set container's Security Context runAsNonRoot | `true` |
+| `containerSecurityContext.privileged` | Set container's Security Context privileged | `false` |
+| `containerSecurityContext.readOnlyRootFilesystem` | Set container's Security Context readOnlyRootFilesystem | `true` |
+| `containerSecurityContext.allowPrivilegeEscalation` | Set container's Security Context allowPrivilegeEscalation | `false` |
+| `containerSecurityContext.capabilities.drop` | List of capabilities to be dropped | `["ALL"]` |
+| `containerSecurityContext.seccompProfile.type` | Set container's Security Context seccomp profile | `RuntimeDefault` |
+| `startupProbe.enabled` | Enable startupProbe | `false` |
+| `startupProbe.path` | Request path for startupProbe | `/` |
+| `startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `600` |
+| `startupProbe.periodSeconds` | Period seconds for startupProbe | `10` |
+| `startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `5` |
+| `startupProbe.failureThreshold` | Failure threshold for startupProbe | `5` |
+| `startupProbe.successThreshold` | Success threshold for startupProbe | `1` |
+| `livenessProbe.enabled` | Enable livenessProbe | `true` |
+| `livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `600` |
+| `livenessProbe.periodSeconds` | Period seconds for livenessProbe | `10` |
+| `livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `5` |
+| `livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `5` |
+| `livenessProbe.successThreshold` | Success threshold for livenessProbe | `1` |
+| `readinessProbe.enabled` | Enable readinessProbe | `true` |
+| `readinessProbe.path` | Request path for readinessProbe | `/` |
+| `readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `30` |
+| `readinessProbe.periodSeconds` | Period seconds for readinessProbe | `5` |
+| `readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `1` |
+| `readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `5` |
+| `readinessProbe.successThreshold` | Success threshold for readinessProbe | `1` |
+| `customStartupProbe` | Override default startup probe | `{}` |
+| `customLivenessProbe` | Override default liveness probe | `{}` |
+| `customReadinessProbe` | Override default readiness probe | `{}` |
+| `lifecycleHooks` | LifecycleHook to set additional configuration at startup Evaluated as a template | `{}` |
+| `podAnnotations` | Pod annotations | `{}` |
+| `podLabels` | Add additional labels to the pod (evaluated as a template) | `{}` |
+
+### Traffic Exposure Parameters
+
+| Name | Description | Value |
+| --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
+| `service.type` | Kubernetes Service type | `LoadBalancer` |
+| `service.ports.http` | Service HTTP port | `80` |
+| `service.ports.ssh` | Service SSH port | `22` |
+| `service.loadBalancerSourceRanges` | Restricts access for LoadBalancer (only with `service.type: LoadBalancer`) | `[]` |
+| `service.loadBalancerIP` | loadBalancerIP for the Gitea Service (optional, cloud specific) | `""` |
+| `service.nodePorts` | Kubernetes node port | `{}` |
+| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` |
+| `service.clusterIP` | Gitea service Cluster IP | `""` |
+| `service.extraPorts` | Extra ports to expose (normally used with the `sidecar` value) | `[]` |
+| `service.annotations` | Additional custom annotations for Gitea service | `{}` |
+| `service.sessionAffinity` | Session Affinity for Kubernetes service, can be "None" or "ClientIP" | `None` |
+| `service.sessionAffinityConfig` | Additional settings for the sessionAffinity | `{}` |
+| `networkPolicy.enabled` | Specifies whether a NetworkPolicy should be created | `true` |
+| `networkPolicy.allowExternal` | Don't require server label for connections | `true` |
+| `networkPolicy.allowExternalEgress` | Allow the pod to access any range of port and all destinations. | `true` |
+| `networkPolicy.extraIngress` | Add extra ingress rules to the NetworkPolicy | `[]` |
+| `networkPolicy.extraEgress` | Add extra ingress rules to the NetworkPolicy | `[]` |
+| `networkPolicy.ingressNSMatchLabels` | Labels to match to allow traffic from other namespaces | `{}` |
+| `networkPolicy.ingressNSPodMatchLabels` | Pod labels to match to allow traffic from other namespaces | `{}` |
+| `ingress.enabled` | Enable ingress controller resource | `false` |
+| `ingress.pathType` | Ingress Path type | `ImplementationSpecific` |
+| `ingress.apiVersion` | Override API Version (automatically detected if not set) | `""` |
+| `ingress.ingressClassName` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `""` |
+| `ingress.hostname` | Default host for the ingress resource | `gitea.local` |
+| `ingress.path` | The Path to Gitea. You may need to set this to '/*' in order to use this | `/` |
+| `ingress.annotations` | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | `{}` |
+| `ingress.tls` | Enable TLS configuration for the hostname defined at ingress.hostname parameter | `false` |
+| `ingress.selfSigned` | Create a TLS secret for this ingress record using self-signed certificates generated by Helm | `false` |
+| `ingress.extraHosts` | The list of additional hostnames to be covered with this ingress record. | `[]` |
+| `ingress.extraPaths` | Any additional arbitrary paths that may need to be added to the ingress under the main host. | `[]` |
+| `ingress.extraTls` | The tls configuration for additional hostnames to be covered with this ingress record. | `[]` |
+| `ingress.secrets` | If you're providing your own certificates, please use this to add the certificates as secrets | `[]` |
+| `ingress.extraRules` | Additional rules to be covered with this ingress record | `[]` |
+
+### Other Parameters
+
+| Name | Description | Value |
+| --------------------------------------------- | ---------------------------------------------------------------------- | ------- |
+| `serviceAccount.create` | Enable creation of ServiceAccount for Gitea pod | `true` |
+| `serviceAccount.name` | The name of the ServiceAccount to use. | `""` |
+| `serviceAccount.automountServiceAccountToken` | Allows auto mount of ServiceAccountToken on the serviceAccount created | `false` |
+| `serviceAccount.annotations` | Additional custom annotations for the ServiceAccount | `{}` |
+
+### Database parameters
+
+| Name | Description | Value |
+| -------------------------------------------- | ----------------------------------------------------------------------- | --------------- |
+| `postgresql.enabled` | Switch to enable or disable the PostgreSQL helm chart | `true` |
+| `postgresql.auth.username` | Name for a custom user to create | `bn_gitea` |
+| `postgresql.auth.password` | Password for the custom user to create | `""` |
+| `postgresql.auth.database` | Name for a custom database to create | `bitnami_gitea` |
+| `postgresql.auth.existingSecret` | Name of existing secret to use for PostgreSQL credentials | `""` |
+| `postgresql.architecture` | PostgreSQL architecture (`standalone` or `replication`) | `standalone` |
+| `postgresql.service.ports.postgresql` | PostgreSQL service port | `5432` |
+| `externalDatabase.host` | Database host | `""` |
+| `externalDatabase.port` | Database port number | `5432` |
+| `externalDatabase.user` | Non-root username for JupyterHub | `postgres` |
+| `externalDatabase.password` | Password for the non-root username for JupyterHub | `""` |
+| `externalDatabase.database` | JupyterHub database name | `gitea` |
+| `externalDatabase.existingSecret` | Name of an existing secret resource containing the database credentials | `""` |
+| `externalDatabase.existingSecretPasswordKey` | Name of an existing secret key containing the database credentials | `db-password` |
+
+### Volume Permissions parameters
+
+| Name | Description | Value |
+| ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
+| `volumePermissions.enabled` | Enable init container that changes volume permissions in the data directory (for cases where the default k8s `runAsUser` and `fsUser` values do not work) | `false` |
+| `volumePermissions.image.registry` | Init container volume-permissions image registry | `REGISTRY_NAME` |
+| `volumePermissions.image.repository` | Init container volume-permissions image name | `REPOSITORY_NAME/os-shell` |
+| `volumePermissions.image.digest` | Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` |
+| `volumePermissions.image.pullPolicy` | Init container volume-permissions image pull policy | `IfNotPresent` |
+| `volumePermissions.image.pullSecrets` | Specify docker-registry secret names as an array | `[]` |
+| `volumePermissions.resourcesPreset` | Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production). | `nano` |
+| `volumePermissions.resources` | Set container requests and limits for different resources like CPU or memory (essential for production workloads) | `{}` |
+
+Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
+
+```console
+helm install my-release \
+ --set adminUsername=user,giteaPassword=password,postgresql.auth.rootPassword=secretpassword \
+ oci://REGISTRY_NAME/REPOSITORY_NAME/gitea
+```
+
+> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`.
+
+The above command sets the Gitea administrator account username and password to `user` and `password` respectively. Additionally, it sets the PostgreSQL `root` user password to `secretpassword`.
+
+> NOTE: Once this chart is deployed, it is not possible to change the application's access credentials, such as usernames or passwords, using Helm. To change these application credentials after deployment, delete any persistent volumes (PVs) used by the chart and re-deploy it, or use the application's built-in administrative tools if available.
+
+Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
+
+```console
+helm install my-release -f values.yaml oci://REGISTRY_NAME/REPOSITORY_NAME/gitea
+```
+
+> Note: You need to substitute the placeholders `REGISTRY_NAME` and `REPOSITORY_NAME` with a reference to your Helm chart registry and repository. For example, in the case of Bitnami, you need to use `REGISTRY_NAME=registry-1.docker.io` and `REPOSITORY_NAME=bitnamicharts`.
+> **Tip**: You can use the default [values.yaml](https://github.com/bitnami/charts/tree/main/bitnami/gitea/values.yaml)
+
+## Troubleshooting
+
+Find more information about how to deal with common errors related to Bitnami's Helm charts in [this troubleshooting guide](https://docs.bitnami.com/general/how-to/troubleshoot-helm-chart-issues).
+
+## Upgrading
+
+### To 2.0.0
+
+This major bump changes the following security defaults:
+
+- `runAsGroup` is changed from `0` to `1001`
+- `readOnlyRootFilesystem` is set to `true`
+- `resourcesPreset` is changed from `none` to the minimum size working in our test suites (NOTE: `resourcesPreset` is not meant for production usage, but `resources` adapted to your use case).
+- `global.compatibility.openshift.adaptSecurityContext` is changed from `disabled` to `auto`.
+
+This could potentially break any customization or init scripts used in your deployment. If this is the case, change the default values to the previous ones.
+
+### To 1.0.0
+
+This major updates the PostgreSQL subchart to its newest major, 13.0.0. [Here](https://github.com/bitnami/charts/tree/master/bitnami/postgresql#to-1300) you can find more information about the changes introduced in that version.
+
+## License
+
+Copyright © 2024 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
\ No newline at end of file
diff --git a/apps/gitea/base/templates/NOTES.txt b/apps/gitea/base/templates/NOTES.txt
new file mode 100644
index 0000000..6f4f17d
--- /dev/null
+++ b/apps/gitea/base/templates/NOTES.txt
@@ -0,0 +1,77 @@
+CHART NAME: {{ .Chart.Name }}
+CHART VERSION: {{ .Chart.Version }}
+APP VERSION: {{ .Chart.AppVersion }}
+
+{{- if or .Values.postgresql.enabled .Values.externalDatabase.host }}
+
+** Please be patient while the chart is being deployed **
+
+1. Get the Gitea URL:
+
+{{- if .Values.ingress.enabled }}
+
+ You should be able to access your new Gitea installation through
+
+ http://{{- .Values.ingress.hostname }}/
+
+{{- else if eq .Values.service.type "LoadBalancer" }}
+
+ NOTE: It may take a few minutes for the LoadBalancer IP to be available.
+ Watch the status with: 'kubectl get svc --namespace {{ include "common.names.namespace" . }} -w {{ include "common.names.fullname" . }}'
+
+ export SERVICE_IP=$(kubectl get svc --namespace {{ include "common.names.namespace" . }} {{ include "common.names.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}")
+
+{{- $port:= .Values.service.ports.http | toString }}
+ echo "Gitea URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.ports.http }}{{ end }}/"
+
+{{- if not (include "gitea.rootURL" .)}}
+
+WARNING: You did not specify a Root URL for Gitea. The rendered URLs in Gitea may not show correctly. In order to set a root URL use the rootURL value.
+{{- end }}
+
+{{- else if eq .Values.service.type "ClusterIP" }}
+
+ echo "Gitea URL: http://127.0.0.1:8080/"
+ kubectl port-forward --namespace {{ include "common.names.namespace" . }} svc/{{ include "common.names.fullname" . }} 8080:{{ .Values.service.ports.http }}
+
+{{- end }}
+
+{{- if eq .Values.service.type "NodePort" }}
+
+ Or running:
+
+ export NODE_PORT=$(kubectl get --namespace {{ include "common.names.namespace" . }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "common.names.fullname" . }})
+ export NODE_IP=$(kubectl get nodes --namespace {{ include "common.names.namespace" . }} -o jsonpath="{.items[0].status.addresses[0].address}")
+ echo "Gitea URL: http://$NODE_IP:$NODE_PORT/"
+
+{{- end }}
+
+2. Get your Gitea login credentials by running:
+
+ echo Username: {{ .Values.adminUsername }}
+ echo Password: $(kubectl get secret --namespace {{ include "common.names.namespace" . }} {{ template "gitea.secretName" . }} -o jsonpath="{.data.admin-password}" | base64 -d)
+
+{{- else -}}
+
+########################################################################################
+### ERROR: You did not provide an external database host in your 'helm install' call ###
+########################################################################################
+
+This deployment will be incomplete until you configure Gitea with a resolvable database
+host. To configure Gitea to use and external database host:
+
+1. Complete your Gitea deployment by running:
+
+ export APP_PASSWORD=$(kubectl get secret --namespace {{ include "common.names.namespace" . }} {{ template "gitea.secretName" . }} -o jsonpath="{.data.admin-password}" | base64 -d)
+
+ ## PLEASE UPDATE THE EXTERNAL DATABASE CONNECTION PARAMETERS IN THE FOLLOWING COMMAND AS NEEDED ##
+
+ helm upgrade --namespace {{ include "common.names.namespace" . }} {{ .Release.Name }} oci://registry-1.docker.io/bitnamicharts/{{ .Chart.Name }} \
+ --set giteaPassword=$APP_PASSWORD,service.type={{ .Values.service.type }},postgresql.enabled=false{{- if not (empty .Values.externalDatabase.user) }},externalDatabase.user={{ .Values.externalDatabase.user }}{{- end }}{{- if not (empty .Values.externalDatabase.password) }},externalDatabase.password={{ .Values.externalDatabase.password }}{{- end }}{{- if not (empty .Values.externalDatabase.database) }},externalDatabase.database={{ .Values.externalDatabase.database }}{{- end }},externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST{{- if .Values.global }}{{- if .Values.global.imagePullSecrets }},global.imagePullSecrets={{ .Values.global.imagePullSecrets }}{{- end }}{{- end }}
+
+{{- end }}
+
+{{- include "common.warnings.rollingTag" .Values.image }}
+{{- include "common.warnings.rollingTag" .Values.volumePermissions.image }}
+{{- include "common.warnings.resources" (dict "sections" (list "" "volumePermissions") "context" $) }}
+{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.image .Values.volumePermissions.image) "context" $) }}
\ No newline at end of file
diff --git a/apps/gitea/base/templates/_helpers.tpl b/apps/gitea/base/templates/_helpers.tpl
new file mode 100644
index 0000000..798f423
--- /dev/null
+++ b/apps/gitea/base/templates/_helpers.tpl
@@ -0,0 +1,174 @@
+{{/*
+Copyright Broadcom, Inc. All Rights Reserved.
+SPDX-License-Identifier: APACHE-2.0
+*/}}
+
+{{/*
+Create a default fully qualified postgresql name.
+We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
+*/}}
+{{- define "gitea.postgresql.fullname" -}}
+{{- include "common.names.dependency.fullname" (dict "chartName" "postgresql" "chartValues" .Values.postgresql "context" $) -}}
+{{- end -}}
+
+{{/*
+Return the proper Gitea image name
+*/}}
+{{- define "gitea.image" -}}
+{{- include "common.images.image" (dict "imageRoot" .Values.image "global" .Values.global) -}}
+{{- end -}}
+
+{{/*
+Return the proper image name (for the init container volume-permissions image)
+*/}}
+{{- define "gitea.volumePermissions.image" -}}
+{{- include "common.images.image" ( dict "imageRoot" .Values.volumePermissions.image "global" .Values.global ) -}}
+{{- end -}}
+
+{{/*
+Return the proper Docker Image Registry Secret Names
+*/}}
+{{- define "gitea.imagePullSecrets" -}}
+{{- include "common.images.pullSecrets" (dict "images" (list .Values.image .Values.volumePermissions.image) "global" .Values.global) -}}
+{{- end -}}
+
+{{/*
+Return the proper Storage Class
+*/}}
+{{- define "gitea.storageClass" -}}
+{{- include "common.storage.class" (dict "persistence" .Values.persistence "global" .Values.global) -}}
+{{- end -}}
+
+{{/*
+Gitea credential secret name
+*/}}
+{{- define "gitea.secretName" -}}
+{{- coalesce .Values.existingSecret (include "common.names.fullname" .) -}}
+{{- end -}}
+
+{{/*
+Gitea root URL
+*/}}
+{{- define "gitea.rootURL" -}}
+{{- if .Values.rootURL -}}
+ {{- print .Values.rootURL -}}
+{{- else if .Values.ingress.enabled -}}
+ {{- printf "http://%s" .Values.ingress.hostname -}}
+{{- else if (and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerIP) -}}
+ {{- $url := printf "http://%s" .Values.service.loadBalancerIP -}}
+ {{- $port:= .Values.service.ports.http | toString }}
+ {{- if (ne $port "80") -}}
+ {{- $url = printf "%s:%s" $url $port -}}
+ {{- end -}}
+ {{- print $url -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+ Create the name of the service account to use
+ */}}
+{{- define "gitea.serviceAccountName" -}}
+{{- if .Values.serviceAccount.create -}}
+ {{- default (include "common.names.fullname" .) .Values.serviceAccount.name -}}
+{{- else -}}
+ {{- default "default" .Values.serviceAccount.name -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Gitea credential secret name
+*/}}
+{{- define "gitea.secretKey" -}}
+{{- if .Values.existingSecret -}}
+ {{- print .Values.existingSecretKey -}}
+{{- else -}}
+ {{- print "admin-password" -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Return the SMTP Secret Name
+*/}}
+{{- define "gitea.smtpSecretName" -}}
+{{- if .Values.smtpExistingSecret }}
+ {{- print .Values.smtpExistingSecret -}}
+{{- else -}}
+ {{- print (include "common.names.fullname" .) -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Return the PostgreSQL Hostname
+*/}}
+{{- define "gitea.databaseHost" -}}
+{{- if .Values.postgresql.enabled }}
+ {{- if eq .Values.postgresql.architecture "replication" }}
+ {{- printf "%s-%s" (include "gitea.postgresql.fullname" .) "primary" | trunc 63 | trimSuffix "-" -}}
+ {{- else -}}
+ {{- print (include "gitea.postgresql.fullname" .) -}}
+ {{- end -}}
+{{- else -}}
+ {{- print .Values.externalDatabase.host -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Return the PostgreSQL Port
+*/}}
+{{- define "gitea.databasePort" -}}
+{{- if .Values.postgresql.enabled }}
+ {{- print .Values.postgresql.primary.service.ports.postgresql -}}
+{{- else -}}
+ {{- printf "%d" (.Values.externalDatabase.port | int ) -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Return the PostgreSQL Database Name
+*/}}
+{{- define "gitea.databaseName" -}}
+{{- if .Values.postgresql.enabled }}
+ {{- print .Values.postgresql.auth.database -}}
+{{- else -}}
+ {{- print .Values.externalDatabase.database -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Return the PostgreSQL User
+*/}}
+{{- define "gitea.databaseUser" -}}
+{{- if .Values.postgresql.enabled }}
+ {{- print .Values.postgresql.auth.username -}}
+{{- else -}}
+ {{- print .Values.externalDatabase.user -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Return the PostgreSQL Secret Name
+*/}}
+{{- define "gitea.databaseSecretName" -}}
+{{- if .Values.postgresql.enabled }}
+ {{- if .Values.postgresql.auth.existingSecret -}}
+ {{- print .Values.postgresql.auth.existingSecret -}}
+ {{- else -}}
+ {{- print (include "gitea.postgresql.fullname" .) -}}
+ {{- end -}}
+{{- else if .Values.externalDatabase.existingSecret -}}
+ {{- print .Values.externalDatabase.existingSecret -}}
+{{- else -}}
+ {{- printf "%s-%s" (include "common.names.fullname" .) "externaldb" -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Return the database password key
+*/}}
+{{- define "gitea.databasePasswordKey" -}}
+{{- if .Values.postgresql.enabled -}}
+{{- print "password" -}}
+{{- else -}}
+{{ print .Values.externalDatabase.existingSecretPasswordKey }}
+{{- end -}}
+{{- end -}}
diff --git a/apps/gitea/base/templates/externaldb-secrets.yaml b/apps/gitea/base/templates/externaldb-secrets.yaml
new file mode 100644
index 0000000..20ea0f9
--- /dev/null
+++ b/apps/gitea/base/templates/externaldb-secrets.yaml
@@ -0,0 +1,19 @@
+{{- /*
+Copyright Broadcom, Inc. All Rights Reserved.
+SPDX-License-Identifier: APACHE-2.0
+*/}}
+
+{{- if not .Values.postgresql.enabled }}
+apiVersion: v1
+kind: Secret
+metadata:
+ name: "{{ include "common.names.fullname" . }}-externaldb"
+ namespace: {{ include "common.names.namespace" . | quote }}
+ labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
+ {{- if .Values.commonAnnotations }}
+ annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
+ {{- end }}
+type: Opaque
+data:
+ db-password: {{ default "" .Values.externalDatabase.password | b64enc | quote }}
+{{- end }}
diff --git a/apps/gitea/base/templates/extra-list.yaml b/apps/gitea/base/templates/extra-list.yaml
new file mode 100644
index 0000000..329f5c6
--- /dev/null
+++ b/apps/gitea/base/templates/extra-list.yaml
@@ -0,0 +1,9 @@
+{{- /*
+Copyright Broadcom, Inc. All Rights Reserved.
+SPDX-License-Identifier: APACHE-2.0
+*/}}
+
+{{- range .Values.extraDeploy }}
+---
+{{ include "common.tplvalues.render" (dict "value" . "context" $) }}
+{{- end }}
diff --git a/apps/gitea/base/templates/ingress.yaml b/apps/gitea/base/templates/ingress.yaml
new file mode 100644
index 0000000..e5d6409
--- /dev/null
+++ b/apps/gitea/base/templates/ingress.yaml
@@ -0,0 +1,59 @@
+{{- /*
+Copyright Broadcom, Inc. All Rights Reserved.
+SPDX-License-Identifier: APACHE-2.0
+*/}}
+
+{{- if .Values.ingress.enabled }}
+apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }}
+kind: Ingress
+metadata:
+ name: {{ template "common.names.fullname" . }}
+ namespace: {{ include "common.names.namespace" . | quote }}
+ labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
+ {{- if or .Values.ingress.annotations .Values.commonAnnotations }}
+ {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.ingress.annotations .Values.commonAnnotations ) "context" . ) }}
+ annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}
+ {{- end }}
+spec:
+ {{- if and .Values.ingress.ingressClassName (eq "true" (include "common.ingress.supportsIngressClassname" .)) }}
+ ingressClassName: {{ .Values.ingress.ingressClassName | quote }}
+ {{- end }}
+ rules:
+ {{- if .Values.ingress.hostname }}
+ - host: {{ .Values.ingress.hostname }}
+ http:
+ paths:
+ {{- if .Values.ingress.extraPaths }}
+ {{- toYaml .Values.ingress.extraPaths | nindent 10 }}
+ {{- end }}
+ - path: {{ .Values.ingress.path }}
+ {{- if eq "true" (include "common.ingress.supportsPathType" .) }}
+ pathType: {{ .Values.ingress.pathType }}
+ {{- end }}
+ backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" .) "servicePort" "http" "context" $) | nindent 14 }}
+ {{- end }}
+ {{- range .Values.ingress.extraHosts }}
+ - host: {{ .name | quote }}
+ http:
+ paths:
+ - path: {{ default "/" .path }}
+ {{- if eq "true" (include "common.ingress.supportsPathType" $) }}
+ pathType: {{ default "ImplementationSpecific" .pathType }}
+ {{- end }}
+ backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" $) "servicePort" "http" "context" $) | nindent 14 }}
+ {{- end }}
+ {{- if .Values.ingress.extraRules }}
+ {{- include "common.tplvalues.render" (dict "value" .Values.ingress.extraRules "context" $) | nindent 4 }}
+ {{- end }}
+ {{- if or (and .Values.ingress.tls (or (include "common.ingress.certManagerRequest" ( dict "annotations" .Values.ingress.annotations )) .Values.ingress.selfSigned)) .Values.ingress.extraTls }}
+ tls:
+ {{- if and .Values.ingress.tls (or (include "common.ingress.certManagerRequest" ( dict "annotations" .Values.ingress.annotations )) .Values.ingress.selfSigned) }}
+ - hosts:
+ - {{ .Values.ingress.hostname | quote }}
+ secretName: {{ printf "%s-tls" .Values.ingress.hostname }}
+ {{- end }}
+ {{- if .Values.ingress.extraTls }}
+ {{- include "common.tplvalues.render" (dict "value" .Values.ingress.extraTls "context" $) | nindent 4 }}
+ {{- end }}
+ {{- end }}
+{{- end }}
diff --git a/apps/gitea/base/templates/networkpolicy.yaml b/apps/gitea/base/templates/networkpolicy.yaml
new file mode 100644
index 0000000..9db892c
--- /dev/null
+++ b/apps/gitea/base/templates/networkpolicy.yaml
@@ -0,0 +1,80 @@
+{{- /*
+Copyright Broadcom, Inc. All Rights Reserved.
+SPDX-License-Identifier: APACHE-2.0
+*/}}
+
+{{- if .Values.networkPolicy.enabled }}
+kind: NetworkPolicy
+apiVersion: {{ include "common.capabilities.networkPolicy.apiVersion" . }}
+metadata:
+ name: {{ template "common.names.fullname" . }}
+ namespace: {{ include "common.names.namespace" . | quote }}
+ labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
+ {{- if .Values.commonAnnotations }}
+ annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
+ {{- end }}
+spec:
+ {{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }}
+ podSelector:
+ matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
+ policyTypes:
+ - Ingress
+ - Egress
+ {{- if .Values.networkPolicy.allowExternalEgress }}
+ egress:
+ - {}
+ {{- else }}
+ egress:
+ # Allow dns resolution
+ - ports:
+ - port: 53
+ protocol: UDP
+ - port: 53
+ protocol: TCP
+ # Allow outbound connections to MariaDB
+ - ports:
+ - port: {{ include "gitea.databasePort" . }}
+ {{- if .Values.postgresql.enabled }}
+ to:
+ - podSelector:
+ matchLabels:
+ app.kubernetes.io/name: postgresql
+ app.kubernetes.io/instance: {{ .Release.Name }}
+ {{- end }}
+ {{- if .Values.networkPolicy.extraEgress }}
+ {{- include "common.tplvalues.render" ( dict "value" .Values.networkPolicy.extraEgress "context" $ ) | nindent 4 }}
+ {{- end }}
+ {{- end }}
+ ingress:
+ - ports:
+ - port: {{ .Values.containerPorts.http }}
+ - port: {{ .Values.containerPorts.ssh }}
+ {{- range .Values.extraContainerPorts }}
+ - port: {{ . }}
+ {{- end }}
+ {{- if not .Values.networkPolicy.allowExternal }}
+ from:
+ - podSelector:
+ matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 14 }}
+ - podSelector:
+ matchLabels:
+ {{ template "common.names.fullname" . }}-client: "true"
+ {{- if .Values.networkPolicy.ingressNSMatchLabels }}
+ - namespaceSelector:
+ matchLabels:
+ {{- range $key, $value := .Values.networkPolicy.ingressNSMatchLabels }}
+ {{ $key | quote }}: {{ $value | quote }}
+ {{- end }}
+ {{- if .Values.networkPolicy.ingressNSPodMatchLabels }}
+ podSelector:
+ matchLabels:
+ {{- range $key, $value := .Values.networkPolicy.ingressNSPodMatchLabels }}
+ {{ $key | quote }}: {{ $value | quote }}
+ {{- end }}
+ {{- end }}
+ {{- end }}
+ {{- end }}
+ {{- if .Values.networkPolicy.extraIngress }}
+ {{- include "common.tplvalues.render" ( dict "value" .Values.networkPolicy.extraIngress "context" $ ) | nindent 4 }}
+ {{- end }}
+{{- end }}
diff --git a/apps/gitea/base/templates/pdb.yaml b/apps/gitea/base/templates/pdb.yaml
new file mode 100644
index 0000000..c298722
--- /dev/null
+++ b/apps/gitea/base/templates/pdb.yaml
@@ -0,0 +1,26 @@
+{{- /*
+Copyright Broadcom, Inc. All Rights Reserved.
+SPDX-License-Identifier: APACHE-2.0
+*/}}
+
+{{- if .Values.pdb.create }}
+apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
+kind: PodDisruptionBudget
+metadata:
+ name: {{ include "common.names.fullname" . }}
+ namespace: {{ include "common.names.namespace" . | quote }}
+ labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
+ {{- if .Values.commonAnnotations }}
+ annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
+ {{- end }}
+spec:
+ {{- if .Values.pdb.minAvailable }}
+ minAvailable: {{ .Values.pdb.minAvailable }}
+ {{- end }}
+ {{- if or .Values.pdb.maxUnavailable (not .Values.pdb.minAvailable) }}
+ maxUnavailable: {{ .Values.pdb.maxUnavailable | default 1 }}
+ {{- end }}
+ {{- $podLabels := include "common.tplvalues.merge" (dict "values" (list .Values.podLabels .Values.commonLabels) "context" .) }}
+ selector:
+ matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
+{{- end }}
diff --git a/apps/gitea/base/templates/pv.yaml b/apps/gitea/base/templates/pv.yaml
new file mode 100644
index 0000000..8e08805
--- /dev/null
+++ b/apps/gitea/base/templates/pv.yaml
@@ -0,0 +1,27 @@
+{{- /*
+Copyright Broadcom, Inc. All Rights Reserved.
+SPDX-License-Identifier: APACHE-2.0
+*/}}
+
+{{- if and .Values.persistence.enabled .Values.persistence.hostPath (not .Values.persistence.existingClaim) -}}
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: {{ include "common.names.fullname" . }}
+ namespace: {{ include "common.names.namespace" . | quote }}
+ labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
+ {{- if .Values.commonAnnotations }}
+ annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
+ {{- end }}
+spec:
+ {{- if not (empty .Values.persistence.accessModes) }}
+ accessModes:
+ {{- range .Values.persistence.accessModes }}
+ - {{ . | quote }}
+ {{- end }}
+ {{- end }}
+ capacity:
+ storage: {{ .Values.persistence.size | quote }}
+ hostPath:
+ path: {{ .Values.persistence.hostPath | quote }}
+{{- end -}}
diff --git a/apps/gitea/base/templates/pvc.yaml b/apps/gitea/base/templates/pvc.yaml
new file mode 100644
index 0000000..40481f5
--- /dev/null
+++ b/apps/gitea/base/templates/pvc.yaml
@@ -0,0 +1,38 @@
+{{- /*
+Copyright Broadcom, Inc. All Rights Reserved.
+SPDX-License-Identifier: APACHE-2.0
+*/}}
+
+{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
+kind: PersistentVolumeClaim
+apiVersion: v1
+metadata:
+ name: {{ include "common.names.fullname" . }}
+ namespace: {{ include "common.names.namespace" . | quote }}
+ labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
+ {{- if or .Values.persistence.annotations .Values.commonAnnotations }}
+ {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.persistence.annotations .Values.commonAnnotations ) "context" . ) }}
+ annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}
+ {{- end }}
+spec:
+ {{- if .Values.persistence.hostPath }}
+ storageClassName: ""
+ {{- else }}
+ {{- include "gitea.storageClass" . | nindent 2 }}
+ {{- end }}
+ {{- if not (empty .Values.persistence.accessModes) }}
+ accessModes:
+ {{- range .Values.persistence.accessModes }}
+ - {{ . | quote }}
+ {{- end }}
+ {{- end }}
+ resources:
+ requests:
+ storage: {{ .Values.persistence.size | quote }}
+ {{- if .Values.persistence.selector }}
+ selector: {{- include "common.tplvalues.render" (dict "value" .Values.persistence.selector "context" $) | nindent 4 }}
+ {{- end -}}
+ {{- if .Values.persistence.dataSource }}
+ dataSource: {{- include "common.tplvalues.render" (dict "value" .Values.persistence.dataSource "context" $) | nindent 4 }}
+ {{- end }}
+{{- end -}}
diff --git a/apps/gitea/base/templates/secrets.yaml b/apps/gitea/base/templates/secrets.yaml
new file mode 100644
index 0000000..52f2845
--- /dev/null
+++ b/apps/gitea/base/templates/secrets.yaml
@@ -0,0 +1,26 @@
+{{- /*
+Copyright Broadcom, Inc. All Rights Reserved.
+SPDX-License-Identifier: APACHE-2.0
+*/}}
+
+{{- if or (not .Values.existingSecret) (and (not .Values.smtpExistingSecret) .Values.smtpPassword) }}
+apiVersion: v1
+kind: Secret
+metadata:
+ name: {{ include "common.names.fullname" . }}
+ namespace: {{ include "common.names.namespace" . | quote }}
+ labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
+ {{- if .Values.commonAnnotations }}
+ annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
+ {{- end }}
+type: Opaque
+data:
+ {{- if not .Values.existingSecret }}
+ admin-password: {{ include "common.secrets.passwords.manage" (dict "secret" (include "common.names.fullname" .) "key" "admin-password" "providedValues" (list "adminPassword") "context" $) }}
+ {{- end }}
+ {{- if and .Values.smtpPassword (not .Values.smtpExistingSecret) }}
+ {{- if .Values.smtpPassword }}
+ smtp-password: {{ .Values.smtpPassword | b64enc | quote }}
+ {{- end }}
+ {{- end }}
+{{- end }}
diff --git a/apps/gitea/base/templates/service-account.yaml b/apps/gitea/base/templates/service-account.yaml
new file mode 100644
index 0000000..705fa2b
--- /dev/null
+++ b/apps/gitea/base/templates/service-account.yaml
@@ -0,0 +1,18 @@
+{{- /*
+Copyright Broadcom, Inc. All Rights Reserved.
+SPDX-License-Identifier: APACHE-2.0
+*/}}
+
+{{- if .Values.serviceAccount.create }}
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: {{ include "gitea.serviceAccountName" . }}
+ namespace: {{ .Release.Namespace | quote }}
+ labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
+ {{- if or .Values.serviceAccount.annotations .Values.commonAnnotations }}
+ {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.serviceAccount.annotations .Values.commonAnnotations ) "context" . ) }}
+ annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}
+ {{- end }}
+automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
+{{- end }}
diff --git a/apps/gitea/base/templates/tls-secrets.yaml b/apps/gitea/base/templates/tls-secrets.yaml
new file mode 100644
index 0000000..199d504
--- /dev/null
+++ b/apps/gitea/base/templates/tls-secrets.yaml
@@ -0,0 +1,44 @@
+{{- /*
+Copyright Broadcom, Inc. All Rights Reserved.
+SPDX-License-Identifier: APACHE-2.0
+*/}}
+
+{{- if .Values.ingress.enabled }}
+{{- if .Values.ingress.secrets }}
+{{- range .Values.ingress.secrets }}
+apiVersion: v1
+kind: Secret
+metadata:
+ name: {{ .name }}
+ namespace: {{ include "common.names.namespace" $ | quote }}
+ labels: {{- include "common.labels.standard" ( dict "customLabels" $.Values.commonLabels "context" $ ) | nindent 4 }}
+ {{- if $.Values.commonAnnotations }}
+ annotations: {{- include "common.tplvalues.render" ( dict "value" $.Values.commonAnnotations "context" $ ) | nindent 4 }}
+ {{- end }}
+type: kubernetes.io/tls
+data:
+ tls.crt: {{ .certificate | b64enc }}
+ tls.key: {{ .key | b64enc }}
+---
+{{- end }}
+{{- end }}
+{{- if and .Values.ingress.tls .Values.ingress.selfSigned }}
+{{- $secretName := printf "%s-tls" .Values.ingress.hostname }}
+{{- $ca := genCA "gitea-ca" 365 }}
+{{- $cert := genSignedCert .Values.ingress.hostname nil (list .Values.ingress.hostname) 365 $ca }}
+apiVersion: v1
+kind: Secret
+metadata:
+ name: {{ $secretName }}
+ namespace: {{ include "common.names.namespace" . | quote }}
+ labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
+ {{- if .Values.commonAnnotations }}
+ annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
+ {{- end }}
+type: kubernetes.io/tls
+data:
+ tls.crt: {{ include "common.secrets.lookup" (dict "secret" $secretName "key" "tls.crt" "defaultValue" $cert.Cert "context" $) }}
+ tls.key: {{ include "common.secrets.lookup" (dict "secret" $secretName "key" "tls.key" "defaultValue" $cert.Key "context" $) }}
+ ca.crt: {{ include "common.secrets.lookup" (dict "secret" $secretName "key" "ca.crt" "defaultValue" $ca.Cert "context" $) }}
+{{- end }}
+{{- end }}
diff --git a/apps/gitea/base/values.yaml b/apps/gitea/base/values.yaml
new file mode 100644
index 0000000..5f1e75f
--- /dev/null
+++ b/apps/gitea/base/values.yaml
@@ -0,0 +1,776 @@
+# Copyright Broadcom, Inc. All Rights Reserved.
+# SPDX-License-Identifier: APACHE-2.0
+
+## @section Global parameters
+## Global Docker image parameters
+## Please, note that this will override the image parameters, including dependencies, configured to use the global value
+## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
+##
+
+## @param global.imageRegistry Global Docker image registry
+## @param global.imagePullSecrets Global Docker registry secret names as an array
+## @param global.storageClass Global StorageClass for Persistent Volume(s)
+##
+global:
+ imageRegistry: ""
+ ## E.g.
+ ## imagePullSecrets:
+ ## - myRegistryKeySecretName
+ ##
+ imagePullSecrets: []
+ storageClass: ""
+ ## Compatibility adaptations for Kubernetes platforms
+ ##
+ compatibility:
+ ## Compatibility adaptations for Openshift
+ ##
+ openshift:
+ ## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
+ ##
+ adaptSecurityContext: auto
+## @section Common parameters
+##
+
+## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
+##
+kubeVersion: ""
+## @param nameOverride String to partially override gitea.fullname template (will maintain the release name)
+##
+nameOverride: ""
+## @param fullnameOverride String to fully override gitea.fullname template
+##
+fullnameOverride: ""
+## @param namespaceOverride String to fully override common.names.namespace
+##
+namespaceOverride: ""
+## @param commonAnnotations Common annotations to add to all Gitea resources (sub-charts are not considered). Evaluated as a template
+##
+commonAnnotations: {}
+## @param commonLabels Common labels to add to all Gitea resources (sub-charts are not considered). Evaluated as a template
+##
+commonLabels: {}
+## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template).
+##
+extraDeploy: []
+## @section Gitea parameters
+##
+
+## Bitnami Gitea image version
+## ref: https://hub.docker.com/r/bitnami/gitea/tags/
+## @param image.registry [default: REGISTRY_NAME] Gitea image registry
+## @param image.repository [default: REPOSITORY_NAME/gitea] Gitea Image name
+## @skip image.tag Gitea Image tag
+## @param image.digest Gitea image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
+## @param image.pullPolicy Gitea image pull policy
+## @param image.pullSecrets Specify docker-registry secret names as an array
+## @param image.debug Specify if debug logs should be enabled
+##
+image:
+ registry: docker.io
+ repository: bitnami/gitea
+ tag: 1.22.1-debian-12-r4
+ digest: ""
+ ## Specify a imagePullPolicy
+ ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
+ ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
+ ##
+ pullPolicy: IfNotPresent
+ ## Optionally specify an array of imagePullSecrets.
+ ## Secrets must be manually created in the namespace.
+ ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
+ ## e.g:
+ ## pullSecrets:
+ ## - myRegistryKeySecretName
+ ##
+ pullSecrets: []
+ ## Set to true if you would like to see extra information on logs
+ ##
+ debug: false
+## @param adminUsername User of the application
+## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
+##
+adminUsername: bn_user
+## @param adminPassword Application password
+## Defaults to a random 10-character alphanumeric string if not set
+## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
+##
+adminPassword: ""
+## @param adminEmail Admin email
+## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
+##
+adminEmail: user@example.com
+## @param appName Gitea application name
+## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
+##
+appName: example
+## @param runMode Gitea application host
+## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea#configuration
+##
+runMode: prod
+## @param exposeSSH Make the SSH server accesible
+##
+exposeSSH: true
+## @param rootURL UI Root URL (for link generation)
+##
+rootURL: ""
+## @param command Override default container command (useful when using custom images)
+##
+command: []
+## @param args Override default container args (useful when using custom images)
+##
+args: []
+## @param updateStrategy.type Update strategy - only really applicable for deployments with RWO PVs attached
+## If replicas = 1, an update can get "stuck", as the previous pod remains attached to the
+## PV, and the "incoming" pod can never start. Changing the strategy to "Recreate" will
+## terminate the single previous pod, so that the new, incoming pod can attach to the PV
+##
+updateStrategy:
+ type: RollingUpdate
+## @param priorityClassName Gitea pods' priorityClassName
+##
+priorityClassName: ""
+## @param schedulerName Name of the k8s scheduler (other than default)
+## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
+##
+schedulerName: ""
+## @param topologySpreadConstraints Topology Spread Constraints for pod assignment
+## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
+## The value is evaluated as a template
+##
+topologySpreadConstraints: []
+## @param automountServiceAccountToken Mount Service Account token in pod
+##
+automountServiceAccountToken: false
+## @param hostAliases [array] Add deployment host aliases
+## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
+##
+hostAliases: []
+## @param extraEnvVars Extra environment variables
+## For example:
+##
+extraEnvVars: []
+# - name: BEARER_AUTH
+# value: true
+## @param extraEnvVarsCM ConfigMap containing extra env vars
+##
+extraEnvVarsCM: ""
+## @param extraEnvVarsSecret Secret containing extra env vars (in case of sensitive data)
+##
+extraEnvVarsSecret: ""
+## @param extraVolumes Array of extra volumes to be added to the deployment (evaluated as template). Requires setting `extraVolumeMounts`
+##
+extraVolumes: []
+## @param extraVolumeMounts Array of extra volume mounts to be added to the container (evaluated as template). Normally used with `extraVolumes`.
+##
+extraVolumeMounts: []
+## @param initContainers Add additional init containers to the pod (evaluated as a template)
+##
+initContainers: []
+## Pod Disruption Budget configuration
+## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
+## @param pdb.create Enable/disable a Pod Disruption Budget creation
+## @param pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
+## @param pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty.
+##
+pdb:
+ create: true
+ minAvailable: ""
+ maxUnavailable: ""
+## @param sidecars Attach additional containers to the pod (evaluated as a template)
+##
+sidecars: []
+## @param tolerations Tolerations for pod assignment
+## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+##
+tolerations: []
+## @param existingSecret Name of a secret with the application password
+##
+existingSecret: ""
+## @param existingSecretKey Key inside the existing secret containing the password
+##
+existingSecretKey: "admin-password"
+## SMTP mail delivery configuration
+## ref: https://github.com/bitnami/containers/tree/main/bitnami/gitea/#smtp-configuration
+## @param smtpHost SMTP host
+## @param smtpPort SMTP port
+## @param smtpUser SMTP user
+## @param smtpPassword SMTP password
+##
+smtpHost: ""
+smtpPort: ""
+smtpUser: ""
+smtpPassword: ""
+## @param smtpExistingSecret The name of an existing secret with SMTP credentials
+## NOTE: Must contain key `smtp-password`
+## NOTE: When it's set, the `smtpPassword` parameter is ignored
+##
+smtpExistingSecret: ""
+## @param containerPorts [object] Container ports
+##
+containerPorts:
+ http: 3000
+ ssh: 2222
+## @param extraContainerPorts Optionally specify extra list of additional ports for Gitea container(s)
+## e.g:
+## extraContainerPorts:
+## - name: myservice
+## containerPort: 9090
+##
+extraContainerPorts: []
+## Enable OpenID Configurations
+## @param openid.enableSignIn Enable sign in with OpenID
+## @param openid.enableSignUp Enable sign up with OpenID
+openid:
+ enableSignIn: false
+ enableSignUp: false
+## Enable persistence using Persistent Volume Claims
+## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
+##
+persistence:
+ ## @param persistence.enabled Enable persistence using PVC
+ ##
+ enabled: true
+ ## @param persistence.storageClass PVC Storage Class for Gitea volume
+ ## If defined, storageClassName:
+ ## If set to "-", storageClassName: "", which disables dynamic provisioning
+ ## If undefined (the default) or set to null, no storageClassName spec is
+ ## set, choosing the default provisioner. (gp2 on AWS, standard on
+ ## GKE, AWS & OpenStack)
+ ##
+ storageClass: ""
+ ## @param persistence.accessModes PVC Access Mode for Gitea volume
+ ## Requires persistence.enabled: true
+ ## If defined, PVC must be created manually before volume will be bound
+ ##
+ accessModes:
+ - ReadWriteOnce
+ ## @param persistence.size PVC Storage Request for Gitea volume
+ ##
+ size: 8Gi
+ ## @param persistence.dataSource Custom PVC data source
+ ##
+ dataSource: {}
+ ## @param persistence.existingClaim A manually managed Persistent Volume Claim
+ ## Requires persistence.enabled: true
+ ## If defined, PVC must be created manually before volume will be bound
+ ##
+ existingClaim: ""
+ ## @param persistence.hostPath If defined, the gitea-data volume will mount to the specified hostPath.
+ ## Requires persistence.enabled: true
+ ## Requires persistence.existingClaim: nil|false
+ ## Default: nil.
+ ##
+ hostPath: ""
+ ## @param persistence.annotations Persistent Volume Claim annotations
+ ##
+ annotations: {}
+ ## @param persistence.selector Selector to match an existing Persistent Volume for Gitea data PVC
+ ## If set, the PVC can't have a PV dynamically provisioned for it
+ ## E.g.
+ ## selector:
+ ## matchLabels:
+ ## app: my-app
+ ##
+ selector: {}
+## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
+## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
+##
+podAffinityPreset: ""
+## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
+## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
+##
+podAntiAffinityPreset: soft
+## Node affinity preset
+## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
+## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
+## @param nodeAffinityPreset.key Node label key to match Ignored if `affinity` is set.
+## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
+##
+nodeAffinityPreset:
+ type: ""
+ ## E.g.
+ ## key: "kubernetes.io/e2e-az-name"
+ ##
+ key: ""
+ ## E.g.
+ ## values:
+ ## - e2e-az1
+ ## - e2e-az2
+ ##
+ values: []
+## @param affinity Affinity for pod assignment
+## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
+## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
+##
+affinity: {}
+## @param nodeSelector Node labels for pod assignment. Evaluated as a template.
+## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
+##
+nodeSelector: {}
+## Gitea container's resource requests and limits
+## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
+## @param resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if resources is set (resources is recommended for production).
+## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
+##
+resourcesPreset: "micro"
+## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
+## Example:
+## resources:
+## requests:
+## cpu: 2
+## memory: 512Mi
+## limits:
+## cpu: 3
+## memory: 1024Mi
+##
+resources: {}
+## Configure Pods Security Context
+## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
+## @param podSecurityContext.enabled Enable Gitea pods' Security Context
+## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
+## @param podSecurityContext.sysctls Set kernel settings using the sysctl interface
+## @param podSecurityContext.supplementalGroups Set filesystem extra groups
+## @param podSecurityContext.fsGroup Gitea pods' group ID
+##
+podSecurityContext:
+ enabled: true
+ fsGroupChangePolicy: Always
+ sysctls: []
+ supplementalGroups: []
+ fsGroup: 1001
+## Configure Container Security Context (only main container)
+## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
+## @param containerSecurityContext.enabled Enabled containers' Security Context
+## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
+## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
+## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
+## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
+## @param containerSecurityContext.privileged Set container's Security Context privileged
+## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
+## @param containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
+## @param containerSecurityContext.capabilities.drop List of capabilities to be dropped
+## @param containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
+##
+containerSecurityContext:
+ enabled: true
+ seLinuxOptions: {}
+ runAsUser: 1001
+ runAsGroup: 1001
+ runAsNonRoot: true
+ privileged: false
+ readOnlyRootFilesystem: true
+ allowPrivilegeEscalation: false
+ capabilities:
+ drop: ["ALL"]
+ seccompProfile:
+ type: "RuntimeDefault"
+## Configure extra options for startup probe
+## Gitea core exposes / to unauthenticated requests, making it a good
+## default startup and readiness path. However, that may not always be the
+## case. For example, if the image value is overridden to an image containing a
+## module that alters that route, or an image that does not auto-install Gitea.
+## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
+## @param startupProbe.enabled Enable startupProbe
+## @param startupProbe.path Request path for startupProbe
+## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
+## @param startupProbe.periodSeconds Period seconds for startupProbe
+## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
+## @param startupProbe.failureThreshold Failure threshold for startupProbe
+## @param startupProbe.successThreshold Success threshold for startupProbe
+##
+startupProbe:
+ enabled: false
+ path: /
+ initialDelaySeconds: 600
+ periodSeconds: 10
+ timeoutSeconds: 5
+ failureThreshold: 5
+ successThreshold: 1
+## Configure extra options for liveness probe
+## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
+## @param livenessProbe.enabled Enable livenessProbe
+## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
+## @param livenessProbe.periodSeconds Period seconds for livenessProbe
+## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
+## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
+## @param livenessProbe.successThreshold Success threshold for livenessProbe
+##
+livenessProbe:
+ enabled: true
+ initialDelaySeconds: 600
+ periodSeconds: 10
+ timeoutSeconds: 5
+ failureThreshold: 5
+ successThreshold: 1
+## Configure extra options for readiness probe
+## Gitea core exposes / to unauthenticated requests, making it a good
+## default startup and readiness path. However, that may not always be the
+## case. For example, if the image value is overridden to an image containing a
+## module that alters that route, or an image that does not auto-install Gitea.
+## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
+## @param readinessProbe.enabled Enable readinessProbe
+## @param readinessProbe.path Request path for readinessProbe
+## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
+## @param readinessProbe.periodSeconds Period seconds for readinessProbe
+## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
+## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
+## @param readinessProbe.successThreshold Success threshold for readinessProbe
+##
+readinessProbe:
+ enabled: true
+ path: /
+ initialDelaySeconds: 30
+ periodSeconds: 5
+ timeoutSeconds: 1
+ failureThreshold: 5
+ successThreshold: 1
+## @param customStartupProbe Override default startup probe
+##
+customStartupProbe: {}
+## @param customLivenessProbe Override default liveness probe
+##
+customLivenessProbe: {}
+## @param customReadinessProbe Override default readiness probe
+##
+customReadinessProbe: {}
+## @param lifecycleHooks LifecycleHook to set additional configuration at startup Evaluated as a template
+##
+lifecycleHooks: {}
+## @param podAnnotations Pod annotations
+## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
+##
+podAnnotations: {}
+## @param podLabels Add additional labels to the pod (evaluated as a template)
+## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+##
+podLabels: {}
+## @section Traffic Exposure Parameters
+##
+
+## Kubernetes configuration. For minikube, set this to NodePort, elsewhere use LoadBalancer
+##
+service:
+ ## @param service.type Kubernetes Service type
+ ##
+ type: LoadBalancer
+ ## @param service.ports.http Service HTTP port
+ ## @param service.ports.ssh Service SSH port
+ ##
+ ports:
+ http: 80
+ ssh: 22
+ ## @param service.loadBalancerSourceRanges Restricts access for LoadBalancer (only with `service.type: LoadBalancer`)
+ ## e.g:
+ ## loadBalancerSourceRanges:
+ ## - 0.0.0.0/0
+ ##
+ loadBalancerSourceRanges: []
+ ## @param service.loadBalancerIP loadBalancerIP for the Gitea Service (optional, cloud specific)
+ ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
+ ##
+ loadBalancerIP: ""
+ ## @param service.nodePorts [object] Kubernetes node port
+ ## nodePorts:
+ ## http:
+ ## https:
+ ##
+ nodePorts:
+ http: ""
+ ssh: ""
+ ## @param service.externalTrafficPolicy Enable client source IP preservation
+ ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
+ ##
+ externalTrafficPolicy: Cluster
+ ## @param service.clusterIP Gitea service Cluster IP
+ ## e.g.:
+ ## clusterIP: None
+ ##
+ clusterIP: ""
+ ## @param service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
+ ##
+ extraPorts: []
+ ## @param service.annotations Additional custom annotations for Gitea service
+ ##
+ annotations: {}
+ ## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
+ ## If "ClientIP", consecutive client requests will be directed to the same Pod
+ ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
+ ##
+ sessionAffinity: None
+ ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
+ ## sessionAffinityConfig:
+ ## clientIP:
+ ## timeoutSeconds: 300
+ ##
+ sessionAffinityConfig: {}
+
+## Network Policy configuration
+## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
+##
+networkPolicy:
+ ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
+ ##
+ enabled: true
+ ## @param networkPolicy.allowExternal Don't require server label for connections
+ ## The Policy model to apply. When set to false, only pods with the correct
+ ## server label will have network access to the ports server is listening
+ ## on. When true, server will accept connections from any source
+ ## (with the correct destination port).
+ ##
+ allowExternal: true
+ ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
+ ##
+ allowExternalEgress: true
+ ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
+ ## e.g:
+ ## extraIngress:
+ ## - ports:
+ ## - port: 1234
+ ## from:
+ ## - podSelector:
+ ## - matchLabels:
+ ## - role: frontend
+ ## - podSelector:
+ ## - matchExpressions:
+ ## - key: role
+ ## operator: In
+ ## values:
+ ## - frontend
+ extraIngress: []
+ ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
+ ## e.g:
+ ## extraEgress:
+ ## - ports:
+ ## - port: 1234
+ ## to:
+ ## - podSelector:
+ ## - matchLabels:
+ ## - role: frontend
+ ## - podSelector:
+ ## - matchExpressions:
+ ## - key: role
+ ## operator: In
+ ## values:
+ ## - frontend
+ ##
+ extraEgress: []
+ ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
+ ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
+ ##
+ ingressNSMatchLabels: {}
+ ingressNSPodMatchLabels: {}
+
+## Configure the ingress resource that allows you to access the
+## Gitea installation. Set up the URL
+## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
+##
+ingress:
+ ## @param ingress.enabled Enable ingress controller resource
+ ##
+ enabled: false
+ ## @param ingress.pathType Ingress Path type
+ ##
+ pathType: ImplementationSpecific
+ ## @param ingress.apiVersion Override API Version (automatically detected if not set)
+ ##
+ apiVersion: ""
+ ## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
+ ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
+ ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
+ ##
+ ingressClassName: ""
+ ## @param ingress.hostname Default host for the ingress resource
+ ##
+ hostname: "gitea.local"
+ ## @param ingress.path The Path to Gitea. You may need to set this to '/*' in order to use this
+ ## with ALB ingress controllers.
+ ##
+ path: /
+ ## @param ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
+ ## For a full list of possible ingress annotations, please see
+ ## ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md
+ ## Use this parameter to set the required annotations for cert-manager, see
+ ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
+ ##
+ ## e.g:
+ ## annotations:
+ ## kubernetes.io/ingress.class: nginx
+ ## cert-manager.io/cluster-issuer: cluster-issuer-name
+ ##
+ annotations: {}
+ ## @param ingress.tls Enable TLS configuration for the hostname defined at ingress.hostname parameter
+ ## TLS certificates will be retrieved from a TLS secret with name: {{- printf "%s-tls" .Values.ingress.hostname }}
+ ## You can use the ingress.secrets parameter to create this TLS secret or relay on cert-manager to create it
+ ##
+ tls: false
+ ## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
+ ##
+ selfSigned: false
+ ## @param ingress.extraHosts The list of additional hostnames to be covered with this ingress record.
+ ## Most likely the hostname above will be enough, but in the event more hosts are needed, this is an array
+ ## extraHosts:
+ ## - name: gitea.local
+ ## path: /
+ ##
+ extraHosts: []
+ ## @param ingress.extraPaths Any additional arbitrary paths that may need to be added to the ingress under the main host.
+ ## For example: The ALB ingress controller requires a special rule for handling SSL redirection.
+ ## extraPaths:
+ ## - path: /*
+ ## backend:
+ ## serviceName: ssl-redirect
+ ## servicePort: use-annotation
+ ##
+ extraPaths: []
+ ## @param ingress.extraTls The tls configuration for additional hostnames to be covered with this ingress record.
+ ## see: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
+ ## extraTls:
+ ## - hosts:
+ ## - gitea.local
+ ## secretName: gitea.local-tls
+ ##
+ extraTls: []
+ ## @param ingress.secrets If you're providing your own certificates, please use this to add the certificates as secrets
+ ## key and certificate should start with -----BEGIN CERTIFICATE----- or
+ ## -----BEGIN RSA PRIVATE KEY-----
+ ##
+ ## name should line up with a tlsSecret set further up
+ ## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set
+ ##
+ ## It is also possible to create and manage the certificates outside of this helm chart
+ ## Please see README.md for more information
+ ## Example:
+ ## - name: gitea.local-tls
+ ## key:
+ ## certificate:
+ ##
+ secrets: []
+ ## @param ingress.extraRules Additional rules to be covered with this ingress record
+ ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
+ ## e.g:
+ ## extraRules:
+ ## - host: example.local
+ ## http:
+ ## path: /
+ ## backend:
+ ## service:
+ ## name: example-svc
+ ## port:
+ ## name: http
+ ##
+ extraRules: []
+## @section Other Parameters
+##
+
+## Service account for Gitea to use.
+## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
+##
+serviceAccount:
+ ## @param serviceAccount.create Enable creation of ServiceAccount for Gitea pod
+ ##
+ create: true
+ ## @param serviceAccount.name The name of the ServiceAccount to use.
+ ## If not set and create is true, a name is generated using the common.names.fullname template
+ ##
+ name: ""
+ ## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
+ ## Can be set to false if pods using this serviceAccount do not need to use K8s API
+ ##
+ automountServiceAccountToken: false
+ ## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
+ ##
+ annotations: {}
+## @section Database parameters
+##
+
+## PostgreSQL chart configuration
+## ref: https://github.com/bitnami/charts/blob/main/bitnami/postgresql/values.yaml
+## @param postgresql.enabled Switch to enable or disable the PostgreSQL helm chart
+## @param postgresql.auth.username Name for a custom user to create
+## @param postgresql.auth.password Password for the custom user to create
+## @param postgresql.auth.database Name for a custom database to create
+## @param postgresql.auth.existingSecret Name of existing secret to use for PostgreSQL credentials
+## @param postgresql.architecture PostgreSQL architecture (`standalone` or `replication`)
+## @param postgresql.service.ports.postgresql PostgreSQL service port
+##
+postgresql:
+ enabled: true
+ auth:
+ username: bn_gitea
+ password: ""
+ database: bitnami_gitea
+ existingSecret: ""
+ architecture: standalone
+ service:
+ ports:
+ postgresql: 5432
+## External PostgreSQL configuration
+## All of these values are only used when postgresql.enabled is set to false
+## @param externalDatabase.host Database host
+## @param externalDatabase.port Database port number
+## @param externalDatabase.user Non-root username for JupyterHub
+## @param externalDatabase.password Password for the non-root username for JupyterHub
+## @param externalDatabase.database JupyterHub database name
+## @param externalDatabase.existingSecret Name of an existing secret resource containing the database credentials
+## @param externalDatabase.existingSecretPasswordKey Name of an existing secret key containing the database credentials
+##
+externalDatabase:
+ host: ""
+ port: 5432
+ user: postgres
+ database: gitea
+ password: ""
+ existingSecret: ""
+ existingSecretPasswordKey: "db-password"
+## @section Volume Permissions parameters
+##
+
+## Init containers parameters:
+## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
+##
+volumePermissions:
+ ## @param volumePermissions.enabled Enable init container that changes volume permissions in the data directory (for cases where the default k8s `runAsUser` and `fsUser` values do not work)
+ ##
+ enabled: false
+ ## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
+ ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image name
+ ## @skip volumePermissions.image.tag Init container volume-permissions image tag
+ ## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
+ ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
+ ## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
+ ##
+ image:
+ registry: docker.io
+ repository: bitnami/os-shell
+ tag: 12-debian-12-r25
+ digest: ""
+ pullPolicy: IfNotPresent
+ ## Optionally specify an array of imagePullSecrets.
+ ## Secrets must be manually created in the namespace.
+ ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
+ ## e.g:
+ ## pullSecrets:
+ ## - myRegistryKeySecretName
+ ##
+ pullSecrets: []
+ ## Init containers' resource requests and limits
+ ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
+ ## We usually recommend not to specify default resources and to leave this as a conscious
+ ## choice for the user. This also increases chances charts run on environments with little
+ ## resources, such as Minikube. If you do want to specify resources, uncomment the following
+ ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
+ ## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
+ ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
+ ##
+ resourcesPreset: "nano"
+ ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
+ ## Example:
+ ## resources:
+ ## requests:
+ ## cpu: 2
+ ## memory: 512Mi
+ ## limits:
+ ## cpu: 3
+ ## memory: 1024Mi
+ ##
+ resources: {}
diff --git a/apps/gitea/env/k3s-cluster/Chart.yaml b/apps/gitea/env/k3s-cluster/Chart.yaml
new file mode 100644
index 0000000..d7353ef
--- /dev/null
+++ b/apps/gitea/env/k3s-cluster/Chart.yaml
@@ -0,0 +1,28 @@
+apiVersion: v2
+name: gitea
+description: Applications
+
+# A chart can be either an 'application' or a 'library' chart.
+#
+# Application charts are a collection of templates that can be packaged into versioned archives
+# to be deployed.
+#
+# Library charts provide useful utilities or functions for the chart developer. They're included as
+# a dependency of application charts to inject those utilities and functions into the rendering
+# pipeline. Library charts do not define any templates and therefore cannot be deployed.
+type: application
+
+# This is the chart version. This version number should be incremented each time you make changes
+# to the chart and its templates, including the app version.
+# Versions are expected to follow Semantic Versioning (https://semver.org/)
+version: 0.1.0
+
+# This is the version number of the application being deployed. This version number should be
+# incremented each time you make changes to the application. Versions are not expected to
+# follow Semantic Versioning. They should reflect the version the application is using.
+appVersion: "0.0.1"
+
+dependencies:
+ - name: gitea
+ version: 2.3.13
+ repository: "https://raw.githubusercontent.com/3dwardch3ng/home-cluster-ops/main/apps/gitea/base"
\ No newline at end of file
diff --git a/apps/gitea/env/k3s-cluster/config.json b/apps/gitea/env/k3s-cluster/config.json
new file mode 100644
index 0000000..dc1ebfd
--- /dev/null
+++ b/apps/gitea/env/k3s-cluster/config.json
@@ -0,0 +1,12 @@
+{
+ "appName": "XXX",
+ "userGivenName": "XXX",
+ "namespace": "XXX",
+ "destNamespace": "XXX",
+ "destServer": "https://kubernetes.default.svc",
+ "srcPath": "XXX/XXX/env/k3s-cluster",
+ "srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
+ "srcTargetRevision": "",
+ "labels": null,
+ "annotations": null
+}
\ No newline at end of file
diff --git a/apps/gitea/env/k3s-cluster/kustomization.yaml b/apps/gitea/env/k3s-cluster/kustomization.yaml
new file mode 100644
index 0000000..a227ac4
--- /dev/null
+++ b/apps/gitea/env/k3s-cluster/kustomization.yaml
@@ -0,0 +1,4 @@
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+resources:
+ - ../../base
\ No newline at end of file
diff --git a/apps/gitea/env/k3s-cluster/templates/_helpers.tpl b/apps/gitea/env/k3s-cluster/templates/_helpers.tpl
new file mode 100644
index 0000000..798f423
--- /dev/null
+++ b/apps/gitea/env/k3s-cluster/templates/_helpers.tpl
@@ -0,0 +1,174 @@
+{{/*
+Copyright Broadcom, Inc. All Rights Reserved.
+SPDX-License-Identifier: APACHE-2.0
+*/}}
+
+{{/*
+Create a default fully qualified postgresql name.
+We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
+*/}}
+{{- define "gitea.postgresql.fullname" -}}
+{{- include "common.names.dependency.fullname" (dict "chartName" "postgresql" "chartValues" .Values.postgresql "context" $) -}}
+{{- end -}}
+
+{{/*
+Return the proper Gitea image name
+*/}}
+{{- define "gitea.image" -}}
+{{- include "common.images.image" (dict "imageRoot" .Values.image "global" .Values.global) -}}
+{{- end -}}
+
+{{/*
+Return the proper image name (for the init container volume-permissions image)
+*/}}
+{{- define "gitea.volumePermissions.image" -}}
+{{- include "common.images.image" ( dict "imageRoot" .Values.volumePermissions.image "global" .Values.global ) -}}
+{{- end -}}
+
+{{/*
+Return the proper Docker Image Registry Secret Names
+*/}}
+{{- define "gitea.imagePullSecrets" -}}
+{{- include "common.images.pullSecrets" (dict "images" (list .Values.image .Values.volumePermissions.image) "global" .Values.global) -}}
+{{- end -}}
+
+{{/*
+Return the proper Storage Class
+*/}}
+{{- define "gitea.storageClass" -}}
+{{- include "common.storage.class" (dict "persistence" .Values.persistence "global" .Values.global) -}}
+{{- end -}}
+
+{{/*
+Gitea credential secret name
+*/}}
+{{- define "gitea.secretName" -}}
+{{- coalesce .Values.existingSecret (include "common.names.fullname" .) -}}
+{{- end -}}
+
+{{/*
+Gitea root URL
+*/}}
+{{- define "gitea.rootURL" -}}
+{{- if .Values.rootURL -}}
+ {{- print .Values.rootURL -}}
+{{- else if .Values.ingress.enabled -}}
+ {{- printf "http://%s" .Values.ingress.hostname -}}
+{{- else if (and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerIP) -}}
+ {{- $url := printf "http://%s" .Values.service.loadBalancerIP -}}
+ {{- $port:= .Values.service.ports.http | toString }}
+ {{- if (ne $port "80") -}}
+ {{- $url = printf "%s:%s" $url $port -}}
+ {{- end -}}
+ {{- print $url -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+ Create the name of the service account to use
+ */}}
+{{- define "gitea.serviceAccountName" -}}
+{{- if .Values.serviceAccount.create -}}
+ {{- default (include "common.names.fullname" .) .Values.serviceAccount.name -}}
+{{- else -}}
+ {{- default "default" .Values.serviceAccount.name -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Gitea credential secret name
+*/}}
+{{- define "gitea.secretKey" -}}
+{{- if .Values.existingSecret -}}
+ {{- print .Values.existingSecretKey -}}
+{{- else -}}
+ {{- print "admin-password" -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Return the SMTP Secret Name
+*/}}
+{{- define "gitea.smtpSecretName" -}}
+{{- if .Values.smtpExistingSecret }}
+ {{- print .Values.smtpExistingSecret -}}
+{{- else -}}
+ {{- print (include "common.names.fullname" .) -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Return the PostgreSQL Hostname
+*/}}
+{{- define "gitea.databaseHost" -}}
+{{- if .Values.postgresql.enabled }}
+ {{- if eq .Values.postgresql.architecture "replication" }}
+ {{- printf "%s-%s" (include "gitea.postgresql.fullname" .) "primary" | trunc 63 | trimSuffix "-" -}}
+ {{- else -}}
+ {{- print (include "gitea.postgresql.fullname" .) -}}
+ {{- end -}}
+{{- else -}}
+ {{- print .Values.externalDatabase.host -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Return the PostgreSQL Port
+*/}}
+{{- define "gitea.databasePort" -}}
+{{- if .Values.postgresql.enabled }}
+ {{- print .Values.postgresql.primary.service.ports.postgresql -}}
+{{- else -}}
+ {{- printf "%d" (.Values.externalDatabase.port | int ) -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Return the PostgreSQL Database Name
+*/}}
+{{- define "gitea.databaseName" -}}
+{{- if .Values.postgresql.enabled }}
+ {{- print .Values.postgresql.auth.database -}}
+{{- else -}}
+ {{- print .Values.externalDatabase.database -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Return the PostgreSQL User
+*/}}
+{{- define "gitea.databaseUser" -}}
+{{- if .Values.postgresql.enabled }}
+ {{- print .Values.postgresql.auth.username -}}
+{{- else -}}
+ {{- print .Values.externalDatabase.user -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Return the PostgreSQL Secret Name
+*/}}
+{{- define "gitea.databaseSecretName" -}}
+{{- if .Values.postgresql.enabled }}
+ {{- if .Values.postgresql.auth.existingSecret -}}
+ {{- print .Values.postgresql.auth.existingSecret -}}
+ {{- else -}}
+ {{- print (include "gitea.postgresql.fullname" .) -}}
+ {{- end -}}
+{{- else if .Values.externalDatabase.existingSecret -}}
+ {{- print .Values.externalDatabase.existingSecret -}}
+{{- else -}}
+ {{- printf "%s-%s" (include "common.names.fullname" .) "externaldb" -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Return the database password key
+*/}}
+{{- define "gitea.databasePasswordKey" -}}
+{{- if .Values.postgresql.enabled -}}
+{{- print "password" -}}
+{{- else -}}
+{{ print .Values.externalDatabase.existingSecretPasswordKey }}
+{{- end -}}
+{{- end -}}
diff --git a/apps/gitea/env/k3s-cluster/templates/deployment.yaml b/apps/gitea/env/k3s-cluster/templates/deployment.yaml
new file mode 100644
index 0000000..1923789
--- /dev/null
+++ b/apps/gitea/env/k3s-cluster/templates/deployment.yaml
@@ -0,0 +1,302 @@
+{{- /*
+Copyright Broadcom, Inc. All Rights Reserved.
+SPDX-License-Identifier: APACHE-2.0
+*/}}
+
+apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
+kind: Deployment
+metadata:
+ name: {{ include "common.names.fullname" . }}
+ namespace: {{ include "common.names.namespace" . | quote }}
+ labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
+ {{- if .Values.commonAnnotations }}
+ annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
+ {{- end }}
+spec:
+ {{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }}
+ selector:
+ matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
+ {{- if .Values.updateStrategy }}
+ strategy: {{- toYaml .Values.updateStrategy | nindent 4 }}
+ {{- end }}
+ replicas: 1
+ template:
+ metadata:
+ labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }}
+ {{- if .Values.podAnnotations }}
+ annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }}
+ {{- end }}
+ spec:
+ {{- include "gitea.imagePullSecrets" . | nindent 6 }}
+ serviceAccountName: {{ include "gitea.serviceAccountName" . }}
+ {{- if .Values.podSecurityContext.enabled }}
+ securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.podSecurityContext "context" $) | nindent 8 }}
+ {{- end }}
+ {{- if .Values.affinity }}
+ affinity: {{- include "common.tplvalues.render" (dict "value" .Values.affinity "context" $) | nindent 8 }}
+ {{- else }}
+ affinity:
+ podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAffinityPreset "customLabels" $podLabels "context" $) | nindent 10 }}
+ podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "customLabels" $podLabels "context" $) | nindent 10 }}
+ nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.nodeAffinityPreset.type "key" .Values.nodeAffinityPreset.key "values" .Values.nodeAffinityPreset.values) | nindent 10 }}
+ {{- end }}
+ {{- if .Values.schedulerName }}
+ schedulerName: {{ .Values.schedulerName }}
+ {{- end }}
+ {{- if .Values.topologySpreadConstraints }}
+ topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.topologySpreadConstraints "context" .) | nindent 8 }}
+ {{- end }}
+ priorityClassName: {{ .Values.priorityClassName | quote }}
+ {{- if .Values.nodeSelector }}
+ nodeSelector: {{- include "common.tplvalues.render" (dict "value" .Values.nodeSelector "context" $) | nindent 8 }}
+ {{- end }}
+ {{- if .Values.tolerations }}
+ tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.tolerations "context" $) | nindent 8 }}
+ {{- end }}
+ automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
+ {{- if .Values.hostAliases }}
+ # yamllint disable rule:indentation
+ hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }}
+ # yamllint enable rule:indentation
+ {{- end }}
+ initContainers:
+ {{- if .Values.initContainers }}
+ {{- include "common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }}
+ {{- end }}
+ {{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }}
+ - name: volume-permissions
+ image: {{ include "gitea.volumePermissions.image" . }}
+ imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }}
+ command:
+ - sh
+ - -c
+ - |
+ mkdir -p "/bitnami/gitea"
+ chown -R "{{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }}" "/bitnami/gitea"
+ securityContext:
+ runAsUser: 0
+ {{- if .Values.volumePermissions.resources }}
+ resources: {{- toYaml .Values.volumePermissions.resources | nindent 12 }}
+ {{- else if ne .Values.volumePermissions.resourcesPreset "none" }}
+ resources: {{- include "common.resources.preset" (dict "type" .Values.volumePermissions.resourcesPreset) | nindent 12 }}
+ {{- end }}
+ volumeMounts:
+ - name: gitea-data
+ mountPath: /bitnami/gitea
+ {{- end }}
+ - name: prepare-base-dir
+ image: {{ include "gitea.image" . }}
+ imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
+ {{- if .Values.resources }}
+ resources: {{- toYaml .Values.resources | nindent 12 }}
+ {{- else if ne .Values.resourcesPreset "none" }}
+ resources: {{- include "common.resources.preset" (dict "type" .Values.resourcesPreset) | nindent 12 }}
+ {{- end }}
+ {{- if .Values.containerSecurityContext.enabled }}
+ securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.containerSecurityContext "context" $) | nindent 12 }}
+ {{- end }}
+ command:
+ - /bin/bash
+ args:
+ - -ec
+ - |
+ #!/bin/bash
+
+ . /opt/bitnami/scripts/liblog.sh
+
+ info "Copying base dir to empty dir"
+ # In order to not break the application functionality (such as upgrades or plugins) we need
+ # to make the base directory writable, so we need to copy it to an empty dir volume
+ cp -r --preserve=mode /opt/bitnami/gitea /emptydir/app-base-dir
+
+ info "Copy operation completed"
+ volumeMounts:
+ - name: empty-dir
+ mountPath: /emptydir
+ containers:
+ - name: gitea
+ image: {{ template "gitea.image" . }}
+ imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
+ {{- if .Values.command }}
+ command: {{- include "common.tplvalues.render" (dict "value" .Values.command "context" $) | nindent 12 }}
+ {{- end }}
+ {{- if .Values.args }}
+ args: {{- include "common.tplvalues.render" (dict "value" .Values.args "context" $) | nindent 12 }}
+ {{- end }}
+ {{- if .Values.containerSecurityContext.enabled }}
+ securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.containerSecurityContext "context" $) | nindent 12 }}
+ {{- end }}
+ env:
+ - name: BITNAMI_DEBUG
+ value: {{ ternary "true" "false" .Values.image.debug | quote }}
+ - name: GITEA_HTTP_PORT
+ value: {{ .Values.containerPorts.http | quote }}
+ - name: GITEA_SSH_LISTEN_PORT
+ value: {{ .Values.containerPorts.ssh | quote }}
+ - name: GITEA_SSH_PORT
+ value: {{ .Values.service.ports.ssh | quote }}
+ - name: GITEA_DATABASE_HOST
+ valueFrom:
+ secretKeyRef:
+ name: gitea-secrets
+ key: db_host
+ - name: GITEA_DATABASE_PORT_NUMBER
+ valueFrom:
+ secretKeyRef:
+ name: gitea-secrets
+ key: db_port
+ - name: GITEA_DATABASE_NAME
+ valueFrom:
+ secretKeyRef:
+ name: gitea-secrets
+ key: db_name
+ - name: GITEA_DATABASE_USERNAME
+ vvalueFrom:
+ secretKeyRef:
+ name: gitea-secrets
+ key: db_user
+ - name: GITEA_DATABASE_PASSWORD
+ valueFrom:
+ secretKeyRef:
+ name: gitea-secrets
+ key: db_password
+ - name: GITEA_ADMIN_USER
+ valueFrom:
+ secretKeyRef:
+ name: gitea-secrets
+ key: admin_username
+ - name: GITEA_ADMIN_PASSWORD
+ valueFrom:
+ secretKeyRef:
+ name: gitea-secrets
+ key: admin_username
+ - name: GITEA_ADMIN_EMAIL
+ valueFrom:
+ secretKeyRef:
+ name: gitea-secrets
+ key: admin_email
+ - name: GITEA_APP_NAME
+ value: {{ .Values.appName | quote }}
+ - name: GITEA_RUN_MODE
+ value: {{ .Values.runMode | quote }}
+ {{- if (include "gitea.rootURL" .) }}
+ - name: GITEA_ROOT_URL
+ value: {{ include "gitea.rootURL" . | quote }}
+ {{- end }}
+ {{- if .Values.smtpHost }}
+ - name: GITEA_SMTP_HOST
+ value: {{ .Values.smtpHost | quote }}
+ {{- end }}
+ {{- if .Values.smtpPort }}
+ - name: GITEA_SMTP_PORT
+ value: {{ .Values.smtpPort | quote }}
+ {{- end }}
+ {{- if .Values.smtpUser }}
+ - name: GITEA_SMTP_USER
+ value: {{ .Values.smtpUser | quote }}
+ {{- end }}
+ {{- if or .Values.smtpPassword .Values.smtpExistingSecret }}
+ - name: GITEA_SMTP_PASSWORD
+ valueFrom:
+ secretKeyRef:
+ name: {{ include "gitea.smtpSecretName" . }}
+ key: smtp-password
+ {{- end }}
+ - name: GITEA_ENABLE_OPENID_SIGNIN
+ value: {{ .Values.openid.enableSignIn | quote }}
+ - name: GITEA_ENABLE_OPENID_SIGNUP
+ value: {{ .Values.openid.enableSignUp | quote }}
+ {{- if .Values.extraEnvVars }}
+ {{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
+ {{- end }}
+ envFrom:
+ {{- if .Values.extraEnvVarsCM }}
+ - configMapRef:
+ name: {{ include "common.tplvalues.render" (dict "value" .Values.extraEnvVarsCM "context" $) }}
+ {{- end }}
+ {{- if .Values.extraEnvVarsSecret }}
+ - secretRef:
+ name: {{ include "common.tplvalues.render" (dict "value" .Values.extraEnvVarsSecret "context" $) }}
+ {{- end }}
+ {{- if .Values.lifecycleHooks }}
+ lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleHooks "context" $) | nindent 12 }}
+ {{- end }}
+ ports:
+ - name: http
+ containerPort: {{ .Values.containerPorts.http }}
+ - name: ssh
+ containerPort: {{ .Values.containerPorts.ssh }}
+ {{- if .Values.extraContainerPorts }}
+ {{- include "common.tplvalues.render" (dict "value" .Values.extraContainerPorts "context" $) | nindent 12 }}
+ {{- end }}
+ {{- if .Values.customStartupProbe }}
+ startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customStartupProbe "context" $) | nindent 12 }}
+ {{- else if .Values.startupProbe.enabled }}
+ startupProbe:
+ httpGet:
+ path: {{ .Values.startupProbe.path }}
+ port: http
+ initialDelaySeconds: {{ .Values.startupProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.startupProbe.periodSeconds }}
+ timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }}
+ successThreshold: {{ .Values.startupProbe.successThreshold }}
+ failureThreshold: {{ .Values.startupProbe.failureThreshold }}
+ {{- end }}
+ {{- if .Values.customLivenessProbe }}
+ livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }}
+ {{- else if .Values.livenessProbe.enabled }}
+ livenessProbe:
+ tcpSocket:
+ port: http
+ initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
+ timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
+ successThreshold: {{ .Values.livenessProbe.successThreshold }}
+ failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
+ {{- end }}
+ {{- if .Values.customReadinessProbe }}
+ readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 12 }}
+ {{- else if .Values.readinessProbe.enabled }}
+ readinessProbe:
+ httpGet:
+ path: {{ .Values.readinessProbe.path }}
+ port: http
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
+ failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
+ {{- end }}
+ {{- if .Values.resources }}
+ resources: {{- toYaml .Values.resources | nindent 12 }}
+ {{- else if ne .Values.resourcesPreset "none" }}
+ resources: {{- include "common.resources.preset" (dict "type" .Values.resourcesPreset) | nindent 12 }}
+ {{- end }}
+ volumeMounts:
+ - name: gitea-data
+ mountPath: /bitnami/gitea
+ - name: empty-dir
+ mountPath: /opt/bitnami/gitea
+ subPath: app-base-dir
+ - name: empty-dir
+ mountPath: /tmp
+ subPath: tmp-dir
+ {{- if .Values.extraVolumeMounts }}
+ {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
+ {{- end }}
+ {{- if .Values.sidecars }}
+ {{- include "common.tplvalues.render" (dict "value" .Values.sidecars "context" $) | nindent 8 }}
+ {{- end }}
+ volumes:
+ - name: empty-dir
+ emptyDir: {}
+ - name: gitea-data
+ {{- if .Values.persistence.enabled }}
+ persistentVolumeClaim:
+ claimName: {{ .Values.persistence.existingClaim | default (print (include "common.names.fullname" .)) }}
+ {{- else }}
+ emptyDir: {}
+ {{- end }}
+ {{- if .Values.extraVolumes }}
+ {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }}
+ {{- end }}
diff --git a/apps/gitea/env/k3s-cluster/templates/ingress.yaml b/apps/gitea/env/k3s-cluster/templates/ingress.yaml
new file mode 100644
index 0000000..1a4b4a1
--- /dev/null
+++ b/apps/gitea/env/k3s-cluster/templates/ingress.yaml
@@ -0,0 +1,32 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: gitea-ingress
+ namespace: gitea
+ annotations:
+ nginx.ingress.kubernetes.io/ssl-redirect: "false"
+ nginx.ingress.kubernetes.io/use-regex: "true"
+ nginx.ingress.kubernetes.io/proxy-body-size: "50m"
+spec:
+ ingressClassName: nginx
+ rules:
+ - host: "gitea.cluster.local"
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: gitea-gitea
+ port:
+ number: 10080
+ - host: "gitea.cluster.edward.sydney"
+ http:
+ paths:
+ - pathType: Prefix
+ path: "/"
+ backend:
+ service:
+ name: gitea-gitea
+ port:
+ number: 10080
\ No newline at end of file
diff --git a/apps/gitea/env/k3s-cluster/templates/svc.yaml b/apps/gitea/env/k3s-cluster/templates/svc.yaml
new file mode 100644
index 0000000..bd8bc11
--- /dev/null
+++ b/apps/gitea/env/k3s-cluster/templates/svc.yaml
@@ -0,0 +1,59 @@
+{{- /*
+Copyright Broadcom, Inc. All Rights Reserved.
+SPDX-License-Identifier: APACHE-2.0
+*/}}
+
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "common.names.fullname" . }}
+ namespace: {{ include "common.names.namespace" . | quote }}
+ labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
+ {{- if or .Values.commonAnnotations .Values.service.annotations }}
+ {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.service.annotations .Values.commonAnnotations ) "context" . ) }}
+ annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}
+ {{- end }}
+spec:
+ type: {{ .Values.service.type }}
+ {{- if .Values.service.sessionAffinity }}
+ sessionAffinity: {{ .Values.service.sessionAffinity }}
+ {{- end }}
+ {{- if .Values.service.sessionAffinityConfig }}
+ sessionAffinityConfig: {{- include "common.tplvalues.render" (dict "value" .Values.service.sessionAffinityConfig "context" $) | nindent 4 }}
+ {{- end }}
+ {{- if and .Values.service.clusterIP (eq .Values.service.type "ClusterIP") }}
+ clusterIP: {{ .Values.service.clusterIP }}
+ {{- end }}
+ {{- if (and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP))) }}
+ loadBalancerIP: {{ .Values.service.loadBalancerIP }}
+ {{- end }}
+ {{- if and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerSourceRanges }}
+ loadBalancerSourceRanges: {{- toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }}
+ {{- end }}
+ {{- if or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort") }}
+ externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }}
+ {{- end }}
+ ports:
+ - name: http
+ port: {{ .Values.service.ports.http }}
+ targetPort: http
+ {{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.http)) }}
+ nodePort: {{ .Values.service.nodePorts.http }}
+ {{- else if eq .Values.service.type "ClusterIP" }}
+ nodePort: null
+ {{- end }}
+ {{- if .Values.exposeSSH }}
+ - name: ssh
+ port: {{ .Values.service.ports.ssh }}
+ targetPort: ssh
+ {{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.ssh)) }}
+ nodePort: {{ .Values.service.nodePorts.ssh }}
+ {{- else if eq .Values.service.type "ClusterIP" }}
+ nodePort: null
+ {{- end }}
+ {{- end }}
+ {{- if .Values.service.extraPorts }}
+ {{- include "common.tplvalues.render" (dict "value" .Values.service.extraPorts "context" $) | nindent 4 }}
+ {{- end }}
+ {{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }}
+ selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }}
diff --git a/apps/gitea/env/k3s-cluster/values.yaml b/apps/gitea/env/k3s-cluster/values.yaml
new file mode 100644
index 0000000..7161504
--- /dev/null
+++ b/apps/gitea/env/k3s-cluster/values.yaml
@@ -0,0 +1,37 @@
+image:
+ debug: true
+updateStrategy:
+ type: Recreate
+livenessProbe:
+ enabled: true
+ initialDelaySeconds: 600
+ periodSeconds: 60
+ timeoutSeconds: 30
+ failureThreshold: 5
+ successThreshold: 1
+readinessProbe:
+ enabled: true
+ path: /
+ initialDelaySeconds: 30
+ periodSeconds: 60
+ timeoutSeconds: 30
+ failureThreshold: 5
+ successThreshold: 1
+adminUsername: ${admin_username}
+adminPassword: ${admin_password}
+adminEmail: ${admin_email}
+appName: gitea
+persistence:
+ existingClaim: gitea-pvc
+service:
+ ports:
+ http: 10080
+ ssh: 10022
+postgresql:
+ enabled: false
+externalDatabase:
+ host: ${db_host}
+ port: ${db_port}
+ user: ${db_user}
+ database: ${db_name}
+ password: ${db_password}
\ No newline at end of file
diff --git a/resources/app-secrets/env/k3s-cluster/templates/gitea.yaml b/resources/app-secrets/env/k3s-cluster/templates/gitea.yaml
new file mode 100644
index 0000000..e20de64
--- /dev/null
+++ b/resources/app-secrets/env/k3s-cluster/templates/gitea.yaml
@@ -0,0 +1,30 @@
+---
+apiVersion: bitnami.com/v1alpha1
+kind: SealedSecret
+metadata:
+ annotations:
+ sealedsecrets.bitnami.com/cluster-wide: "true"
+ creationTimestamp: null
+ name: gitea-secrets
+ namespace: gitea
+spec:
+ encryptedData:
+ admin_email: AgA9oimJQpXAdvmQRSd84ygn/l5bSr+o8Cv10oY6qZA6Qp+FpK90o3433HWPrGGXJ+ewGJ4r1LGH7wyHlrsdem8EphjKdqz73WMSnv4Wtjao2P1txOjEmpusn3444j0fT3d8PY+8Q07x0Mj2AGqOIyzAHZfykT9AgX+xJygVv7jt1pjO4KYdtfD2QPt+jPShxpVXD+IP/euf+6rVNbudk/vJgGO4I/ITLlX2tL28vClHEzLst3Us4R81WFztcCbPc93wxvO6QFy5AlrA5CVP2lQJCj/E6uYbc1sO3WdrmkKVyecYd67nVstqp8CWf7qclBuDpj16IDDC+93jbGR6AydvQCgb3tAOGpW9IWghCoiHlWawcMqwbdweVYNF+Z7Rssprt4m60X0+sdMtq7vp43wIqJHWq8jZeLwlEKJDyT96uL5kfnmRpo0tTzbAbQVKBZ5hskJm+ga3Tld42nZytlXx3occ5qABRF5CotqTEtaT9JNPX3yPOVcVegUpmQeQa65Ssg7cJagC9ud1hwoYe/IxOub4xogh+gEDdIipiPGxHDdFZFXCwAVkEJdfBbH5zFXNpr7t8jt0TBkOLvsGzMsgZxqIXHVMrOW/a73urLXiflzEzmU6NET1jji7gwS6rj1Q/cKTNI5R9EsElafGsKy+jsF/BUMiNqInrMbOs+edyaM4S6enYMZU5pJ0HBBdF3AQRZKPSzXn1TFLQYsXkhm0UPC/
+ admin_password: AgBUy2a0J9nZxlngZu9Wl/NaRt+7GtpV1JJbFUNdYgNVInvUL6RO7dQz7zzKepmo4yuBIId7GA/NWvxd4qP9Mwm6/hIGuwNaRzK4vtJrDG0O1pUjJz3gDD5snFYtUEVf1XmBm7YklMy3fNWif7BNbBhHB/RjgD01fpFL5s1y36UxHoicaaLB/iWJXv+ZvKRpnmbsAuxtIwH2Cn0i/mJR0elk80I2ZfwXjfmv49u/R7L86g6aq/XpeFfJ+q0t0ZTzfA98HA6GtUqDw58lshTFbXOwYV5h6JDoKs3yLucu0Q+L6LteEj1PHYB7yDH3/25gMi0ckzJP/Hz8dde8BwO3UQDZtIZ7SvOznXMd3DIj6693URnp4LwPC3UZKqZMUFpGVuZAWQa6w8rmRSBqbsSIwYdEDoAz3Cmw/EJjGQpfs6/n8UZgZ6P78T5cCOEBTpbd1lRR7KcaJqU4mFCJHPSHrxMPi7zEXVrtXEYqIwWN1YrHvFxw8FN+H/Dyq3B6g45hj786uRjOFkbS6I/mgmo9IUhQQgKn9H5K5ze9WGLGl00LR8JPYAdvMnC14IzTVeceU44G/fbZStP9mkayZsBlA/OvGFTg14qC5o6agjB0vZmQkyFYKm7h36Bu/UcLUljNmN7IruLd4zbn+N77mGatjMufJP9tQkfv4YL5NWxUz1v5UY+WG0JIjLj+svawce9xJftk9LJ185VHlnHztFoutTI8e6l7PQ==
+ admin_username: AgC4ih1J5E8YEKBWLrgCbApElhIF75+B7504aIAVM3GfnUI7sdKIlxfjCAR+4vtja6CpTlwNN9GHyq+jNeBQN662R1mm2P4p3/V1tZ3dpwi1xAaPn0JoFVnILO/mkwHGvfKaXeiAscZoVm+s4TNQ5vXNRyPaCNW72tHxBfkTXQOXUyf9sWIX0Mq8eEa6uAkAs/MKwOrU4q2UWn5ASjpy1m/AMJyDB4O/XifxcuAV110ragDLnKJVPoKsw2xdYMSF7nWt2mlKYGzRJKuNYSBZOaUGM4/oqKtPMr2TUxv/ktqZaJ9x2O0kRV+GIJdYJo+XWtZVZtuYN9YZ1++m0A/QECp4ADlh8Vyq7qXPBNYa2k3m6K6yWJk14gl1t+Pamg4fveR0gB52Ow0xFJl6856NfB3/umtWk21TVN1Sx/aZrspJqzqNY9FM0XCZXd4M800LnqwkNdHzuSwNe6kD9Hb1P8v/SrCPfjdhZpFv4msCCXQ8AJ2hx7DV8v8SqYXqjsCrPDxVdcvyOZMEhNXwN53BajE/6dkvy0oFg3aWCd/mupqbPrVdij5+vaEpuyaD8EfnB2K9fOF4XgKYivBAZwvkF3eO81vkrEpqMSABbo2WC+isbWGBsnmzVAw1MNpUj4Vy4pIWJSY+S/fwqRUvF7TMuixW1X6+ZUyhwu3T966o3gm6a1p2D2/B/oil7jYfn8NP+386FjN9/xeMZ6ar5Q==
+ app_name: AgCshGi1SYnZS+R/EVHGyEPOdwYPKSGHd3Q/1MeG00bHp4JK/hMoOf2qnXdIFk08F/uGaJfRajjMXWi/D8aTiFxAMkpg2Ao4Ow5jg7tX42gvXk2qiav6LDf+Vx2jpcBBIrqAt8GBwNBYOJ8g7WMTYqSU8KyFRjGo4ZS6r840OVmyKNzHWLh6S9QICYjSjw/4XGdSdGu7zSFnHxEzM9SnD4K4R5Ndmlkog3gikTMaRApGLg964E+hUQ9VG1hzlhuOtfrgmau9mdELK1zv76JoVqRkLG9ikR05R7OJIzaF/2ozvZWQcIvyApb6axREuBBNbMjn6o3EW83zxO0zUZFbqon0pEUBoPmPC584kQU2DfJjNf8CzBPPMBQVYv4UCPiMdax1xnV5Wm06AuLW9zG3WH5Myf8Zv/qsvISfvtwym4LC+NDLVztc+x8FFERJYsMG/+ndpY+R5Ln1PIZ/8tE6BgSQ0Y3m1ep+gr9H1ZfFEhqcbIE0yWzPsmW+F5xsIhQwm0F025jUF1y7IA1T55N92nHkEcyuwfu2z4kKuEm+AT1hGOk3a2tpVbdEvLXDpl0irfaOyiiunH06jvhliKgfHxCwQGihSD7lfEJUapSh17rXcGEDFXvOGsql4448JuQHB8j5Hdn7xGImF7VtzP0V738rXyMzgtoiwb0QTNl+TopnoUHXElu255ZekHX5RT7LagM8p3kx3g==
+ db_host: AgA7m/x+3dVniLN1p2QhvuFNQKBZ1g+554+q02kbp498LEvg7xlabvcYdYkK+PHi+KoirykenJqyo3eZdwe1LkoSqAgp3LJNF/xWKU1ulpVhZRk68VgGcMdG70cKH9uk9irbOxSRkt/d07yeY1Ba/68PrYy56Lf03hnNyh+RyCMpISy3q7+EwZc6oiqcmV6rxr0AbP1iqV6G6kDVa0iQEerOnOZ0clXjZOERyhGFAv2jEqHuKQXdJ+Su9YIduqoQj+/7yrhmi+ifj33dGAQrZxZlIFcd5PdPJMhSo5WsjCP6bP6a10hi5m0bv6z56Z7dgqHeXzXPJnpnU1fjb4crrJRkSOJzR2mtVlLI8UGdNU7hkYFNvrV4lNDXhcyd8W8cTMCVIJzIW9g5mporMZdghlCwwZkti1CpAshLlKeF3iOUdX0nYWVGNLURg6Kkvta2GwbL3rVMxgZ5HTcWoulvMT12aRPRxGhsyLvXiAS9C+b6XQSSl1k2lvpoLDOhQJdoCHXByUxi3YBElAdfNZ+IQ1Mc855+ZOz1UO7lHiqadpCnVgT32TnZVwGZJKE/B8Sr7AfRtp4n//g6q1XlMdTwkyFtHP36dPKidnUd2ReYzysvMThvVy45dSMXBET6x8t4k4QbhjtSMHMunKLmVsur3tTb3T6t03T4NG3tb4+oWofxCCBCrFUIlddawLodZv7fP+AuuqKrumJWfYfF8xNIwVzTC98U+Kq2OsXyCw/7PLXhc4jbNeQes8TBmcaNJDxV+w==
+ db_name: AgApTQ4a2gBfYYAeXjkkO3CsJouadi8n4TZzyPW+KMtbgFXq0RP6T3jwPnf9SWFlZxkoDUtwiQWOXPN6jc/B+pd3CU/dpqCBD/Nf/BX91VoWvzyYXnBHkLzTiU7CXBn3J5omjLnm16YrAaxxk3b/L6RZSqX1DVunlXBIgIHYY2egyKWx2YblH2DXF65eI0eQ3wjy1nf4akdVEOZJnP2nPb36Rvs6ZYo5UjuxqkeVNum5+R7R4yTmdbADdyZPswxczSh3NT8/7dJA56Sg+BXDrdNlpahoApDfLWm/S58XDN4bQt7bE180nbeFYnNMcxdNTqkldAzfLff4CWfeTmK+F9sHCmtB1af9NZrR2/mLG3+v8tUP+EsLUbp8HeAxV3TXqaaAEOCI0lRT3/YDHnCuS/nNGndwfCUHyJhjA/dCpkY4mol4Y592bCf3RomdZOH5dSlwc/opRn+hJKzWsFZgUxG4miQ09Htti9op4gK5cX1NVmUegSLeLF9GtxzTd0/Qf2u3t8yTqIGNCjohtWnHY8pI4q9oZmc6hw/62y1nFhCnEPuxsqkYQr0Y6+CjQ0/D1eHQCLR2pe6tjvy4rgJBiIwG1Ns/ipNrC/7pegb+XwQ35lVDGvO9knlCzYwnt4piBYly3/I4NW3oswHLvC0488FXcJt0jtVTGZKQCGFwzZs84ZtnrHuAZqiKsoWCMirc2KnIdJePcQ==
+ db_password: AgBdld/wramisqL57iY8Uc3OtssE+T3bIWoRugg9NcKBEG5CgHtBjO1wlS/LVPKBi0wrliFfpwGuXZWl7GemhFi1AxVLZ3NuR5R4sRG/+jFwc4AktaugrUIxnAgRetLBYPQMxOnsVVU4hnPfTHjd8WK7mciLzaqvMaVWHLV2PFQhGFAyag0Ud97qZ1FnlqYFPyg1JK/Hiv6sQ+zS6CqrMwtlcJHRjvZntDXe5EMV7pObxFoxuCI68SGB9yDiYZIHbD/wBbZ7B1coQVVeqIGOkxDfKUk3xz1CfXoH9Jp9uHVayssa5kh1cEjuyyiaqE4laHH5bgDBWSU32ZhABZR4uVHOrOAf3p2EZvriCJVYGQ4TYKlzJlf8H3/F1B8lTlyXxBgcKjyZskCaYG9/V12WxoeQPfucH1nN4WJi8mwcD9GqnbHC6UE6Q6EW8QG9D/iIdv6kAzrVXixhSHrSOLUf4N6hDQ/E37IuWLwdSGfIseCGShX7Er/7aRTILMX5v4zrTZbs4ih+rWzy0vDIhe4jl8N8MTQqtvpryfCSdFxqIk00MMh9zBftFXKAVXKk/1AQclAQHc/b/fgZrM9kbAX1Jo2zKblD07tas+/9vlL4MQ70UDsmz37/6uAhA4diQi8tmiqIMxoeTnqs1f5HMDkVuy7hyLV/Xg4ZA2U9RmdqnpGcmrWc1BpUf8cL4AjItf6tSdWc+ch6UvDx/lBzDeJpJsezTjnsQA==
+ db_port: AgB7IN1Gs3WBKPvMujyS1e9AqxotjmQOv2QfOqX6dGEYEET4Ay067xcdbyns6oczUnuQyKpIr79oZzeezevPM+RTVYCwEyTxF84Qcs9h/psY61cYOEwNcIu+m5iP+qb2sFlopK6QZk03zPyd1XZ5TlRw6Nv2Nt3gPvoksgG7L0CM8xWvcpcG2/khh9UuckUGErcaK3nMxdKAKZLjVaVdRIC78u03NEc4cj9KH7r/Zz5PZXOVlZyUAxCtUMe0NHs7bFhRp5Boxa+Jz0cfJ4fDZlwHgMQLxi8nQbKmZf1B3HY4+zUYShBrxWWFBimqpctJDFpV4z5DHJVTeFSxgPXh0t5qsYikeeVqDnbGMx+4yyno3+IkD+Se73z7boS5sbYhPtifm1dS88DbAMDckMAiR5ktDLbItSwGoxGTegqmhbvUtxhpzl64Q6yrrQetJ/sT/j+Q6YWCqrnhQvgcR9rasFCUswGmnr0cF9jYVRkDHpK4Ehwf8HNriyY1RlDnopBGtx+t7hUb7yrNoSnJQEVSCKCMkxOzP9gMsfZptO66MWsX+Jbr9vQV88Wzqshe5oYTJk8UkqeOqZLPp5aKs/5uv/BJNGwJbDuMlXmX8ZU5c4jn0FyzGeamqxqttgIonXgo0eeR4FwV5NTLgX1h5IETMKHBsNbzmJuu9fF92pycYVeb3AngMMKveLqkN2y/s/bKBNGFtcyh
+ db_user: AgCwCgsYWuB3S4PaAA/WSoTrqABcJnFrmu8ud6FUk4tQjhBySGlODANZVI9XoHh16iNRMSLiVlUihiyr8d/Dh9TP7Q4nwKlLoRmObbH5hyqPEC+y+phccwC8OSQ8pA/Xy1mv+dQhH8Ssz3hR2UGdS8BBEeBgnLZYJR1B0zOrAijCnv6lsdDY6dIuLv3ijsRtIzHIT2Q1UcvJrd3cP16PT2xKw+3X7rPURkMRwbDKyKslhpJeVohVc7SoG04SUXZ7GUtR0S02WIrd3UXfjXcrV1fa5C5ssRN9CEMs0TWBo+0q/tp81mPFYPEbdWsKGBZ+1VxGL0PnbiMJBizGq3YOBU3KY2irXSipsWXeoZOOK8d4E8lnT0toVKFSafp8tkASxT7pEgVrJ5QPlcT5wO/eMehNQ4ZMc1DPAUHD740il1q2Zse9JMsa5sYu5SCsvaAC5ON0w6111AM9OS5t3jxN/lMhcZFqAtcLtDL9Ut68KBtvWEnPJdqnT8mRjR0bH0wLrjv1Irzdt7yHHIkZRjLRaxWXrnNfj/UaRkAsCRtD0aqtWe/grU7pj7ud9i5b849gJl9Ps6zsvwtW4ZBWDtn6TWUjn1dhKqOz78qG561YqTRSE784O66vZwHlAsq9Ow2K/mQCBdOA39vJgIg+xtyMvRG1Upissq2WOzECyY+9jsOBowVKcSKSCUBADHF7oNJqcTcez/zNIZ1viNbB
+ template:
+ metadata:
+ annotations:
+ argocd.argoproj.io/sync-options: Prune=false
+ sealedsecrets.bitnami.com/cluster-wide: "true"
+ sealedsecrets.bitnami.com/managed: "true"
+ creationTimestamp: null
+ name: gitea-secrets
+ namespace: gitea
+ type: Opaque
diff --git a/resources/app-volumes/env/k3s-cluster/templates/gitea-pv.yaml b/resources/app-volumes/env/k3s-cluster/templates/gitea-pv.yaml
new file mode 100644
index 0000000..887278a
--- /dev/null
+++ b/resources/app-volumes/env/k3s-cluster/templates/gitea-pv.yaml
@@ -0,0 +1,30 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: gitea-pv
+ namespace: gitea
+ labels:
+ type: local
+spec:
+ storageClassName: local-path
+ volumeMode: Filesystem
+ capacity:
+ storage: 32Gi
+ accessModes:
+ - ReadWriteOnce
+ persistentVolumeReclaimPolicy: Retain
+ local:
+ path: "/mnt/nfs/AppData/gitea"
+ claimRef:
+ apiVersion: v1
+ kind: PersistentVolumeClaim
+ name: gitea-pvc
+ namespace: gitea
+ nodeAffinity:
+ required:
+ nodeSelectorTerms:
+ - matchExpressions:
+ - key: kubernetes.io/hostname
+ operator: In
+ values:
+ - rpi5-cluster-node-2
\ No newline at end of file
diff --git a/resources/app-volumes/env/k3s-cluster/templates/gitea-pvc.yaml b/resources/app-volumes/env/k3s-cluster/templates/gitea-pvc.yaml
new file mode 100644
index 0000000..6e16398
--- /dev/null
+++ b/resources/app-volumes/env/k3s-cluster/templates/gitea-pvc.yaml
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: gitea-pvc
+ namespace: gitea
+ labels:
+ name: gitea-pvc
+spec:
+ storageClassName: local-path
+ volumeMode: Filesystem
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: 32Gi
\ No newline at end of file