diff --git a/chart/chart-index/Chart.yaml b/chart/chart-index/Chart.yaml index 212504d134..a69ea5a9b7 100644 --- a/chart/chart-index/Chart.yaml +++ b/chart/chart-index/Chart.yaml @@ -106,7 +106,7 @@ dependencies: version: 1.18.5 repository: https://grafana.github.io/helm-charts - name: thanos - version: 15.7.25 + version: 15.14.1 repository: https://charts.bitnami.com/bitnami - name: trivy-operator version: 0.25.0 diff --git a/charts/thanos/CHANGELOG.md b/charts/thanos/CHANGELOG.md deleted file mode 100644 index 26f3ccd87e..0000000000 --- a/charts/thanos/CHANGELOG.md +++ /dev/null @@ -1,1674 +0,0 @@ -# Changelog - -## 15.7.25 (2024-09-06) - -* [bitnami/thanos] Release 15.7.25 ([#29260](https://github.com/bitnami/charts/pull/29260)) - -## 15.7.24 (2024-09-05) - -* [bitnami/thanos] Added apiVersion and kind to volumeClaimTemplates (#29200) ([44aca55](https://github.com/bitnami/charts/commit/44aca5511b5522cae34d1f22df6755571cdc9929)), closes [#29200](https://github.com/bitnami/charts/issues/29200) [#29178](https://github.com/bitnami/charts/issues/29178) - -## 15.7.23 (2024-08-27) - -* [bitnami/thanos] Release 15.7.23 (#29068) ([9ed3b18](https://github.com/bitnami/charts/commit/9ed3b1881f42b9058c89555ec6b52f521a52045b)), closes [#29068](https://github.com/bitnami/charts/issues/29068) - -## 15.7.22 (2024-08-27) - -* add custom relabel config while thanos storegateway hash shard (#28969) ([10a31bd](https://github.com/bitnami/charts/commit/10a31bdbf51328190ec3eebc269a780448f62e53)), closes [#28969](https://github.com/bitnami/charts/issues/28969) - -## 15.7.21 (2024-08-20) - -* [bitnami/thanos] Update index cache config for sharded store gateway (#28747) ([f7caac5](https://github.com/bitnami/charts/commit/f7caac595cb3278bf69f8a5897003f864b8af172)), closes [#28747](https://github.com/bitnami/charts/issues/28747) - -## 15.7.20 (2024-08-13) - -* [bitnami/thanos] Release 15.7.20 (#28859) ([73a02f4](https://github.com/bitnami/charts/commit/73a02f4120fcf42be703443a888f5ed0b5c34477)), closes [#28859](https://github.com/bitnami/charts/issues/28859) - -## 15.7.19 (2024-08-09) - -* [bitnami/thanos] add receive distributor termination grace period (#28793) ([6838ae1](https://github.com/bitnami/charts/commit/6838ae1092db9c66327d03f1955c6b0cc3afa0ad)), closes [#28793](https://github.com/bitnami/charts/issues/28793) - -## 15.7.18 (2024-08-07) - -* [bitnami/thanos] Release 15.7.18 (#28752) ([8994d7b](https://github.com/bitnami/charts/commit/8994d7b7c5d751a90b2a65cd970cc4bed56471be)), closes [#28752](https://github.com/bitnami/charts/issues/28752) - -## 15.7.17 (2024-08-02) - -* [bitnami/thanos] add ruler custom data path (#28606) ([125fb1b](https://github.com/bitnami/charts/commit/125fb1b454c3395444609a43dc4686cba2148fa2)), closes [#28606](https://github.com/bitnami/charts/issues/28606) - -## 15.7.16 (2024-07-31) - -* [bitnami/thanos] Release 15.7.16 (#28607) ([d966dfe](https://github.com/bitnami/charts/commit/d966dfe78fbadcd456bd08185f9eb67c1c3221b1)), closes [#28607](https://github.com/bitnami/charts/issues/28607) - -## 15.7.15 (2024-07-25) - -* [bitnami/thanos] Release 15.7.15 (#28508) ([5dbafa2](https://github.com/bitnami/charts/commit/5dbafa2940605911ead5777fc34219e1e7814333)), closes [#28508](https://github.com/bitnami/charts/issues/28508) - -## 15.7.14 (2024-07-24) - -* [bitnami/thanos] Release 15.7.14 (#28386) ([edf6bd2](https://github.com/bitnami/charts/commit/edf6bd206e61401919388afae48c86202c6adc88)), closes [#28386](https://github.com/bitnami/charts/issues/28386) - -## 15.7.13 (2024-07-18) - -* [bitnami/thanos] Global StorageClass as default value (#28103) ([e239a85](https://github.com/bitnami/charts/commit/e239a8575d54acb106885d4861690d037d0ff7dc)), closes [#28103](https://github.com/bitnami/charts/issues/28103) - -## 15.7.12 (2024-07-04) - -* [bitnami/thanos] Release 15.7.12 (#27792) ([f4bd712](https://github.com/bitnami/charts/commit/f4bd7126c3617faa30c875b68a1f974d72c53ca6)), closes [#27792](https://github.com/bitnami/charts/issues/27792) - -## 15.7.11 (2024-07-03) - -* [bitnami/thanos] Release 15.7.11 (#27678) ([a0a34ce](https://github.com/bitnami/charts/commit/a0a34cef1d7537e9f5a1cb457e7bfcf932932b10)), closes [#27678](https://github.com/bitnami/charts/issues/27678) - -## 15.7.10 (2024-06-26) - -* [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/thanos] Add validation for Thanos receive configuration (#27501) ([fbf31b7](https://github.com/bitnami/charts/commit/fbf31b7dc547003ef016a3ac2ac46f9e89b15245)), closes [#27501](https://github.com/bitnami/charts/issues/27501) - -## 15.7.9 (2024-06-18) - -* [bitnami/thanos] Release 15.7.9 (#27424) ([ef0b51e](https://github.com/bitnami/charts/commit/ef0b51e43f2de5b48901baca609aeac475513d8c)), closes [#27424](https://github.com/bitnami/charts/issues/27424) - -## 15.7.8 (2024-06-18) - -* [bitnami/thanos] fix thanos dual-stack receive monitoring (#27112) ([017b2fb](https://github.com/bitnami/charts/commit/017b2fbec6acfa382a1cf08968b5cb676ba42b8d)), closes [#27112](https://github.com/bitnami/charts/issues/27112) - -## 15.7.7 (2024-06-17) - -* [bitnami/thanos] Release 15.7.7 (#27294) ([7e339f1](https://github.com/bitnami/charts/commit/7e339f15ac83263c386d63e2bf68cfd82fca7deb)), closes [#27294](https://github.com/bitnami/charts/issues/27294) - -## 15.7.6 (2024-06-12) - -* [bitnami/thanos] Fix sharded storegateway cache configs (again) (#27101) ([e6d16b4](https://github.com/bitnami/charts/commit/e6d16b4256f027adbb3610b4e66ee2c05039618f)), closes [#27101](https://github.com/bitnami/charts/issues/27101) - -## 15.7.5 (2024-06-11) - -* [bitnami/thanos] only deploy networkPolicy when component is enabled (#27070) ([1bd3b34](https://github.com/bitnami/charts/commit/1bd3b342399ed142ef26f060f63d058e393435c2)), closes [#27070](https://github.com/bitnami/charts/issues/27070) - -## 15.7.4 (2024-06-11) - -* [bitnami/thanos] Fix sharded storegateway cache configs (#26490) ([54afe30](https://github.com/bitnami/charts/commit/54afe30e41e8f5ec81b8bd0c7e523a9d218bded3)), closes [#26490](https://github.com/bitnami/charts/issues/26490) - -## 15.7.3 (2024-06-10) - -* [bitnami/thanos] add service monitor labels (#26880) ([162d466](https://github.com/bitnami/charts/commit/162d466ef79df488b418ec184952e04615ed8ec6)), closes [#26880](https://github.com/bitnami/charts/issues/26880) - -## 15.7.2 (2024-06-06) - -* [bitnami/thanos] Release 15.7.2 (#27020) ([63e189e](https://github.com/bitnami/charts/commit/63e189e67eca6e03ddeac7957c11f008f2676f91)), closes [#27020](https://github.com/bitnami/charts/issues/27020) - -## 15.7.1 (2024-06-05) - -* [bitnami/thanos] Bump chart version (#26866) ([9f31b0e](https://github.com/bitnami/charts/commit/9f31b0e1c3dfd3d8a4f32e31e89f87a72a65f29b)), closes [#26866](https://github.com/bitnami/charts/issues/26866) - -## 15.7.0 (2024-06-05) - -* [bitnami/thanos] Enable PodDisruptionBudgets (#26709) ([4796dad](https://github.com/bitnami/charts/commit/4796dad161af678c5dbdf04d3ae9d137f9f20ba3)), closes [#26709](https://github.com/bitnami/charts/issues/26709) - -## 15.6.2 (2024-06-05) - -* [bitnami/thanos] Bump chart version (#26808) ([f0b10e8](https://github.com/bitnami/charts/commit/f0b10e83d908b2df59907182615b48ca80b70264)), closes [#26808](https://github.com/bitnami/charts/issues/26808) - -## 15.6.1 (2024-06-05) - -* [bitnami/thanos] Release 15.6.1 (#26755) ([4e3585e](https://github.com/bitnami/charts/commit/4e3585ebd0dbfff61e13c12a529522fa094f8ada)), closes [#26755](https://github.com/bitnami/charts/issues/26755) - -## 15.6.0 (2024-05-31) - -* [bitnami/thanos] Receive, ruler & storegateway statefulsets persistentVolumeClaimRetentionPolicy sup ([c955b0e](https://github.com/bitnami/charts/commit/c955b0e811cdaf59a836e20288f58cf99256db52)), closes [#25676](https://github.com/bitnami/charts/issues/25676) - -## 15.5.1 (2024-05-28) - -* [bitnami/thanos] Release 15.5.1 (#26517) ([06b7586](https://github.com/bitnami/charts/commit/06b7586930c7cd1fefb0e1f4cdd88cd7e8c4655f)), closes [#26517](https://github.com/bitnami/charts/issues/26517) - -## 15.5.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/thanos] feat: :sparkles: :lock: Add warning when original images are replaced (#26283) ([2a39de8](https://github.com/bitnami/charts/commit/2a39de8d5c440084763e3b6b7a1f4caa47ef888d)), closes [#26283](https://github.com/bitnami/charts/issues/26283) - -## 15.4.7 (2024-05-18) - -* [bitnami/thanos] Release 15.4.7 updating components versions (#26083) ([e4c2454](https://github.com/bitnami/charts/commit/e4c2454fd6dfe108f30d24dd01ea909d2e306271)), closes [#26083](https://github.com/bitnami/charts/issues/26083) - -## 15.4.6 (2024-05-14) - -* [bitnami/thanos] Release 15.4.6 updating components versions (#25829) ([bf6b3ec](https://github.com/bitnami/charts/commit/bf6b3ec7a3381e13e150e1766a50135a2f3fcb51)), closes [#25829](https://github.com/bitnami/charts/issues/25829) - -## 15.4.5 (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/thanos] Release 15.4.5 updating components versions (#25715) ([41cae24](https://github.com/bitnami/charts/commit/41cae248010a3f6598fca12fa718f60a4752a576)), closes [#25715](https://github.com/bitnami/charts/issues/25715) - -## 15.4.4 (2024-05-08) - -* [bitnami/*] Set new header/owner (#25558) ([8d1dc11](https://github.com/bitnami/charts/commit/8d1dc11f5fb30db6fba50c43d7af59d2f79deed3)), closes [#25558](https://github.com/bitnami/charts/issues/25558) -* [bitnami/thanos] Release 15.4.4 updating components versions (#25622) ([8f47d6a](https://github.com/bitnami/charts/commit/8f47d6a45c779ee6d7f67583a42f61c9358dd53e)), closes [#25622](https://github.com/bitnami/charts/issues/25622) - -## 15.4.3 (2024-05-02) - -* [bitnami/thanos] Release 15.4.3 updating components versions (#25503) ([b63467f](https://github.com/bitnami/charts/commit/b63467f4efcafa31845fab0d40a21084e495fbd5)), closes [#25503](https://github.com/bitnami/charts/issues/25503) - -## 15.4.2 (2024-05-02) - -* correct thanos statefulset-sharded cache config mounts (#25487) ([bb1ece6](https://github.com/bitnami/charts/commit/bb1ece6f1cb4110af1a35ea23bb16e03a76c7595)), closes [#25487](https://github.com/bitnami/charts/issues/25487) - -## 15.4.1 (2024-04-26) - -* [bitnami/thanos] Fix mountPath conflict thanos store (#25384) ([057cc2b](https://github.com/bitnami/charts/commit/057cc2ba3cf3fb6063aa9c6339570154f1446781)), closes [#25384](https://github.com/bitnami/charts/issues/25384) - -## 15.4.0 (2024-04-25) - -* [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) -* [bitnami/thanos] Add custom tsdb path (#25334) ([77c4c6f](https://github.com/bitnami/charts/commit/77c4c6f5413609318eceb25effbf8c146a77f460)), closes [#25334](https://github.com/bitnami/charts/issues/25334) -* [bitnami/thanos] Use endpoint group optionally for Store Gateways (#25336) ([e416257](https://github.com/bitnami/charts/commit/e416257ef437af33626c4a1dc94db7b30ba47f64)), closes [#25336](https://github.com/bitnami/charts/issues/25336) -* Replace VMware by Broadcom copyright text (#25306) ([a5e4bd0](https://github.com/bitnami/charts/commit/a5e4bd0e35e419203793976a78d9d0a13de92c76)), closes [#25306](https://github.com/bitnami/charts/issues/25306) - -## 15.3.0 (2024-04-24) - -* [bitnami/thanos] Fix thanos query downstream URL with HTTPS enabled (#25175) ([252c4ef](https://github.com/bitnami/charts/commit/252c4efdb8ef70c4a6cb959a8c5411e92f450fcb)), closes [#25175](https://github.com/bitnami/charts/issues/25175) - -## 15.2.2 (2024-04-24) - -* [bitnami/thanos] Fix thanos checksum annotations (#24737) ([b67cc70](https://github.com/bitnami/charts/commit/b67cc706468a95b5b62160a663c976db159e779a)), closes [#24737](https://github.com/bitnami/charts/issues/24737) - -## 15.2.1 (2024-04-23) - -* [bitnami/thanos] Fix storegateway cache configs (#25242) ([b2b8c91](https://github.com/bitnami/charts/commit/b2b8c91b39e4686fe5732de02cae99301aafda28)), closes [#25242](https://github.com/bitnami/charts/issues/25242) - -## 15.2.0 (2024-04-23) - -* [bitnami/thanos] added pvc labels to thanos-receive (#24934) ([2acf132](https://github.com/bitnami/charts/commit/2acf1327f6de1c44aed228d8e52e78be5d538227)), closes [#24934](https://github.com/bitnami/charts/issues/24934) [#24927](https://github.com/bitnami/charts/issues/24927) - -## 15.1.3 (2024-04-23) - -* [bitnami/thanos] add terminationGracePeriodSeconds (#25315) ([aff45b2](https://github.com/bitnami/charts/commit/aff45b2f5da7e8fac3a634be14912329b72c755b)), closes [#25315](https://github.com/bitnami/charts/issues/25315) - -## 15.1.2 (2024-04-22) - -* [bitnami/thanos] Fix compaction prometheusRule template (#25188) ([05ca034](https://github.com/bitnami/charts/commit/05ca0347906983b7cf060e6db21388b2a9b08b33)), closes [#25188](https://github.com/bitnami/charts/issues/25188) - -## 15.1.1 (2024-04-22) - -* Remove service monitor labels from headless services (#25171) ([38947e0](https://github.com/bitnami/charts/commit/38947e0e76618f8dceb4003c122af347558a7325)), closes [#25171](https://github.com/bitnami/charts/issues/25171) - -## 15.1.0 (2024-04-18) - -* [bitnami/thanos] Allow disabling mTLS for GRPC (#25189) ([a892573](https://github.com/bitnami/charts/commit/a892573536968d4976d4ae948fd9f72eba02cfdb)), closes [#25189](https://github.com/bitnami/charts/issues/25189) - -## 15.0.5 (2024-04-11) - -* fix(thanos): enable Ingress only when component is enabled (#25103) ([f696f8c](https://github.com/bitnami/charts/commit/f696f8c01427d3a6b36e70386caf72503b86bcc1)), closes [#25103](https://github.com/bitnami/charts/issues/25103) - -## 15.0.4 (2024-04-05) - -* [bitnami/thanos] Release 15.0.4 updating components versions (#24978) ([5a26c10](https://github.com/bitnami/charts/commit/5a26c10c6b324121a55f507ce3ef28410022bb2d)), closes [#24978](https://github.com/bitnami/charts/issues/24978) - -## 15.0.3 (2024-04-05) - -* [bitnami/thanos] Release 15.0.3 (#24921) ([273bce4](https://github.com/bitnami/charts/commit/273bce4a89d73f830296a0a411cb608255d19c23)), closes [#24921](https://github.com/bitnami/charts/issues/24921) - -## 15.0.2 (2024-04-03) - -* [bitnami/thanos]Fix: Make prometheus rules reliable with release name (#24655) ([a2a6eab](https://github.com/bitnami/charts/commit/a2a6eabda632d12ded2b2d0959c44aca2b73fab8)), closes [#24655](https://github.com/bitnami/charts/issues/24655) [#24651](https://github.com/bitnami/charts/issues/24651) [#24651](https://github.com/bitnami/charts/issues/24651) -* Update resourcesPreset comments (#24467) ([92e3e8a](https://github.com/bitnami/charts/commit/92e3e8a507326d2a20a8f10ab3e7746a2ec5c554)), closes [#24467](https://github.com/bitnami/charts/issues/24467) - -## 15.0.1 (2024-04-03) - -* [bitnami/thanos] fix: use https for queryURL when ingress is tls (#24456) ([78e9746](https://github.com/bitnami/charts/commit/78e9746c90068202063237103c69a119b8f72dd9)), closes [#24456](https://github.com/bitnami/charts/issues/24456) - -## 15.0.0 (2024-04-02) - -* [bitnami/thanos] feat!: :lock: :boom: Improve security defaults (#24715) ([566b718](https://github.com/bitnami/charts/commit/566b7182ee33991a33a9b16f01ca70f0370d9a49)), closes [#24715](https://github.com/bitnami/charts/issues/24715) - -## 14.0.2 (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/thanos] Fix thanos objstoreConfig and storegatewayConfigMap (#24603) ([9a0fece](https://github.com/bitnami/charts/commit/9a0fece43caabdd9fe4de507cf2197945b04ac6d)), closes [#24603](https://github.com/bitnami/charts/issues/24603) - -## 14.0.1 (2024-03-15) - -* [bitnami/thanos] Fine-granted checksum calculation for deployment re-trigger (#24014) ([7469e43](https://github.com/bitnami/charts/commit/7469e4332b74ca204779e1cc78aced092ed2a151)), closes [#24014](https://github.com/bitnami/charts/issues/24014) - -## 14.0.0 (2024-03-15) - -* [bitnami/thanos] Update bundled MinIO (#24477) ([8dbd383](https://github.com/bitnami/charts/commit/8dbd383e946b2d1617088ab6e1374e48ac6b836f)), closes [#24477](https://github.com/bitnami/charts/issues/24477) - -## 13.4.1 (2024-03-07) - -* [bitnami/thanos] Release 13.4.1 updating components versions (#24231) ([57995fd](https://github.com/bitnami/charts/commit/57995fda1955b8522aef555be38a6f32c9cb1bec)), closes [#24231](https://github.com/bitnami/charts/issues/24231) - -## 13.4.0 (2024-03-06) - -* [bitnami/thanos] feat: :sparkles: :lock: Add automatic adaptation for Openshift restricted-v2 SCC (# ([8583f41](https://github.com/bitnami/charts/commit/8583f4143786afcc075da5034aa5c2ec7e15cd04)), closes [#24161](https://github.com/bitnami/charts/issues/24161) - -## 13.3.0 (2024-03-01) - -* [bitnami/thanos] feat: :sparkles: :lock: Add runAsGroup (#23995) ([0011046](https://github.com/bitnami/charts/commit/0011046d93a73e736f7e87a8bd154d85a02818b9)), closes [#23995](https://github.com/bitnami/charts/issues/23995) - -## 13.2.2 (2024-02-22) - -* [bitnami/thanos] Release 13.2.2 updating components versions (#23833) ([4440601](https://github.com/bitnami/charts/commit/4440601576022526f79ff6a465fb49b7466d6d3d)), closes [#23833](https://github.com/bitnami/charts/issues/23833) - -## 13.2.1 (2024-02-21) - -* [bitnami/thanos] Release 13.2.1 updating components versions (#23699) ([e2491f9](https://github.com/bitnami/charts/commit/e2491f9a573e99bd53cc716a532b0bc77b51a30a)), closes [#23699](https://github.com/bitnami/charts/issues/23699) - -## 13.2.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) - -## 13.1.0 (2024-02-16) - -* [bitnami/thanos] feat: :sparkles: :lock: Add resource preset support (#23527) ([1c268f3](https://github.com/bitnami/charts/commit/1c268f39961df62312784eea2706745609ee709e)), closes [#23527](https://github.com/bitnami/charts/issues/23527) - -## 13.0.0 (2024-02-14) - -* [bitnami/thanos] feat!: :recycle: :lock: Refactor and enable NetworkPolicy by default (#22687) ([89643fd](https://github.com/bitnami/charts/commit/89643fd81ae204769f436ebd8b9c6ccafd8a897c)), closes [#22687](https://github.com/bitnami/charts/issues/22687) - -## 12.23.2 (2024-02-07) - -* [bitnami/thanos] Release 12.23.2 updating components versions (#23279) ([f03c904](https://github.com/bitnami/charts/commit/f03c9046d065ef862ce331c48bd4b6d98962b980)), closes [#23279](https://github.com/bitnami/charts/issues/23279) - -## 12.23.1 (2024-02-03) - -* [bitnami/thanos] Release 12.23.1 updating components versions (#23145) ([7cccb85](https://github.com/bitnami/charts/commit/7cccb85054c219531873a252d65dcf76a5724b13)), closes [#23145](https://github.com/bitnami/charts/issues/23145) - -## 12.23.0 (2024-01-29) - -* [bitnami/thanos] feat: Option to enable ephemeral persistent volume for compactor (#22808) ([055c8ed](https://github.com/bitnami/charts/commit/055c8ede101dfef77e235dbc109f9982dbfa4e4a)), closes [#22808](https://github.com/bitnami/charts/issues/22808) -* [bitnami/thanos] Fix revisionHistoryLimit for thanos storegateway (#22751) ([bc4b1dc](https://github.com/bitnami/charts/commit/bc4b1dcd3ba113f5a1e75b6a65ba522acc241dc5)), closes [#22751](https://github.com/bitnami/charts/issues/22751) - -## 12.22.1 (2024-01-27) - -* [bitnami/thanos] Release 12.22.1 updating components versions (#22803) ([dc6bce1](https://github.com/bitnami/charts/commit/dc6bce1cf0b1087b9512510f2305db1c06bbe38e)), closes [#22803](https://github.com/bitnami/charts/issues/22803) - -## 12.22.0 (2024-01-26) - -* [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/thanos] Add revisionHistoryLimit option for each component (#22698) ([0413c10](https://github.com/bitnami/charts/commit/0413c1076edae7ac3fbeb0f0603d87aab1d82ef9)), closes [#22698](https://github.com/bitnami/charts/issues/22698) - -## 12.21.2 (2024-01-24) - -* [bitnami/thanos] fix: :bug: Set seLinuxOptions to null for Openshift compatibility (#22664) ([38e9c47](https://github.com/bitnami/charts/commit/38e9c47af91e58a55a3b7c180ccb57a144e7d20f)), closes [#22664](https://github.com/bitnami/charts/issues/22664) -* [thanos]: Add labels option for query service GRPC (#22228) ([325f583](https://github.com/bitnami/charts/commit/325f583a3beb40e1c1c45d166a29795fd954d848)), closes [#22228](https://github.com/bitnami/charts/issues/22228) - -## 12.21.1 (2024-01-18) - -* [bitnami/thanos] Release 12.21.1 updating components versions (#22343) ([106af76](https://github.com/bitnami/charts/commit/106af76630710ca7b45f7165de2762c6f30cec5a)), closes [#22343](https://github.com/bitnami/charts/issues/22343) - -## 12.21.0 (2024-01-16) - -* [bitnami/thanos] fix: :lock: Improve podSecurityContext and containerSecurityContext with essential ([c6fc750](https://github.com/bitnami/charts/commit/c6fc75052a88888c73af2e895d1a97665f3aca5d)), closes [#22195](https://github.com/bitnami/charts/issues/22195) - -## 12.20.4 (2024-01-15) - -* [bitnami/thanos] fix: :lock: Do not use the default service account (#22031) ([5ba6305](https://github.com/bitnami/charts/commit/5ba630571f3655e561403e6648cad6f9d82451c2)), closes [#22031](https://github.com/bitnami/charts/issues/22031) - -## 12.20.3 (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/thanos] Release 12.20.3 updating components versions (#22010) ([af1b1c9](https://github.com/bitnami/charts/commit/af1b1c9f529eb50b47ad043b8da5df71b4f6eaa6)), closes [#22010](https://github.com/bitnami/charts/issues/22010) - -## 12.20.2 (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/thanos] Release 12.20.2 updating components versions (#21972) ([d6544fb](https://github.com/bitnami/charts/commit/d6544fb56c081bc2a31ba28e92d39026f8f5d754)), closes [#21972](https://github.com/bitnami/charts/issues/21972) - -## 12.20.1 (2023-12-21) - -* [bitnami/thanos]: Removing replicas in storegateway in sharded mode when autoscaling is enabled (#21 ([fcb2dbb](https://github.com/bitnami/charts/commit/fcb2dbb0a0641d90d8d7f376ca21751253f81bf9)), closes [#21515](https://github.com/bitnami/charts/issues/21515) - -## 12.20.0 (2023-12-19) - -* [bitnami/thanos] Add Configurability for runbookUrl Parameter (#21628) ([83d8843](https://github.com/bitnami/charts/commit/83d8843f90292dbd1e8130cc216f2d70e2a311fa)), closes [#21628](https://github.com/bitnami/charts/issues/21628) - -## 12.19.1 (2023-12-19) - -* [bitnami/thanos] Release 12.19.1 updating components versions (#21645) ([e21d642](https://github.com/bitnami/charts/commit/e21d642701b693661336c30efc3750bf2bfd32b7)), closes [#21645](https://github.com/bitnami/charts/issues/21645) - -## 12.19.0 (2023-12-19) - -* [bitnami/thanos] Add minReadySeconds to Thanos Receive (#21583) ([0c325af](https://github.com/bitnami/charts/commit/0c325af7a1101bac2d1c05f91354208e6095ae69)), closes [#21583](https://github.com/bitnami/charts/issues/21583) - -## 12.18.0 (2023-12-13) - -* [bitnami/thanos] Implement tpl for ingress hostname/extraTls (#21351) ([daa7324](https://github.com/bitnami/charts/commit/daa73246213ebcc2e346e973882b3ef86d6c1a30)), closes [#21351](https://github.com/bitnami/charts/issues/21351) - -## 12.17.0 (2023-12-11) - -* [bitnami/thanos] feat: expose compactor cronjob ttlSecondsAfterFinished (#21411) ([d2a41e2](https://github.com/bitnami/charts/commit/d2a41e2527d3d7fff73aee990bf1fc0f85d2599c)), closes [#21411](https://github.com/bitnami/charts/issues/21411) - -## 12.16.2 (2023-12-07) - -* [bitnami/thanos] Release 12.16.2 updating components versions (#21436) ([f1d93a5](https://github.com/bitnami/charts/commit/f1d93a57c2e6702beb513584c02d01975e97c6e3)), closes [#21436](https://github.com/bitnami/charts/issues/21436) - -## 12.16.1 (2023-11-21) - -* [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/thanos] Release 12.16.1 updating components versions (#21180) ([1d867ec](https://github.com/bitnami/charts/commit/1d867eccd555c1ceacb35efa2c4e6073da603b93)), closes [#21180](https://github.com/bitnami/charts/issues/21180) - -## 12.16.0 (2023-11-20) - -* [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/thanos] feat: add generic ephemeral volume option for compactor (#21030) ([5f9344f](https://github.com/bitnami/charts/commit/5f9344fd22a0fda31af0b6f8cff3441faea294f8)), closes [#21030](https://github.com/bitnami/charts/issues/21030) - -## 12.15.0 (2023-11-10) - -* [bitnami/thanos] Automatically apply query-frontend's ingress hostname to alert.queryURL (#20795) ([fe05d92](https://github.com/bitnami/charts/commit/fe05d92bdc633d238cd72a20be9f473d74e5ef82)), closes [#20795](https://github.com/bitnami/charts/issues/20795) - -## 12.14.2 (2023-11-09) - -* [bitnami/thanos] Release 12.14.2 updating components versions (#20831) ([f017cfa](https://github.com/bitnami/charts/commit/f017cfaeb6fd916e62ab36052d83d16779603d84)), closes [#20831](https://github.com/bitnami/charts/issues/20831) - -## 12.14.1 (2023-11-08) - -* [bitnami/thanos] Release 12.14.1 updating components versions (#20788) ([8560811](https://github.com/bitnami/charts/commit/8560811fd597b79f2708029ba83f4c657bf6e026)), closes [#20788](https://github.com/bitnami/charts/issues/20788) - -## 12.14.0 (2023-11-07) - -* [bitnami/thanos] feat: :sparkles: Add support for PSA restricted policy (#20553) ([af354f2](https://github.com/bitnami/charts/commit/af354f22eb682e86100481fe6501f21a63b612fd)), closes [#20553](https://github.com/bitnami/charts/issues/20553) - -## 12.13.13 (2023-10-25) - -* [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/thanos] Fix dup common labels in the query pdb (#20340) ([f762fd2](https://github.com/bitnami/charts/commit/f762fd262486763abde7ee266c6c8842e2e89e34)), closes [#20340](https://github.com/bitnami/charts/issues/20340) - -## 12.13.12 (2023-10-19) - -* [bitnami/thanos] Release 12.13.12 (#20320) ([71d96f9](https://github.com/bitnami/charts/commit/71d96f9d5195e4e078c44be19af9f75488273342)), closes [#20320](https://github.com/bitnami/charts/issues/20320) - -## 12.13.11 (2023-10-12) - -* [bitnami/thanos] Release 12.13.11 (#20194) ([1071560](https://github.com/bitnami/charts/commit/1071560d20309c22dec92a31bbc0a8fadef4ac61)), closes [#20194](https://github.com/bitnami/charts/issues/20194) - -## 12.13.10 (2023-10-11) - -* [bitnami/thanos] Release 12.13.10 (#20065) ([ff73e64](https://github.com/bitnami/charts/commit/ff73e649429cdc525641ae1896a4c6f533c3024d)), closes [#20065](https://github.com/bitnami/charts/issues/20065) - -## 12.13.9 (2023-10-10) - -* [bitnami/thanos] Release 12.13.9 (#19988) ([23fc196](https://github.com/bitnami/charts/commit/23fc196e2d126b19a5b4f9842c9adcb7082cecf1)), closes [#19988](https://github.com/bitnami/charts/issues/19988) - -## 12.13.8 (2023-10-10) - -* [bitnami/*] Update Helm charts prerequisites (#19745) ([eb755dd](https://github.com/bitnami/charts/commit/eb755dd36a4dd3cf6635be8e0598f9a7f4c4a554)), closes [#19745](https://github.com/bitnami/charts/issues/19745) -* [bitnami/thanos] Release 12.13.8 (#19944) ([0b59eb2](https://github.com/bitnami/charts/commit/0b59eb26cb0d7065ef0e7e2c299b8028e8e5e38a)), closes [#19944](https://github.com/bitnami/charts/issues/19944) - -## 12.13.7 (2023-10-04) - -* [bitnami/thanos] Release 12.13.7 (#19753) ([b2abc7a](https://github.com/bitnami/charts/commit/b2abc7ac688e76039f66ef9dc3eeab717dbb2ada)), closes [#19753](https://github.com/bitnami/charts/issues/19753) - -## 12.13.6 (2023-10-02) - -* [bitnami/thanos] Use common capabilities for PSP (#19641) ([3bcbd9a](https://github.com/bitnami/charts/commit/3bcbd9a642b41cb28529d1a284bcf5db3b3257e7)), closes [#19641](https://github.com/bitnami/charts/issues/19641) - -## 12.13.5 (2023-09-20) - -* [bitnami/thanos] Release 12.13.5 (#19432) ([9a0c3f9](https://github.com/bitnami/charts/commit/9a0c3f91d01811b2b1b101d0e1d6e09fd401834e)), closes [#19432](https://github.com/bitnami/charts/issues/19432) -* 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) - -## 12.13.4 (2023-09-18) - -* [bitnami/thanos] Fix line break issue with serviceMonitor selector labels (#19286) ([c4e23e0](https://github.com/bitnami/charts/commit/c4e23e0bed10742dfb4553773630da286c62b453)), closes [#19286](https://github.com/bitnami/charts/issues/19286) -* Autogenerate schema files (#19194) ([a2c2090](https://github.com/bitnami/charts/commit/a2c2090b5ac97f47b745c8028c6452bf99739772)), closes [#19194](https://github.com/bitnami/charts/issues/19194) - -## 12.13.3 (2023-09-08) - -* [bitnami/thanos]: Use merge helper (#19119) ([9f4fe77](https://github.com/bitnami/charts/commit/9f4fe77cbfcb645d8f38a667997a8c3fbe3f6fef)), closes [#19119](https://github.com/bitnami/charts/issues/19119) - -## 12.13.2 (2023-09-06) - -* [bitnami/thanos] Release 12.13.2 (#19134) ([fe00bbb](https://github.com/bitnami/charts/commit/fe00bbbe6724e977dd865c911f1b36b4ba6fac30)), closes [#19134](https://github.com/bitnami/charts/issues/19134) - -## 12.13.1 (2023-09-01) - -* [bitnami/thanos] Release 12.13.1 (#18985) ([35ad4d9](https://github.com/bitnami/charts/commit/35ad4d921eebfbb1386976e77f12bd01f4a96f3f)), closes [#18985](https://github.com/bitnami/charts/issues/18985) - -## 12.13.0 (2023-08-30) - -* bitnami/thanos enable custom secretName for query.ingress and query.ingress.grpc (#18409) ([c78083c](https://github.com/bitnami/charts/commit/c78083c946876f94b4ff66000ac9b503bb20f70a)), closes [#18409](https://github.com/bitnami/charts/issues/18409) - -## 12.12.1 (2023-08-28) - -* [bitnami/thanos] Release 12.12.1 (#18915) ([3edf0a1](https://github.com/bitnami/charts/commit/3edf0a160cfcf5c0601c066787d69446e17b1d91)), closes [#18915](https://github.com/bitnami/charts/issues/18915) - -## 12.12.0 (2023-08-28) - -* [bitnami/thanos] Support for customizing standard labels (#18756) ([065a727](https://github.com/bitnami/charts/commit/065a7279333f6fa4b43617a2b44fb1f25b23a721)), closes [#18756](https://github.com/bitnami/charts/issues/18756) - -## 12.11.4 (2023-08-24) - -* [bitnami/thanos] thanos/receive/ingress.yaml: support custom portName on extraHosts (#17173) ([d81bc2c](https://github.com/bitnami/charts/commit/d81bc2c1f5f84cb04ce5d6b2b42d47317bc54a72)), closes [#17173](https://github.com/bitnami/charts/issues/17173) - -## 12.11.3 (2023-08-23) - -* [bitnami/thanos] Release 12.11.3 (#18820) ([dd716c2](https://github.com/bitnami/charts/commit/dd716c2aec6be2ee3c85ee685fe086f6643cb23c)), closes [#18820](https://github.com/bitnami/charts/issues/18820) - -## 12.11.2 (2023-08-21) - -* [bitnami/thanos] Release 12.11.2 (#18725) ([20ea1e4](https://github.com/bitnami/charts/commit/20ea1e44daf4da3438fbac5f867030d09868315b)), closes [#18725](https://github.com/bitnami/charts/issues/18725) - -## 12.11.1 (2023-08-17) - -* [bitnami/thanos] Release 12.11.1 (#18494) ([29cf2a1](https://github.com/bitnami/charts/commit/29cf2a10467fa864c3471c967b379496e52b2c81)), closes [#18494](https://github.com/bitnami/charts/issues/18494) - -## 12.11.0 (2023-08-09) - -* [bitnami/thanos] Allow customizing the thanos-sidecar's job name in prometheus alerts (#18140) ([7c285a8](https://github.com/bitnami/charts/commit/7c285a8173a3cb572c2f6002dd67b6e08c111c48)), closes [#18140](https://github.com/bitnami/charts/issues/18140) - -## 12.10.1 (2023-07-31) - -* [bitnami/thanos] Add ServiceMonitor labels for receive-headless service (#17685) ([50a6bb3](https://github.com/bitnami/charts/commit/50a6bb3cd0aca85c18aad13968df33d6992fa593)), closes [#17685](https://github.com/bitnami/charts/issues/17685) - -## 12.10.0 (2023-07-31) - -* add dnsPolicy support in query deployment (#17520) ([769740a](https://github.com/bitnami/charts/commit/769740a31b25ff9497ae6ff32d5089a9bfbbceb6)), closes [#17520](https://github.com/bitnami/charts/issues/17520) - -## 12.9.1 (2023-07-26) - -* [bitnami/thanos] Release 12.9.1 (#17960) ([4047bb4](https://github.com/bitnami/charts/commit/4047bb43e957fa3079617b1db6ce7bf9fb470c1d)), closes [#17960](https://github.com/bitnami/charts/issues/17960) - -## 12.9.0 (2023-07-25) - -* [bitnami/thanos] Add support for custom receiver statfulset labels (#17849) ([da889f4](https://github.com/bitnami/charts/commit/da889f4ad3a11b3f60413c5ae0aeec4ec0b358e3)), closes [#17849](https://github.com/bitnami/charts/issues/17849) - -## 12.8.6 (2023-07-19) - -* [bitnami/thanos] Allow template expressions in extraFlags (#17345) ([1cbe931](https://github.com/bitnami/charts/commit/1cbe9317162070c12b0946240fdf5aec22bf536a)), closes [#17345](https://github.com/bitnami/charts/issues/17345) - -## 12.8.5 (2023-07-17) - -* [bitnami/thanos] Release 12.8.5 (#17740) ([2472b4f](https://github.com/bitnami/charts/commit/2472b4fb22d19096a65843e019d7315cd6dd8464)), closes [#17740](https://github.com/bitnami/charts/issues/17740) - -## 12.8.4 (2023-07-13) - -* [bitnami/thanos] Release 12.8.4 (#17682) ([04864c1](https://github.com/bitnami/charts/commit/04864c1c70e7e26e5f70cc7d55c304f9dba5dbb8)), closes [#17682](https://github.com/bitnami/charts/issues/17682) -* Add copyright header (#17300) ([da68be8](https://github.com/bitnami/charts/commit/da68be8e951225133c7dfb572d5101ca3d61c5ae)), closes [#17300](https://github.com/bitnami/charts/issues/17300) -* Fix rule config (#17111) ([df77c5d](https://github.com/bitnami/charts/commit/df77c5d0688254aa0595f58a2967f7ddd353b8df)), closes [#17111](https://github.com/bitnami/charts/issues/17111) - -## 12.8.3 (2023-06-22) - -* [bitnami/thanos] Release 12.8.3 (#17305) ([d8d3b05](https://github.com/bitnami/charts/commit/d8d3b05b2effe97afabe03eb0935fbd518315a6b)), closes [#17305](https://github.com/bitnami/charts/issues/17305) - -## 12.8.2 (2023-06-21) - -* [bitnami/thanos] Release 12.8.2 (#17284) ([ac5606e](https://github.com/bitnami/charts/commit/ac5606ef66aeded0e321ee1d561b0f3f2f7ce133)), closes [#17284](https://github.com/bitnami/charts/issues/17284) -* [bitnami/thanos] Remove namespace field for cluster wide resources (#17260) ([99bad99](https://github.com/bitnami/charts/commit/99bad997c437f58902644dd95c9ca30758f2111d)), closes [#17260](https://github.com/bitnami/charts/issues/17260) -* Update charts readme (#17217) ([31b3c0a](https://github.com/bitnami/charts/commit/31b3c0afd968ff4429107e34101f7509e6a0e913)), closes [#17217](https://github.com/bitnami/charts/issues/17217) - -## 12.8.1 (2023-06-21) - -* [bitnami/thanos] Release 12.8.1 (#17280) ([ad18684](https://github.com/bitnami/charts/commit/ad186841cd225ea9dc98285e2c92039af1b63211)), closes [#17280](https://github.com/bitnami/charts/issues/17280) - -## 12.8.0 (2023-06-20) - -* [bitnami/thanos] Exclude headless services from serviceMonitor (#17118) ([55acf31](https://github.com/bitnami/charts/commit/55acf31b0ec4fadc0dbed77124ddc9a98d2fe625)), closes [#17118](https://github.com/bitnami/charts/issues/17118) - -## 12.7.0 (2023-06-19) - -* [bitnami/thanos] Add labels for Thanos Compactor PVC (#17171) ([0d90bba](https://github.com/bitnami/charts/commit/0d90bba5d33c24b5029603e70d4624aa81f1ec31)), closes [#17171](https://github.com/bitnami/charts/issues/17171) - -## 12.6.3 (2023-06-13) - -* [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/several] Change copyright section in READMEs (#16989) ([5b6a5cf](https://github.com/bitnami/charts/commit/5b6a5cfb7625a751848a2e5cd796bd7278f406ca)), closes [#16989](https://github.com/bitnami/charts/issues/16989) -* [bitnami/thanos]: conditionals for compactor cronjob (#16898) ([90b290b](https://github.com/bitnami/charts/commit/90b290bdf4ab9200fa6f307ae4d8f9804b16cce4)), closes [#16898](https://github.com/bitnami/charts/issues/16898) [bitnami/charts#16742](https://github.com/bitnami/charts/issues/16742) - -## 12.6.2 (2023-05-21) - -* [bitnami/thanos] Release 12.6.2 (#16801) ([a8032e6](https://github.com/bitnami/charts/commit/a8032e67b688c07673564a47098e586f4c26c1c6)), closes [#16801](https://github.com/bitnami/charts/issues/16801) - -## 12.6.1 (2023-05-17) - -* [bitnami/thanos] Added support for query-url for Thanos ruler (#16112) ([1f0028b](https://github.com/bitnami/charts/commit/1f0028bb009582b1bddefd1a84533e4b58fd1d63)), closes [#16112](https://github.com/bitnami/charts/issues/16112) -* Add wording for enterprise page (#16560) ([8f22774](https://github.com/bitnami/charts/commit/8f2277440b976d52785ba9149762ad8620a73d1f)), closes [#16560](https://github.com/bitnami/charts/issues/16560) - -## 12.6.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) - -## 12.5.2 (2023-05-09) - -* [bitnami/thanos] Release 12.5.2 (#16543) ([68ec23f](https://github.com/bitnami/charts/commit/68ec23f1195fb9b171c1c5df874f5791916e4065)), closes [#16543](https://github.com/bitnami/charts/issues/16543) - -## 12.5.1 (2023-05-02) - -* [bitnami/thanos] Release 12.5.1 (#16334) ([9306142](https://github.com/bitnami/charts/commit/930614258356e9de94bbd92bcb549de29b8e4fa8)), closes [#16334](https://github.com/bitnami/charts/issues/16334) - -## 12.5.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) - -## 12.4.3 (2023-04-18) - -* [bitnami/thanos] Fix autoGenerated GRPC certs by using common CA (#16000) ([9c5b31b](https://github.com/bitnami/charts/commit/9c5b31b1c9963f7c0ca503d4b84211a19581674c)), closes [#16000](https://github.com/bitnami/charts/issues/16000) - -## 12.4.2 (2023-04-03) - -* [bitnami/thanos] Fix dnsConfig in sharded thanos storegateway (#15827) ([d061eac](https://github.com/bitnami/charts/commit/d061eace9f7060e3e565b5d1e2412361017cabf5)), closes [#15827](https://github.com/bitnami/charts/issues/15827) - -## 12.4.1 (2023-04-01) - -* [bitnami/thanos] Release 12.4.1 (#15901) ([76a8472](https://github.com/bitnami/charts/commit/76a8472165a24354b3950c25234363bfcef4bed7)), closes [#15901](https://github.com/bitnami/charts/issues/15901) - -## 12.4.0 (2023-03-28) - -* [bitnami/thanos]: add dnsConfig option (#15694) ([b802b25](https://github.com/bitnami/charts/commit/b802b25a3eed2c72be0373e7bd1bb31a022cf471)), closes [#15694](https://github.com/bitnami/charts/issues/15694) - -## 12.3.2 (2023-03-23) - -* [bitnami/thanos] Release 12.3.2 (#15707) ([9a48a96](https://github.com/bitnami/charts/commit/9a48a9615835ec609a9776767aa4da343404d7c8)), closes [#15707](https://github.com/bitnami/charts/issues/15707) - -## 12.3.1 (2023-03-19) - -* [bitnami/thanos] Release 12.3.1 (#15619) ([3686549](https://github.com/bitnami/charts/commit/3686549bcba1e60b7b0c23b83ee668ff9464e4e0)), closes [#15619](https://github.com/bitnami/charts/issues/15619) - -## 12.3.0 (2023-03-16) - -* [bitnami/thanos] Add HTTPS support to ServiceMonitors (#15397) ([97dbd2b](https://github.com/bitnami/charts/commit/97dbd2b101fa071ee422f53dd16118dfc26e6925)), closes [#15397](https://github.com/bitnami/charts/issues/15397) - -## 12.2.1 (2023-03-13) - -* [bitnami/thanos] Release 12.2.1 (#15482) ([a27ae15](https://github.com/bitnami/charts/commit/a27ae15c24f822c4c3331f97a404918c2f578358)), closes [#15482](https://github.com/bitnami/charts/issues/15482) - -## 12.2.0 (2023-03-10) - -* [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/thanos] Add support for service.headless.annotations (#15446) ([b5430ea](https://github.com/bitnami/charts/commit/b5430ea0443bc3a88391e8fdcb1e99fcd6bd58e6)), closes [#15446](https://github.com/bitnami/charts/issues/15446) - -## 12.1.2 (2023-03-03) - -* [bitnami/thanos]: Replace deprecated spec.serviceAccount field with spec.serviceAccountName (#15180) ([f9ab87f](https://github.com/bitnami/charts/commit/f9ab87fc5af28ca82e8129a8eb944629254eb72e)), closes [#15180](https://github.com/bitnami/charts/issues/15180) - -## 12.1.1 (2023-03-01) - -* [bitnami/thanos] Release 12.1.1 (#15250) ([a29838b](https://github.com/bitnami/charts/commit/a29838b45b7f7b7c2f7f17769e5d4fb44333b295)), closes [#15250](https://github.com/bitnami/charts/issues/15250) - -## 12.1.0 (2023-02-21) - -* [bitnami/thanos] Compactor cronjob (#14865) ([cae55cf](https://github.com/bitnami/charts/commit/cae55cff430980a4ea505f77a547e03b5b947040)), closes [#14865](https://github.com/bitnami/charts/issues/14865) - -## 12.0.6 (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/thanos] Release 12.0.6 (#15033) ([37e26fb](https://github.com/bitnami/charts/commit/37e26fbc41a0d06c925d61fb99d2a4787343a2ef)), closes [#15033](https://github.com/bitnami/charts/issues/15033) - -## 12.0.5 (2023-02-14) - -* [bitnami/thanos] Add Support for timePartitioning resource management (#14780) ([cd1f358](https://github.com/bitnami/charts/commit/cd1f35885aee9735e9481f9c9dce583b4c888f0c)), closes [#14780](https://github.com/bitnami/charts/issues/14780) -* [bitnami/thanos] Release 12.0.5 (#14866) ([f7cbb4d](https://github.com/bitnami/charts/commit/f7cbb4d358979e21e362f1b919c518e63483d663)), closes [#14866](https://github.com/bitnami/charts/issues/14866) - -## 12.0.4 (2023-02-09) - -* [bitnami/thanos] fix context for statefulset (#14797) ([3a7fa9c](https://github.com/bitnami/charts/commit/3a7fa9c178f0d96c8f8b9fd37577cc6bc48029b5)), closes [#14797](https://github.com/bitnami/charts/issues/14797) -* [bitnami/thanos] Update README (#14217) ([2748063](https://github.com/bitnami/charts/commit/2748063194066a03ee6d00ff147ef342f01afeb0)), closes [#14217](https://github.com/bitnami/charts/issues/14217) - -## 12.0.3 (2023-02-01) - -* fix prometheusRule additionalLabels specification (#14674) ([38f2125](https://github.com/bitnami/charts/commit/38f21259dcd34000d929700f79d1ce27a0b04df5)), closes [#14674](https://github.com/bitnami/charts/issues/14674) - -## 12.0.2 (2023-01-31) - -* [bitnami/*] Change copyright date (#14682) ([add4ec7](https://github.com/bitnami/charts/commit/add4ec701108ac36ed4de2dffbdf407a0d091067)), closes [#14682](https://github.com/bitnami/charts/issues/14682) -* [bitnami/thanos] Release 12.0.2 (#14691) ([e949840](https://github.com/bitnami/charts/commit/e949840a00bf810a714f4ae955fe617f5843e044)), closes [#14691](https://github.com/bitnami/charts/issues/14691) - -## 12.0.1 (2023-01-31) - -* [bitnami/*] Unify READMEs (#14472) ([2064fb8](https://github.com/bitnami/charts/commit/2064fb8dcc78a845cdede8211af8c3cc52551161)), closes [#14472](https://github.com/bitnami/charts/issues/14472) -* [bitnami/thanos] Don't regenerate self-signed certs on upgrade (#14664) ([f627ac2](https://github.com/bitnami/charts/commit/f627ac2d9b895e86a5f959522a858c32048f9338)), closes [#14664](https://github.com/bitnami/charts/issues/14664) -* [bitnami/thanos] Revisit tests (#14343) ([b055f10](https://github.com/bitnami/charts/commit/b055f106923907e2be312dbeaea99d415a63e859)), closes [#14343](https://github.com/bitnami/charts/issues/14343) - -## 12.0.0 (2023-01-19) - -* [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/thanos] Update MinIO subchart (#14448) ([50be8c9](https://github.com/bitnami/charts/commit/50be8c9df710e15a99224cc5e3a4fb8f8e85e994)), closes [#14448](https://github.com/bitnami/charts/issues/14448) - -## 11.6.8 (2023-01-04) - -* [bitnami/thanos] Release 11.6.8 (#14187) ([a2a28b2](https://github.com/bitnami/charts/commit/a2a28b2fa923fe963c3e4268d93940340de8204d)), closes [#14187](https://github.com/bitnami/charts/issues/14187) - -## 11.6.7 (2023-01-03) - -* [bitnami/thanos] Release 11.6.7 (#14170) ([d1d592d](https://github.com/bitnami/charts/commit/d1d592df3c3aa574c7722e2ac2f5946aa9d05595)), closes [#14170](https://github.com/bitnami/charts/issues/14170) - -## 11.6.6 (2022-12-26) - -* [bitnami/thanos] Release 11.6.6 (#14097) ([804c53c](https://github.com/bitnami/charts/commit/804c53c20884cd0a523e960ee8920d452ec99783)), closes [#14097](https://github.com/bitnami/charts/issues/14097) - -## 11.6.5 (2022-12-14) - -* [bitnami/thanos] Fix typo in chart values comments (#13933) ([4255d8f](https://github.com/bitnami/charts/commit/4255d8f137dd2d32536553f1d3d2ca9b9f75b181)), closes [#13933](https://github.com/bitnami/charts/issues/13933) - -## 11.6.4 (2022-11-29) - -* [bitnami/thanos] Release 11.6.4 (#13686) ([71f999e](https://github.com/bitnami/charts/commit/71f999e85d3fecce123a29e957b5dd87921651e4)), closes [#13686](https://github.com/bitnami/charts/issues/13686) -* [bitnami/thanos] update PrometheusRule names to be unique (#13610) ([b57dada](https://github.com/bitnami/charts/commit/b57dadad7f9200434783c1c84c45cdadddc31b8d)), closes [#13610](https://github.com/bitnami/charts/issues/13610) - -## 11.6.3 (2022-11-24) - -* [bitnami/thanos] Set custom topology key for podAntiAffinityPreset (#13581) ([3c43c64](https://github.com/bitnami/charts/commit/3c43c64fa6a9f244a359345c17c5dcb1783b86e0)), closes [#13581](https://github.com/bitnami/charts/issues/13581) - -## 11.6.2 (2022-11-22) - -* fix: Removed an extra curly brace, added a missing one (#13604) ([e875618](https://github.com/bitnami/charts/commit/e875618760148927c7e16c69a4295dc87d7a6ec3)), closes [#13604](https://github.com/bitnami/charts/issues/13604) - -## 11.6.1 (2022-11-17) - -* [bitnami/thanos] fix apiversion hardcode for statefulset (#13542) ([42eae9e](https://github.com/bitnami/charts/commit/42eae9e87b0d9812172bbc6f61f527eee8b6798a)), closes [#13542](https://github.com/bitnami/charts/issues/13542) - -## 11.6.0 (2022-11-16) - -* [bitnami/thanos] Add prometheus alerts rules (#12873) ([1fbb541](https://github.com/bitnami/charts/commit/1fbb5412388f4bc054f95b16386436624c0188f1)), closes [#12873](https://github.com/bitnami/charts/issues/12873) - -## 11.5.10 (2022-11-14) - -* [bitnami/thanos] Fix issue with serviceAccount.create (#13502) ([1d57316](https://github.com/bitnami/charts/commit/1d57316951b43d9ea8312855c7061a6a535f601a)), closes [#13502](https://github.com/bitnami/charts/issues/13502) - -## 11.5.9 (2022-11-10) - -* [bitnami/thanos] Fix documentation for ruler.alertmanagersConfig and ruler.alertmanagers (#13359) ([5fb0f61](https://github.com/bitnami/charts/commit/5fb0f61f186e05a22ec01438479f753ad9db932f)), closes [#13359](https://github.com/bitnami/charts/issues/13359) - -## 11.5.8 (2022-11-08) - -* [bitnami/thanos] Fix serviceAccount name logic for Thanos (#13406) ([2d6cc8f](https://github.com/bitnami/charts/commit/2d6cc8fc2a72455670cef0489c68b3851a426425)), closes [#13406](https://github.com/bitnami/charts/issues/13406) - -## 11.5.7 (2022-11-03) - -* [bitnami/thanos] Modified serviceAccount name logic for Thanos (#13312) ([7915506](https://github.com/bitnami/charts/commit/79155065005032de3fc00a229496df0edf39e13f)), closes [#13312](https://github.com/bitnami/charts/issues/13312) - -## 11.5.6 (2022-10-31) - -* [bitnami/*] Use new default branch name in links (#12943) ([a529e02](https://github.com/bitnami/charts/commit/a529e02597d49d944eba1eb0f190713293247176)), closes [#12943](https://github.com/bitnami/charts/issues/12943) -* Remove subPath from servicediscovery.yml (#12940) ([21e3cfd](https://github.com/bitnami/charts/commit/21e3cfd8c11fa837e8b7e0a03b7144d4c727758e)), closes [#12940](https://github.com/bitnami/charts/issues/12940) - -## 11.5.5 (2022-10-07) - -* [bitnami/thanos] Release 11.5.5 (#12848) ([8ef44e1](https://github.com/bitnami/charts/commit/8ef44e189c6a143153e28f4ad8510b96a41b62a9)), closes [#12848](https://github.com/bitnami/charts/issues/12848) -* Generic README instructions related to the repo (#12792) ([3cf6b10](https://github.com/bitnami/charts/commit/3cf6b10e10e60df4b3e191d6b99aa99a9f597755)), closes [#12792](https://github.com/bitnami/charts/issues/12792) - -## 11.5.4 (2022-10-03) - -* [bitnami/thanos] Upgrade dependencies (#12755) ([4fc83d6](https://github.com/bitnami/charts/commit/4fc83d67a522955bf41068309f6557e0398e3de0)), closes [#12755](https://github.com/bitnami/charts/issues/12755) - -## 11.5.3 (2022-09-29) - -* [bitnami/thanos] Release 11.5.3 updating components versions ([c21634b](https://github.com/bitnami/charts/commit/c21634b6e7d0941f126471acbd7bb950c81b2dc4)) - -## 11.5.2 (2022-09-28) - -* [bitnami/thanos] Fix http config encoding (#12715) ([dbaa4a8](https://github.com/bitnami/charts/commit/dbaa4a8deefcbe8ebc6477ada87534a9e31b9056)), closes [#12715](https://github.com/bitnami/charts/issues/12715) - -## 11.5.1 (2022-09-19) - -* [bitnami/thanos] Use custom probes if given (#12563) ([09dacb3](https://github.com/bitnami/charts/commit/09dacb37dcf04eb329aad60a409c10a0a3401ab0)), closes [#12563](https://github.com/bitnami/charts/issues/12563) [#12354](https://github.com/bitnami/charts/issues/12354) - -## 11.5.0 (2022-09-14) - -* [bitnami/thanos] Add support for HTTPS and basic auth experimental settings (#12404) ([422981c](https://github.com/bitnami/charts/commit/422981caae99d7fcfc2bd1450f8fb5af40109e2f)), closes [#12404](https://github.com/bitnami/charts/issues/12404) - -## 11.4.1 (2022-09-14) - -* [bitnami/thanos] Fix receive-distributor nodeAffinityPreset (#12355) ([9e45e5d](https://github.com/bitnami/charts/commit/9e45e5d1cd37f99f847401ad95ee5c07cbd145c6)), closes [#12355](https://github.com/bitnami/charts/issues/12355) - -## 11.4.0 (2022-09-02) - -* [bitnami/thanos] Allowed to add labels to query-frontend service and storegateway PVC (#11549) ([2da04d4](https://github.com/bitnami/charts/commit/2da04d4aafd9b92d4b2600923193f8a35b799d27)), closes [#11549](https://github.com/bitnami/charts/issues/11549) - -## 11.3.1 (2022-08-30) - -* [bitnami/thanos] Release 11.3.1 updating components versions ([9869e75](https://github.com/bitnami/charts/commit/9869e75c273655f460e979b9223e822bd93e5fbe)) - -## 11.3.0 (2022-08-29) - -* [bitnami/thanos] feat: create sharded hpa and pdb for storegateway (#11426) ([cea7c08](https://github.com/bitnami/charts/commit/cea7c08fb195b6a28a61da83224a597e8dca4a90)), closes [#11426](https://github.com/bitnami/charts/issues/11426) - -## 11.2.2 (2022-08-23) - -* [bitnami/thanos] Update Chart.lock (#12108) ([c6b9ba3](https://github.com/bitnami/charts/commit/c6b9ba3c9c117b9f790e922ec27b7f996a63555a)), closes [#12108](https://github.com/bitnami/charts/issues/12108) -* Fix thanos compactor ingressclassname conditional (#11976) ([2881800](https://github.com/bitnami/charts/commit/28818003526bfb0b7e881359438ecf1dccc5694f)), closes [#11976](https://github.com/bitnami/charts/issues/11976) - -## 11.2.1 (2022-08-22) - -* [bitnami/thanos] Update Chart.lock (#11979) ([aa39c57](https://github.com/bitnami/charts/commit/aa39c57cb1360604c3193fc0bbab604c6ccdbd70)), closes [#11979](https://github.com/bitnami/charts/issues/11979) - -## 11.2.0 (2022-08-22) - -* [bitnami/thanos] - Fix typo in k8s annotation (#11553) ([63a17fc](https://github.com/bitnami/charts/commit/63a17fc830cd104e0d43f5d4cff0ee842f5bb877)), closes [#11553](https://github.com/bitnami/charts/issues/11553) -* [bitnami/thanos] Add support for image digest apart from tag (#11955) ([7cd4152](https://github.com/bitnami/charts/commit/7cd415250be58a485717f950cc0a75c153ebe7ef)), closes [#11955](https://github.com/bitnami/charts/issues/11955) - -## 11.1.4 (2022-08-04) - -* [bitnami/thanos] Release 11.1.4 updating components versions ([1765142](https://github.com/bitnami/charts/commit/17651420133dde452b668d7d45431f5fb6f2028a)) - -## 11.1.3 (2022-07-27) - -* [bitnami/*] Update URLs to point to the new bitnami/containers monorepo (#11352) ([d665af0](https://github.com/bitnami/charts/commit/d665af0c708846192d8d5fb2f5f9ea65dd464ab0)), closes [#11352](https://github.com/bitnami/charts/issues/11352) -* [bitnami/thanos] Conditionally Set objstore arg and OBJSTORE_CONFIG for Thanos receive (#11274) ([fe373e8](https://github.com/bitnami/charts/commit/fe373e8f44d23d5ffcafc0c3899939890a901d5d)), closes [#11274](https://github.com/bitnami/charts/issues/11274) - -## 11.1.2 (2022-07-18) - -* [bitnami/thanos] Release 11.1.2 updating components versions ([a49e568](https://github.com/bitnami/charts/commit/a49e56897c178ad4230f139fad2c21572cfb8934)) - -## 11.1.1 (2022-07-15) - -* replaced --store= with --endpoint (#11178) ([632a11d](https://github.com/bitnami/charts/commit/632a11de283841c1387eee2c979187947ad82c2a)), closes [#11178](https://github.com/bitnami/charts/issues/11178) - -## 11.1.0 (2022-07-12) - -* [bitnami/thanos] feat: update default prometheusrule value (#10979) ([3d81b51](https://github.com/bitnami/charts/commit/3d81b5111dee21d81e817fbf7ca2809c95a042ec)), closes [#10979](https://github.com/bitnami/charts/issues/10979) - -## 11.0.0 (2022-07-12) - -* [bitnami/thanos]: Allow receiver to run without object store config (#11030) ([24fab8a](https://github.com/bitnami/charts/commit/24fab8ab5a9055b44fc9c157288f8bb40c97a4a7)), closes [#11030](https://github.com/bitnami/charts/issues/11030) -* [bitnami/thanos] Creates separate service for grpc port of query module (#11051) ([dab4304](https://github.com/bitnami/charts/commit/dab43043381903de24308c701dc6248d1e66ad79)), closes [#11051](https://github.com/bitnami/charts/issues/11051) - -## 10.5.5 (2022-07-06) - -* [bitnami/thanos] Release 10.5.5 updating components versions ([d4ef1ea](https://github.com/bitnami/charts/commit/d4ef1ead76bfa212a9d45ec31e7ef49fa4b98e88)) - -## 10.5.4 (2022-06-29) - -* [bitnami/thanos] Release 10.5.4 updating components versions ([6933c57](https://github.com/bitnami/charts/commit/6933c5781727171b6f82189a409ca6b7c172326f)) - -## 10.5.3 (2022-06-20) - -* [bitnami/thanos] Fix customStartupProbe for thanos receive statefulset (#10780) ([2e87be1](https://github.com/bitnami/charts/commit/2e87be1616ed85702c485ebd380e0adf182916f4)), closes [#10780](https://github.com/bitnami/charts/issues/10780) - -## 10.5.2 (2022-06-09) - -* [bitnami/*] Replace Kubeapps URL in READMEs (and kubeapps Chart.yaml) and remove BKPR references (#1 ([c6a7914](https://github.com/bitnami/charts/commit/c6a7914361e5aea6016fb45bf4d621edfd111d32)), closes [#10600](https://github.com/bitnami/charts/issues/10600) -* [bitnami/thanos] Release 10.5.2 updating components versions ([f47996b](https://github.com/bitnami/charts/commit/f47996b7385c08698cf89c636e616addbf676add)) - -## 10.5.1 (2022-06-01) - -* [bitnami/several] Replace maintainers email by url (#10523) ([ff3cf61](https://github.com/bitnami/charts/commit/ff3cf617a1680509b0f3855d17c4ccff7b29a0ff)), closes [#10523](https://github.com/bitnami/charts/issues/10523) - -## 10.5.0 (2022-05-27) - -* [bitnami/thanos] Implement ServiceAccount.create and ServiceAccount.name with BWC (#10447) ([18f9389](https://github.com/bitnami/charts/commit/18f9389f3a6c96319597d0b77dad351a349b246f)), closes [#10447](https://github.com/bitnami/charts/issues/10447) - -## 10.4.3 (2022-05-26) - -* [bitnami/thanos] Release 10.4.3 updating components versions ([295288d](https://github.com/bitnami/charts/commit/295288dc63db2ae18ea51aa8f8c8cb4e07a594a8)) - -## 10.4.2 (2022-05-20) - -* [bitnami/*] Fix HPA API version template usage (#10332) ([85ce7af](https://github.com/bitnami/charts/commit/85ce7af79a6a44d8b90e4907064ca77efe7c8288)), closes [#10332](https://github.com/bitnami/charts/issues/10332) - -## 10.4.1 (2022-05-19) - -* [bitnami/thanos] Release 10.4.1 updating components versions ([c5c5446](https://github.com/bitnami/charts/commit/c5c5446a7b576982b8f64715ca5a49913a53feb8)) - -## 10.4.0 (2022-05-16) - -* [bitnami/*] add ingress extraRules feature (#10253) ([0f6cbb9](https://github.com/bitnami/charts/commit/0f6cbb9099b0e56685cc1d36ba50340f3d7278a1)), closes [#10253](https://github.com/bitnami/charts/issues/10253) - -## 10.3.10 (2022-05-13) - -* [bitnami/thanos] Use the new helper for HPA API version (#10214) ([e4b6ee8](https://github.com/bitnami/charts/commit/e4b6ee86e0799394f3a84d8f718a487338a94ab9)), closes [#10214](https://github.com/bitnami/charts/issues/10214) - -## 10.3.9 (2022-05-13) - -* [bitnami/*] Remove old 'ci' files (#10171) ([5df30c4](https://github.com/bitnami/charts/commit/5df30c44dbd1812da8786579ce4a94917d46a6ad)), closes [#10171](https://github.com/bitnami/charts/issues/10171) -* [bitnami/*] Unify k8s directives separators (#10185) ([2650214](https://github.com/bitnami/charts/commit/26502141d146ca3bdfb3bf744fcdec8ca5cece44)), closes [#10185](https://github.com/bitnami/charts/issues/10185) -* [bitnami/thanos] Add missing namespace metadata (#10160) ([6c40169](https://github.com/bitnami/charts/commit/6c40169ffa706bcc414784818eed99beb425a7f3)), closes [#10160](https://github.com/bitnami/charts/issues/10160) - -## 10.3.8 (2022-05-11) - -* [bitnami/*] Fix typo in comments (relay -> rely) (#10151) ([9cfe4a4](https://github.com/bitnami/charts/commit/9cfe4a48cc35851faea6be7ffb2a978d223befa0)), closes [#10151](https://github.com/bitnami/charts/issues/10151) - -## 10.3.7 (2022-05-05) - -* [bitnami/thanos] Release 10.3.7 updating components versions ([e29e9a5](https://github.com/bitnami/charts/commit/e29e9a5cc18e8929671fcfcf96149e9d722432f6)) - -## 10.3.6 (2022-04-21) - -* [bitnami/thanos] Release 10.3.6 updating components versions ([d13c99b](https://github.com/bitnami/charts/commit/d13c99bd54d06a1a0d4fdb425fd2c3d300ecbe3d)) - -## 10.3.5 (2022-04-20) - -* [bitnami/thanos] set properly scope for include func in ingress (#9824) ([d268423](https://github.com/bitnami/charts/commit/d268423804d9a97566b99ba02ecee4f9a870a398)), closes [#9824](https://github.com/bitnami/charts/issues/9824) - -## 10.3.4 (2022-04-13) - -* fix(thanos-storegateway): error in accessed value (#9762) ([1e7c762](https://github.com/bitnami/charts/commit/1e7c762661188f3a56cd4d5a34a5577a5c50147a)), closes [#9762](https://github.com/bitnami/charts/issues/9762) - -## 10.3.3 (2022-04-08) - -* [bitnami/thanos] Use correct helpers for ingress-grpc.yaml (#9715) ([916552b](https://github.com/bitnami/charts/commit/916552b22690c6fd9b0a3224812be625a8e47523)), closes [#9715](https://github.com/bitnami/charts/issues/9715) - -## 10.3.2 (2022-04-06) - -* [bitnami/thanos] Release 10.3.2 updating components versions ([0ecc1af](https://github.com/bitnami/charts/commit/0ecc1aff7f5ac40e06e8b469110e19927a614b45)) - -## 10.3.1 (2022-03-29) - -* [bitnami/thanos] Release 10.3.1 updating components versions ([f5bc313](https://github.com/bitnami/charts/commit/f5bc3138f366adf774b30a9bf26a0252df21e4d0)) - -## 10.3.0 (2022-03-29) - -* [bitnami/thanos] added Parameter for automountServiceAccountToken on every Deployment or Statefulset ([ebc73d5](https://github.com/bitnami/charts/commit/ebc73d5903e68e731ae3a3a651ccd9bc8cec8a1f)), closes [#9590](https://github.com/bitnami/charts/issues/9590) - -## 10.2.3 (2022-03-24) - -* [bitnami/thanos] Release 10.2.3 updating components versions ([6e4d898](https://github.com/bitnami/charts/commit/6e4d89871bf39fa408201a52668b71f9adbd65c2)) - -## 10.2.2 (2022-03-21) - -* [bitnami/thanos] - updated version and fixed typo servername to serverName in deployment.yml (#9485) ([30c773f](https://github.com/bitnami/charts/commit/30c773fef3a4948be87c7d7758cc055300b36cca)), closes [#9485](https://github.com/bitnami/charts/issues/9485) - -## 10.2.1 (2022-03-18) - -* [bitnami/thanos] Release 10.2.1 updating components versions ([2e4ab71](https://github.com/bitnami/charts/commit/2e4ab71320c30f91fd57d264893407f16ce6d96b)) - -## 10.2.0 (2022-03-18) - -* [bitnami/thanos] add replication-factor to receive-distributor and set replication-factor based on ([7e3b2d2](https://github.com/bitnami/charts/commit/7e3b2d2fdcd740a31fa3a1adffadf28eac03ee7c)), closes [#9447](https://github.com/bitnami/charts/issues/9447) - -## 10.1.1 (2022-03-10) - -* [bitnami/thanos] Release 10.1.1 updating components versions ([b1d6f97](https://github.com/bitnami/charts/commit/b1d6f97af442f721ff3e2356cc52ce870197c7f4)) - -## 10.1.0 (2022-03-10) - -* [bitnami/*] Fix non utf8 characters (#9347) ([0cec8a8](https://github.com/bitnami/charts/commit/0cec8a8d30b8f1ca85febe9acc342522d5b18850)), closes [#9347](https://github.com/bitnami/charts/issues/9347) -* Read only root file system thanos (#9358) ([4a34d72](https://github.com/bitnami/charts/commit/4a34d724cee2144046fa7f770c3866f49984b956)), closes [#9358](https://github.com/bitnami/charts/issues/9358) - -## 10.0.0 (2022-03-07) - -* [bitnami/thanos] Remove compatibility with MINIO_ACCESS_KEY and MINIO_SECRET_KEY (#9322) ([89cb308](https://github.com/bitnami/charts/commit/89cb3086a4711176d3dc93d25910e8bf6906548c)), closes [#9322](https://github.com/bitnami/charts/issues/9322) - -## 9.0.13 (2022-03-04) - -* [bitnami/several] Reorder subcharts (#9299) ([a041f6b](https://github.com/bitnami/charts/commit/a041f6b0ff2dea82b3d030cb99454cede94dbc9a)), closes [#9299](https://github.com/bitnami/charts/issues/9299) - -## 9.0.12 (2022-03-03) - -* [bitnami/thanos] Release 9.0.12 updating components versions ([4961e12](https://github.com/bitnami/charts/commit/4961e12e11d29353595e908919f383d75b756714)) - -## 9.0.11 (2022-03-02) - -* [bitnami/thanos] Fix: remove `replicas` setting if autoscaling is enabled. (#9254) ([7e76326](https://github.com/bitnami/charts/commit/7e76326bfd9200e45ef7dd978cb162c8501e9776)), closes [#9254](https://github.com/bitnami/charts/issues/9254) - -## 9.0.10 (2022-03-02) - -* [bitnami/thanos] Fix: use name passed to receive.existingConfigmap if set (#9253) ([7946e12](https://github.com/bitnami/charts/commit/7946e128b16b9cc8e81ea51c31a6b0cfe3f2c3f8)), closes [#9253](https://github.com/bitnami/charts/issues/9253) - -## 9.0.9 (2022-03-01) - -* [bitnami/thanos] Remove Replica Count if HPA is Enabled (#9235) ([0fc3c2f](https://github.com/bitnami/charts/commit/0fc3c2f3d3585944b9c597ddd340d5c25135406e)), closes [#9235](https://github.com/bitnami/charts/issues/9235) - -## 9.0.8 (2022-02-25) - -* [bitnami/thanos] Added minio reference link in values.yaml (#9196) ([d97f4eb](https://github.com/bitnami/charts/commit/d97f4ebb4db8bc046e6373d1a72a0cad28743124)), closes [#9196](https://github.com/bitnami/charts/issues/9196) - -## 9.0.7 (2022-02-25) - -* [bitnami/thanos] Properly name HPA for receive-distributor (#9184) ([101b585](https://github.com/bitnami/charts/commit/101b585819475e3da48d669f9a6a4dfd1b31b5d6)), closes [#9184](https://github.com/bitnami/charts/issues/9184) - -## 9.0.6 (2022-02-24) - -* [bitnami/Thanos] Add volumePermission initContainer for receive statefulset (#9172) ([f569b71](https://github.com/bitnami/charts/commit/f569b71c6301a981235d23683cb60a5ef41acf9c)), closes [#9172](https://github.com/bitnami/charts/issues/9172) - -## 9.0.5 (2022-02-21) - -* [bitnami/thanos] Do not hardcode PDB apiVersion (#9118) ([dbc4086](https://github.com/bitnami/charts/commit/dbc40869b6c1bcdc496978bf987f0d837d9c944b)), closes [#9118](https://github.com/bitnami/charts/issues/9118) - -## 9.0.4 (2022-02-09) - -* [bitnami/thanos] Release 9.0.4 updating components versions ([415688c](https://github.com/bitnami/charts/commit/415688c408d7b971454efd9fcb798cb97e17d16a)) -* Non utf8 chars (#8923) ([6ffd18f](https://github.com/bitnami/charts/commit/6ffd18fbbdf10e94ea1a90cf5b84ef610ac2a72d)), closes [#8923](https://github.com/bitnami/charts/issues/8923) - -## 9.0.3 (2022-02-02) - -* [bitnami/*] Make use of new "common.ingress.certManagerRequest" helper (#8862) ([12e4c37](https://github.com/bitnami/charts/commit/12e4c3733eaeaa9a5579fdf917fa098a0f2aae23)), closes [#8862](https://github.com/bitnami/charts/issues/8862) - -## 9.0.2 (2022-01-28) - -* [bitnami/thanos] fix receive-distributor pdb selector (#8810) ([6389b56](https://github.com/bitnami/charts/commit/6389b56d5b24c697a4288eebb8c569cd8d7a3481)), closes [#8810](https://github.com/bitnami/charts/issues/8810) - -## 9.0.1 (2022-01-20) - -* [bitnami/*] Update READMEs (#8716) ([b9a9533](https://github.com/bitnami/charts/commit/b9a953337590eb2979453385874a267bacf50936)), closes [#8716](https://github.com/bitnami/charts/issues/8716) -* [bitnami/several] Change prerequisites (#8725) ([8d740c5](https://github.com/bitnami/charts/commit/8d740c566cfdb7e2d933c40128b4e919fce953a5)), closes [#8725](https://github.com/bitnami/charts/issues/8725) - -## 9.0.0 (2022-01-17) - -* [bitnami/*] Readme automation (#8579) ([78d1938](https://github.com/bitnami/charts/commit/78d193831c900d178198491ffd08fa2217a64ecd)), closes [#8579](https://github.com/bitnami/charts/issues/8579) -* [bitnami/thanos] Update MinIO subchart to newest major version (#8686) ([fdbefbf](https://github.com/bitnami/charts/commit/fdbefbfd140f183a2d7ecd6846a1db1159a5fabc)), closes [#8686](https://github.com/bitnami/charts/issues/8686) - -## 8.3.0 (2022-01-05) - -* [bitnami/several] Adapt templating format (#8562) ([8cad18a](https://github.com/bitnami/charts/commit/8cad18aed9966a6f0208e5ad6cee46cb217f47ab)), closes [#8562](https://github.com/bitnami/charts/issues/8562) -* [bitnami/several] Add license to the README ([05f7633](https://github.com/bitnami/charts/commit/05f763372501d596e57db713dd53ff4ff3027cc4)) -* [bitnami/several] Add license to the README ([32fb238](https://github.com/bitnami/charts/commit/32fb238e60a0affc6debd3142eaa3c3d9089ec2a)) -* [bitnami/several] Add license to the README ([b87c2f7](https://github.com/bitnami/charts/commit/b87c2f7899d48a8b02c506765e6ae82937e9ba3f)) -* bitnami/thanos chart: readme typo (#8558) ([e8aa5f8](https://github.com/bitnami/charts/commit/e8aa5f8141ddc9f3e2d441b4edc152ef86b01bea)), closes [#8558](https://github.com/bitnami/charts/issues/8558) - -## 8.2.5 (2021-12-22) - -* [bitnami/thanos] Release 8.2.5 updating components versions ([c88784b](https://github.com/bitnami/charts/commit/c88784b1b517ba8bbfda4d2d7a1ed6d30ee4a528)) - -## 8.2.4 (2021-12-22) - -* [bitnami/thanos] Release 8.2.4 updating components versions ([99ff271](https://github.com/bitnami/charts/commit/99ff271595cec898df2abbd38c6f428bdd430782)) - -## 8.2.3 (2021-12-17) - -* [bitnami/thanos] fix auto Generated certificate (#8405) ([8d4a546](https://github.com/bitnami/charts/commit/8d4a546197856c9cb4b56f1d442ff35c5fc8c372)), closes [#8405](https://github.com/bitnami/charts/issues/8405) - -## 8.2.2 (2021-12-14) - -* [bitnami/thanos] fix remote port in thanos-receive ingress (#8313) ([b8a5eb4](https://github.com/bitnami/charts/commit/b8a5eb44a1b6abaa4440d5dc5dc0e923358c028e)), closes [#8313](https://github.com/bitnami/charts/issues/8313) -* [bitnami/thanos] Release 8.2.2 updating components versions ([5d991d3](https://github.com/bitnami/charts/commit/5d991d3cd14c82df0886f4e2f733b604378c2af3)) - -## 8.2.1 (2021-12-09) - -* [Thanos] Fix grpc.server.tls.autoGenerated doesn't work (#8323) ([42b51c5](https://github.com/bitnami/charts/commit/42b51c5b328fb7d54b69c798588e071d7bf100de)), closes [#8323](https://github.com/bitnami/charts/issues/8323) - -## 8.2.0 (2021-12-07) - -* [bitnami/thanos] Add networkpolicy support (#8283) ([d027f36](https://github.com/bitnami/charts/commit/d027f365aa4521dc4d97b954db7e7b2971fc690d)), closes [#8283](https://github.com/bitnami/charts/issues/8283) -* Update Thanos Readme for minio configuration. (#8249) ([6eb0d3c](https://github.com/bitnami/charts/commit/6eb0d3c207d2b61c0fc6929a6b24f3d6cddf961f)), closes [#8249](https://github.com/bitnami/charts/issues/8249) - -## 8.1.2 (2021-11-29) - -* [bitnami/several] Replace HTTP by HTTPS when possible (#8259) ([eafb5bd](https://github.com/bitnami/charts/commit/eafb5bd5a2cc3aaf04fc1e8ebedd73f420d76864)), closes [#8259](https://github.com/bitnami/charts/issues/8259) - -## 8.1.1 (2021-11-26) - -* [bitnami/thanos] Fix thanos query grpc nodeport (#8250) ([05c57f7](https://github.com/bitnami/charts/commit/05c57f7ea39a0336cdc97e2e7b0803cbc9ad5d85)), closes [#8250](https://github.com/bitnami/charts/issues/8250) - -## 8.1.0 (2021-11-23) - -* [bitnami/thanos] Add StoreGateway GRPC ingress (#8209) ([d35b691](https://github.com/bitnami/charts/commit/d35b691cc9f3d80c9867c222477d7b57387df767)), closes [#8209](https://github.com/bitnami/charts/issues/8209) - -## 8.0.3 (2021-11-15) - -* [bitnami/thanos] fix port recive-distributor (#8099) ([17fd9b9](https://github.com/bitnami/charts/commit/17fd9b9819a1091ff83b9b466976a664f13b932b)), closes [#8099](https://github.com/bitnami/charts/issues/8099) - -## 8.0.2 (2021-11-12) - -* [thanos] fix non-autogenerated secrets type (#8105) ([f104c5d](https://github.com/bitnami/charts/commit/f104c5de2438cc59596d6f236fabe120760061b8)), closes [#8105](https://github.com/bitnami/charts/issues/8105) - -## 8.0.1 (2021-11-11) - -* [bitnami/several] Regenerate README tables ([ef52074](https://github.com/bitnami/charts/commit/ef52074d5f3dd00218322cd201f83ee55f9dd1e6)) -* [bitnami/thanos] Fix Receiver Distributor (#8089) ([7f36a0c](https://github.com/bitnami/charts/commit/7f36a0c274817c69377f7c22bcfa68536ed41d2d)), closes [#8089](https://github.com/bitnami/charts/issues/8089) - -## 8.0.0 (2021-11-05) - -* [bitnami/thanos] Chart standarized (#8023) ([5619131](https://github.com/bitnami/charts/commit/56191311cb69f73980e5eb6b6535e44f041902c5)), closes [#8023](https://github.com/bitnami/charts/issues/8023) - -## 7.1.0 (2021-11-05) - -* [bitnami/thanos] Add additionalHeadless service to the querier component. (#7927) ([89d9d7d](https://github.com/bitnami/charts/commit/89d9d7df53e89f8657c907a13b9c4fdb144f9512)), closes [#7927](https://github.com/bitnami/charts/issues/7927) - -## 7.0.5 (2021-11-02) - -* [bitnami/thanos] Fix strategy configuration for Thanos Recieve (#7956) ([47abc23](https://github.com/bitnami/charts/commit/47abc236199c4089306418877e7ba4711fa89999)), closes [#7956](https://github.com/bitnami/charts/issues/7956) - -## 7.0.4 (2021-10-29) - -* corrects Thanos Query GRPC ingress service port for extraHosts (#7974) ([43beb15](https://github.com/bitnami/charts/commit/43beb15821c0e4b71c34a4bf9b26db5599acd395)), closes [#7974](https://github.com/bitnami/charts/issues/7974) - -## 7.0.3 (2021-10-29) - -* [bitnami/*] Mark PodSecurityPolicy resources as deprecated (#7951) ([035d926](https://github.com/bitnami/charts/commit/035d926d45526472dbf703ea285ebf491c442c8e)), closes [#7951](https://github.com/bitnami/charts/issues/7951) -* [bitnami/thanos] Fix Thanos Query GRPC Ingress service port (#7968) ([7db5ad3](https://github.com/bitnami/charts/commit/7db5ad39ef49259605b004e57b7d1bf31c92744b)), closes [#7968](https://github.com/bitnami/charts/issues/7968) - -## 7.0.2 (2021-10-28) - -* [bitnami/thanos] Replace nodePorts.grpc/http to http/grpc.nodePorts in the servce sharded (#7940) ([1324736](https://github.com/bitnami/charts/commit/13247368416687c35459ad90740fc0a5c152e6fa)), closes [#7940](https://github.com/bitnami/charts/issues/7940) - -## 7.0.1 (2021-10-22) - -* [bitnami/several] Add chart info to NOTES.txt (#7889) ([a6751cd](https://github.com/bitnami/charts/commit/a6751cdd33c461fabbc459fbea6f219ec64ab6b2)), closes [#7889](https://github.com/bitnami/charts/issues/7889) -* [bitnami/several] Regenerate README tables ([fbb0358](https://github.com/bitnami/charts/commit/fbb0358f0d99d2ea30fa27cd14af89ca1217dc4b)) - -## 7.0.0 (2021-10-21) - -* [bitnami/thanos] New major version (#7875) ([91120ea](https://github.com/bitnami/charts/commit/91120ea463e0d7212b737f29458804accb0fe1b4)), closes [#7875](https://github.com/bitnami/charts/issues/7875) - -## 6.0.14 (2021-10-19) - -* [bitnami/several] Change pullPolicy for bitnami-shell image (#7852) ([9711a33](https://github.com/bitnami/charts/commit/9711a33c6eec72ea79143c4b7574dbe6a148d6b2)), closes [#7852](https://github.com/bitnami/charts/issues/7852) -* [bitnami/several] Regenerate README tables ([d8e471f](https://github.com/bitnami/charts/commit/d8e471fea607ff755d06b8c7dffb98008ea34a53)) - -## 6.0.13 (2021-10-14) - -* [bitnami/several] Regenerate README tables ([a678bc7](https://github.com/bitnami/charts/commit/a678bc7ba8f35e8e9735b23d136aeeff7c4db1d2)) -* Fixed broken links in Airflow and Thanos READMEs (#7804) ([87ba524](https://github.com/bitnami/charts/commit/87ba524f7b085adc8b31bdf4432ddf3f493bee06)), closes [#7804](https://github.com/bitnami/charts/issues/7804) - -## 6.0.12 (2021-10-06) - -* [bitnami/several] Regenerate README tables ([cdcf8c1](https://github.com/bitnami/charts/commit/cdcf8c1407a9a23b93fadf513be21ca1f9c7c056)) -* [bitnami/thanos] Release 6.0.12 updating components versions ([995bb31](https://github.com/bitnami/charts/commit/995bb317f030ded3efc2efa8295ea12053f0b2a6)) - -## 6.0.11 (2021-10-05) - -* [bitnami/several] Regenerate README tables ([c3367d9](https://github.com/bitnami/charts/commit/c3367d910710aece8db3ece72554597fce871ae1)) -* bitnami/thanos: Switch deployment strategy to 'Recreate' (#7402) ([bfe34d4](https://github.com/bitnami/charts/commit/bfe34d4502a820901645fbcf70f1ae888d349fa0)), closes [#7402](https://github.com/bitnami/charts/issues/7402) - -## 6.0.10 (2021-10-01) - -* [bitnami/*] Drop support for deprecated cert-manager annotation (#7646) ([4297b79](https://github.com/bitnami/charts/commit/4297b792e48fba9c7c3b8fed447a856632c61201)), closes [#7646](https://github.com/bitnami/charts/issues/7646) - -## 6.0.4 (2021-09-30) - -* [bitnami/several] Regenerate README tables ([5a24d1f](https://github.com/bitnami/charts/commit/5a24d1fc9508abfef7fc8a85d0ac64f5d2f7926a)) -* [bitnami/thanos] compactor and storegateway svc ref in ingress with common name (#7548) ([2afda16](https://github.com/bitnami/charts/commit/2afda168725556251dc543ed81cee8b66b331d44)), closes [#7548](https://github.com/bitnami/charts/issues/7548) - -## 6.0.3 (2021-09-27) - -* [bitnami/*] Generate READMEs with new generator version (#7614) ([e5ab2e6](https://github.com/bitnami/charts/commit/e5ab2e6ecdd6bce800863f154cda524ff9f6c117)), closes [#7614](https://github.com/bitnami/charts/issues/7614) -* [bitnami/several] Regenerate README tables ([79eac44](https://github.com/bitnami/charts/commit/79eac4490bf5d0abe582920d9662a892c9666870)) -* [bitnami/thanos] Release 6.0.3 updating components versions ([8fefd0d](https://github.com/bitnami/charts/commit/8fefd0dc8206e0ee66140230e47506158776b04e)) - -## 6.0.2 (2021-09-22) - -* [bitnami/several] Regenerate README tables ([003a0fb](https://github.com/bitnami/charts/commit/003a0fbaedeb775c546b8d8452b7a5ab0a63af52)) -* T41189 Fixed broken links in Thanos README (#7542) ([2d94f8c](https://github.com/bitnami/charts/commit/2d94f8ce91bc381affb40c4acb572a9380f21653)), closes [#7542](https://github.com/bitnami/charts/issues/7542) - -## 6.0.1 (2021-09-16) - -* [bitnami/thanos] Release 6.0.1 updating components versions ([a19ddba](https://github.com/bitnami/charts/commit/a19ddbae5a57db4798664b3ed9db88613b7bf411)) - -## 6.0.0 (2021-09-13) - -* [bitnami/several] Regenerate README tables ([a94b593](https://github.com/bitnami/charts/commit/a94b5937a8665743457afc158202ebc33405c8e1)) -* [bitnami/thanos] Fix incorrect ingress name (#7442) ([2f783cb](https://github.com/bitnami/charts/commit/2f783cb15faf07479a9f3c839a34f330b4cceb21)), closes [#7442](https://github.com/bitnami/charts/issues/7442) -* [bitnami/thanos] Update subcharts (#7469) ([9beab3f](https://github.com/bitnami/charts/commit/9beab3f8a248be6e6edad673c8d0ccdf2a9a037f)), closes [#7469](https://github.com/bitnami/charts/issues/7469) - -## 5.5.1 (2021-09-10) - -* [bitnami/several] Regenerate README tables ([dcb935c](https://github.com/bitnami/charts/commit/dcb935c1bf066b6d8988f3b0dbe85d01aa01b215)) -* [bitnami/thanos] Release 5.5.1 updating components versions ([82c1f72](https://github.com/bitnami/charts/commit/82c1f7244ebb4f9051df84b15bdab97e8f2b5e77)) - -## 5.5.0 (2021-09-09) - -* [bitnami/several] Regenerate README tables ([e0a27b4](https://github.com/bitnami/charts/commit/e0a27b4c05c509da51859373dad032294438af74)) -* [bitnami/thanos] Thanos receiver dualmode (#7148) ([418167c](https://github.com/bitnami/charts/commit/418167c7fa95248f2882c67f35a76ec4c80967c3)), closes [#7148](https://github.com/bitnami/charts/issues/7148) - -## 5.4.0 (2021-09-03) - -* [bitnami/several] Regenerate README tables ([6c9124f](https://github.com/bitnami/charts/commit/6c9124f79491aa65f53a87c1ed598b47ffa8b411)) -* [bitnami/thanos] add ingressClassName (#7374) ([55aa59e](https://github.com/bitnami/charts/commit/55aa59e7a9856175dd32b836ed3d5ee3b115b2e5)), closes [#7374](https://github.com/bitnami/charts/issues/7374) - -## 5.3.2 (2021-08-20) - -* Bitnami/thanos receiver ingress issue (#7265) ([5286377](https://github.com/bitnami/charts/commit/52863779f39e0c79ddc791d6af176e7f18f39fef)), closes [#7265](https://github.com/bitnami/charts/issues/7265) - -## 5.3.1 (2021-08-12) - -* [bitnami/thanos] Update thanos query to read sharded service (#7201) ([4bc6e08](https://github.com/bitnami/charts/commit/4bc6e08620bca4d0159fb5e9d365c4717674e5c4)), closes [#7201](https://github.com/bitnami/charts/issues/7201) - -## 5.3.0 (2021-08-12) - -* [bitnami/several] Regenerate README tables ([6c107e8](https://github.com/bitnami/charts/commit/6c107e835d6caf8db2e8b17dcd48c5971637e013)) -* [bitnami/thanos] Add hash and time base partion for thanos store (#7049) ([404eb51](https://github.com/bitnami/charts/commit/404eb51fc05cc629a9105c6bc1dcd192f2f4edf8)), closes [#7049](https://github.com/bitnami/charts/issues/7049) - -## 5.2.7 (2021-08-04) - -* [bitnami/thanos] Release 5.2.7 updating components versions ([47fc2ee](https://github.com/bitnami/charts/commit/47fc2ee0f15f94e118ecf655fdd2916de6dc3403)) - -## 5.2.6 (2021-08-02) - -* [bitnami/thanos] Fix nil pointer exception when deploying Thanos with bucketweb ingress. (#7107) ([56297ba](https://github.com/bitnami/charts/commit/56297ba38318a928c694415806bfc4db0d0cf614)), closes [#7107](https://github.com/bitnami/charts/issues/7107) - -## 5.2.5 (2021-07-27) - -* [bitnami/several] Bump version and update READMEs (#7069) ([6340bff](https://github.com/bitnami/charts/commit/6340bff66f93c8c797bda3ca0842e4bf770059f1)), closes [#7069](https://github.com/bitnami/charts/issues/7069) - -## 5.2.4 (2021-07-27) - -* Replace strings with ™ in the README files (#7066) ([d298b49](https://github.com/bitnami/charts/commit/d298b4996da33c9580c2594e6dc8ad665dd0ebab)), closes [#7066](https://github.com/bitnami/charts/issues/7066) - -## 5.2.3 (2021-07-22) - -* [bitnami/thanos] Release 5.2.3 updating components versions ([f10d3e0](https://github.com/bitnami/charts/commit/f10d3e054673428a6d27ae292ad6b2004dbb9e85)) - -## 5.2.2 (2021-07-21) - -* [bitnami/*] Replace nil values (#6993) ([2be11a7](https://github.com/bitnami/charts/commit/2be11a70b92a01603c1f079eeaff4b00dc4796d6)), closes [#6993](https://github.com/bitnami/charts/issues/6993) - -## 5.2.1 (2021-07-19) - -* [bitnami/*] Adapt values.yaml of TensorFlow, TestLink and Thanos charts (#6965) ([71a2668](https://github.com/bitnami/charts/commit/71a2668d72cbec381a006dab16622f19e64e1290)), closes [#6965](https://github.com/bitnami/charts/issues/6965) - -## 5.2.0 (2021-07-19) - -* [bitnami/thanos] Add Prometheus alerts for Thanos components (#6776) ([2d481f0](https://github.com/bitnami/charts/commit/2d481f0cdcfddea5ce9752a58409030e7a6b3a0c)), closes [#6776](https://github.com/bitnami/charts/issues/6776) - -## 5.1.1 (2021-07-13) - -* [bitnami/thanos] Release 5.1.1 updating components versions ([74fe8aa](https://github.com/bitnami/charts/commit/74fe8aa1c2aa8c0ad65a94fdbc61a5b967bb7ad8)) - -## 5.1.0 (2021-07-08) - -* [bitnami/thanos] Common labels thanos (#6885) ([2038d81](https://github.com/bitnami/charts/commit/2038d81d438346ba61220f78b15c2742737640ff)), closes [#6885](https://github.com/bitnami/charts/issues/6885) - -## 5.0.0 (2021-06-29) - -* [bitnami/thanos] Added containerSecurityContext and renamed securityContext to podSecurityContext (# ([1160eee](https://github.com/bitnami/charts/commit/1160eeef7313c0be38fee78b15e164b9aa688cd2)), closes [#6673](https://github.com/bitnami/charts/issues/6673) - -## 4.0.0 (2021-06-22) - -* [bitnami/thanos] Update Thanos' MinIO dependency to its latest major (#6732) ([e94fb6f](https://github.com/bitnami/charts/commit/e94fb6f6681c6f1958301623052c88e208fba1b2)), closes [#6732](https://github.com/bitnami/charts/issues/6732) - -## 3.18.2 (2021-06-17) - -* [bitnami/thanos] fix typo on receive component parameter documentation (#6687) ([bae7796](https://github.com/bitnami/charts/commit/bae779624ab1d414f6d6702e80a6af9c0afaac48)), closes [#6687](https://github.com/bitnami/charts/issues/6687) - -## 3.18.1 (2021-06-16) - -* [bitnami/thanos] Add extended alertmanager configuration by flag or file (#6571) ([1b67f55](https://github.com/bitnami/charts/commit/1b67f5596a12e49d37c2d26069bdd806b957937c)), closes [#6571](https://github.com/bitnami/charts/issues/6571) -* [bitnami/thanos] Modify autogenerate support to fix existingSecret (#6670) ([71eebdc](https://github.com/bitnami/charts/commit/71eebdc946c28aa614061ddf83bcc97a8f4dfd84)), closes [#6670](https://github.com/bitnami/charts/issues/6670) - -## 3.18.0 (2021-06-10) - -* [bitnami/thanos] Add support for autogenerated certs (#6613) ([4435d7c](https://github.com/bitnami/charts/commit/4435d7ce8dae6072688011e2456d36d3246c036d)), closes [#6613](https://github.com/bitnami/charts/issues/6613) - -## 3.17.8 (2021-06-04) - -* [bitnami/thanos] Release 3.17.8 updating components versions ([065b110](https://github.com/bitnami/charts/commit/065b110ecb1c4fb48d1cdcd1c8c3ca6aed08c1e0)) - -## 3.17.7 (2021-06-03) - -* [bitnami/thanos] Release 3.17.7 updating components versions ([1292364](https://github.com/bitnami/charts/commit/12923642ab3e0cd942bbc24f0e0143901eda007e)) - -## 3.17.6 (2021-05-31) - -* [bitnami/thanos] fix securityContext for Receive (#6509) ([695d12b](https://github.com/bitnami/charts/commit/695d12b296a0785eb6c4ebc214ccf827384730a2)), closes [#6509](https://github.com/bitnami/charts/issues/6509) - -## 3.17.5 (2021-05-28) - -* [bitnami/thanos] Release 3.17.5 updating components versions ([e9a6e21](https://github.com/bitnami/charts/commit/e9a6e21c3f1337f4879bd94e5f377bcca5e9fc86)) - -## 3.17.4 (2021-05-28) - -* [bitnami/thanos] use multiple rules files (#6469) ([698aedc](https://github.com/bitnami/charts/commit/698aedca141629cecbaa939f759044e5865b7dc0)), closes [#6469](https://github.com/bitnami/charts/issues/6469) - -## 3.17.3 (2021-05-21) - -* [bitnami/thanos] Release 3.17.3 updating components versions ([e20c3e2](https://github.com/bitnami/charts/commit/e20c3e2453d3d9d5c5aff17e69d37bd9d12200f0)) - -## 3.17.2 (2021-05-20) - -* [bitnami/thanos] Release 3.17.2 updating components versions ([8fdcb1b](https://github.com/bitnami/charts/commit/8fdcb1bccbf6cd5351653aa37df1e670748cdf5e)) - -## 3.17.1 (2021-05-17) - -* [bitnami/thanos] Put /api/v1/receive at the first of rules (thanos-receive ingress) (#6382) ([aee8b9a](https://github.com/bitnami/charts/commit/aee8b9ad38f61d20f62842944ed1cd4e595926b4)), closes [#6382](https://github.com/bitnami/charts/issues/6382) - -## 3.17.0 (2021-05-05) - -* [bitnami/thanos] Adding sidecars to services with ingress (#6259) ([3b7579b](https://github.com/bitnami/charts/commit/3b7579b6dd49003ac367949c06f73cf755f578f6)), closes [#6259](https://github.com/bitnami/charts/issues/6259) - -## 3.16.0 (2021-04-21) - -* feat(extraVolumes/Mounts): addition on all compoments (#6169) ([97c8a94](https://github.com/bitnami/charts/commit/97c8a9438276cf85d5d95dc44e08373e5d57a879)), closes [#6169](https://github.com/bitnami/charts/issues/6169) - -## 3.15.1 (2021-04-16) - -* [bitnami/thanos] fixed thanos/receive HPA (#6122) ([3f180c3](https://github.com/bitnami/charts/commit/3f180c392733ac285990d66415c57933b12279d3)), closes [#6122](https://github.com/bitnami/charts/issues/6122) - -## 3.15.0 (2021-04-02) - -* [bitnami/thanos] adding ability to pass env variables to containers (#5971) ([14777a2](https://github.com/bitnami/charts/commit/14777a22d7ff7559e55b80e7a588ac7d5490e58a)), closes [#5971](https://github.com/bitnami/charts/issues/5971) -* Added tls flag for thanos queryFrontend (#5959) ([a38f684](https://github.com/bitnami/charts/commit/a38f68496afc146bcee995e061a47506f6bdcbc3)), closes [#5959](https://github.com/bitnami/charts/issues/5959) - -## 3.14.2 (2021-04-01) - -* [bitnami/thanos] Release 3.14.2 updating components versions ([9d67a58](https://github.com/bitnami/charts/commit/9d67a589c85fa9bb3cc7aac1522758426b4117a5)) - -## 3.14.1 (2021-03-26) - -* [bitnami/thanos] Release 3.14.1 updating components versions ([636a0cf](https://github.com/bitnami/charts/commit/636a0cf00264704768a21802ee2814d97d68210b)) - -## 3.14.0 (2021-03-22) - -* bitnami/thanos - allow setting externalTrafficPolicy for services (#5860) ([a679659](https://github.com/bitnami/charts/commit/a679659b39649e7995b0a58f14cdfc378a50967c)), closes [#5860](https://github.com/bitnami/charts/issues/5860) - -## 3.13.2 (2021-03-17) - -* [bitnami/thanos] Parametrize Thanos Receive retention period (#5821) ([e1eea94](https://github.com/bitnami/charts/commit/e1eea94c30ab99db055bd0ee74cd2819c979f9cd)), closes [#5821](https://github.com/bitnami/charts/issues/5821) - -## 3.13.1 (2021-03-12) - -* [bitnami/thanos] introduce logFormat in Thanos components (#5747) ([5fd202d](https://github.com/bitnami/charts/commit/5fd202d22c8af0546b31f2c11cf89d5e8a5dd408)), closes [#5747](https://github.com/bitnami/charts/issues/5747) - -## 3.13.0 (2021-03-09) - -* [bitnami/thanos] Add ingress to ruler (#5736) ([555fc87](https://github.com/bitnami/charts/commit/555fc879ee0c90e20072a7636ab73b5338d80626)), closes [#5736](https://github.com/bitnami/charts/issues/5736) - -## 3.12.0 (2021-03-08) - -* [bitnami/thanos] Add PodLabels (#5718) ([b0bd9a6](https://github.com/bitnami/charts/commit/b0bd9a6a8e106abf4abc3a70a16179bdfd35fe23)), closes [#5718](https://github.com/bitnami/charts/issues/5718) - -## 3.11.5 (2021-03-04) - -* [bitnami/*] Remove minideb mentions (#5677) ([870bc4d](https://github.com/bitnami/charts/commit/870bc4dba1fc3aa55dd157da6687b25e8d352206)), closes [#5677](https://github.com/bitnami/charts/issues/5677) - -## 3.11.4 (2021-02-24) - -* [bitnami/thanos] Fixing hashrings.json for thanos-receive component. (#5604) ([0db206e](https://github.com/bitnami/charts/commit/0db206ec5043ca86983394143fbc002440ce02c3)), closes [#5604](https://github.com/bitnami/charts/issues/5604) [#5549](https://github.com/bitnami/charts/issues/5549) - -## 3.11.3 (2021-02-22) - -* [bitnami/*] Use common macro to define RBAC apiVersion (#5585) ([71fb99f](https://github.com/bitnami/charts/commit/71fb99f541e971b1daafaa20ffb7d18b153b8d60)), closes [#5585](https://github.com/bitnami/charts/issues/5585) - -## 3.11.2 (2021-02-19) - -* [bitnami/thanos] Fixing weird behavior when helm library is used from flux and terraform (#5557) ([d56f21f](https://github.com/bitnami/charts/commit/d56f21f76b22822a025f07426fd06b1dc7cbb35a)), closes [#5557](https://github.com/bitnami/charts/issues/5557) [#5549](https://github.com/bitnami/charts/issues/5549) - -## 3.11.1 (2021-02-18) - -* [bitnami/thanos] Fix query receive service discovery (#5510) ([3fe6864](https://github.com/bitnami/charts/commit/3fe68649e1091f66f9638bfb48cbda3fc01f0d58)), closes [#5510](https://github.com/bitnami/charts/issues/5510) - -## 3.11.0 (2021-02-18) - -* [bitnami/thanos] Fixing local-endpoint to work also with scaling. (#5504) ([ed1a655](https://github.com/bitnami/charts/commit/ed1a6551e61f1081445fbfd437101f6bd5301d40)), closes [#5504](https://github.com/bitnami/charts/issues/5504) - -## 3.10.1 (2021-02-17) - -* [bitnami/thanos] fix receive serviceaccount ref to ruler (#5486) ([1b3b6ea](https://github.com/bitnami/charts/commit/1b3b6ea089dfa8239bce9011f5490db2148806e6)), closes [#5486](https://github.com/bitnami/charts/issues/5486) - -## 3.10.0 (2021-02-17) - -* [bitnami/thanos] Add support to configurable replica label (#5512) ([447256b](https://github.com/bitnami/charts/commit/447256b24340c730f4287f3182a7b548ea3a804c)), closes [#5512](https://github.com/bitnami/charts/issues/5512) -* [bitnami/thanos] Fix extraHosts fullnameOverride nil pointer (#5499) ([c813f9a](https://github.com/bitnami/charts/commit/c813f9aea8774e1034c1f29ecd65e51f5d3acc0f)), closes [#5499](https://github.com/bitnami/charts/issues/5499) - -## 3.9.1 (2021-02-16) - -* Fix permissions image in thanos (#5506) ([30b36be](https://github.com/bitnami/charts/commit/30b36be27b08f36351a3a0d6b32a32e89b9885e1)), closes [#5506](https://github.com/bitnami/charts/issues/5506) - -## 3.9.0 (2021-02-15) - -* [bitnami/thanos] Added support for headless (SRV Records) and Ingress for thanos receiver. (#5475) ([951c828](https://github.com/bitnami/charts/commit/951c82830ed1b973d43e17c72b51b741bc1e955d)), closes [#5475](https://github.com/bitnami/charts/issues/5475) - -## 3.8.6 (2021-02-15) - -* [bitnami/thanos] fix query TLS client in a modular way (#5437) (#5457) ([bbbf490](https://github.com/bitnami/charts/commit/bbbf490439643e885529c1c4f25aeb7c9c29dc93)), closes [#5437](https://github.com/bitnami/charts/issues/5437) [#5457](https://github.com/bitnami/charts/issues/5457) [#5437](https://github.com/bitnami/charts/issues/5437) [#3988](https://github.com/bitnami/charts/issues/3988) - -## 3.8.5 (2021-02-12) - -* [bitnami/thanos] Add receive to query dns discovery (#5467) ([0e3d0d6](https://github.com/bitnami/charts/commit/0e3d0d6ad38ea5d085177befb9ce08ba2d675783)), closes [#5467](https://github.com/bitnami/charts/issues/5467) - -## 3.8.4 (2021-02-10) - -* bitnami/thanos - Thanos Receive fixes (#5430) ([eaffdc0](https://github.com/bitnami/charts/commit/eaffdc080719c891827aad846dd8d35baaaefd40)), closes [#5430](https://github.com/bitnami/charts/issues/5430) - -## 3.8.3 (2021-02-08) - -* Update MinIO references, titles, descriptions and disclaimer (#5419) ([99fb55a](https://github.com/bitnami/charts/commit/99fb55a65204405943730cae845d755836a7026c)), closes [#5419](https://github.com/bitnami/charts/issues/5419) - -## 3.8.2 (2021-02-08) - -* [bitnami/thanos] Update ingress.yaml on all components to fix bad ingress behavior. (#5406) ([fe9bde9](https://github.com/bitnami/charts/commit/fe9bde9083136d3c4ad35400eaf29287017e031f)), closes [#5406](https://github.com/bitnami/charts/issues/5406) - -## 3.8.1 (2021-02-04) - -* [bitnami/several] Fix template issue when using ingress secrets (#5373) ([7fd5ea5](https://github.com/bitnami/charts/commit/7fd5ea5ad2d46f5bad85585e04844add77cc4885)), closes [#5373](https://github.com/bitnami/charts/issues/5373) - -## 3.8.0 (2021-02-02) - -* [bitnami/several] Monthly trademark review (#5375) ([307a73d](https://github.com/bitnami/charts/commit/307a73dcca857e4b567113113142c68b6eaf85e0)), closes [#5375](https://github.com/bitnami/charts/issues/5375) -* [bitnami/thanos] Add storegateway secret grpc server tls support (#5344) ([307c637](https://github.com/bitnami/charts/commit/307c637c1a4c14eab0fee4eb119aa5fa464e9b2b)), closes [#5344](https://github.com/bitnami/charts/issues/5344) - -## 3.7.1 (2021-02-01) - -* [bitnami/thanos] Release 3.7.1 updating components versions ([5adb4ea](https://github.com/bitnami/charts/commit/5adb4ea1b6a427a0790a8a3d99c2276acf7f47d4)) - -## 3.7.0 (2021-01-29) - -* [bitnami/thanos] Add hostAliases (#5316) ([9d51691](https://github.com/bitnami/charts/commit/9d516918613fef24f2ff1776d94025694aa65c83)), closes [#5316](https://github.com/bitnami/charts/issues/5316) - -## 3.6.0 (2021-01-28) - -* [bitnami/thanos]: query support for mounting existing secret for gRPC TLS confi… (#5058) ([f4f6e10](https://github.com/bitnami/charts/commit/f4f6e10aea0798b147d14ddc7dc838ac3eae3734)), closes [#5058](https://github.com/bitnami/charts/issues/5058) - -## 3.5.0 (2021-01-25) - -* [bitnami/thanos] Add receive component (#5069) ([faa2a87](https://github.com/bitnami/charts/commit/faa2a874ddcf900225820033f31a6303a0d1995e)), closes [#5069](https://github.com/bitnami/charts/issues/5069) - -## 3.4.1 (2021-01-19) - -* [bitnami/*] Change helm version in the prerequisites (#5090) ([c5e67a3](https://github.com/bitnami/charts/commit/c5e67a388743cbee28439d2cabca27884b9daf97)), closes [#5090](https://github.com/bitnami/charts/issues/5090) -* [bitnami/thanos] Drop values-production.yaml support (#5133) ([6ba10e7](https://github.com/bitnami/charts/commit/6ba10e7af5e89133f5147f46f33db43925c38398)), closes [#5133](https://github.com/bitnami/charts/issues/5133) - -## 3.4.0 (2021-01-15) - -* [bitnami/*] Update ingress for serveral charts (#5012) ([e3bb5a6](https://github.com/bitnami/charts/commit/e3bb5a6e3613d3aefef5561aa3644b34d4cf8a2c)), closes [#5012](https://github.com/bitnami/charts/issues/5012) - -## 3.3.2 (2021-01-07) - -* [bitnami/thanos] Release 3.3.2 updating components versions ([e135c0e](https://github.com/bitnami/charts/commit/e135c0ef3067a16887921205fc0788511b317d53)) - -## 3.3.1 (2021-01-07) - -* [bitnami/minio,harbor,thanos,pytorch] Add trademark to MinIO (#4901) ([54e4bd7](https://github.com/bitnami/charts/commit/54e4bd7b97cf808d378c05361609922d3be3a1a0)), closes [#4901](https://github.com/bitnami/charts/issues/4901) - -## 3.3.0 (2020-12-15) - -* [bitnami/*] Affinity based on common presets (viii) (#4721) ([950ac9c](https://github.com/bitnami/charts/commit/950ac9cd4d3914b7ffe7966b75876f416e479883)), closes [#4721](https://github.com/bitnami/charts/issues/4721) -* [bitnami/*] fix typos (#4699) ([49adc63](https://github.com/bitnami/charts/commit/49adc63b672da976c55af2e077aa5648a357b77f)), closes [#4699](https://github.com/bitnami/charts/issues/4699) - -## 3.2.4 (2020-12-11) - -* [bitnami/*] Update dependencies (#4694) ([2826c12](https://github.com/bitnami/charts/commit/2826c125b42505f28431301e3c1bbe5366e47a01)), closes [#4694](https://github.com/bitnami/charts/issues/4694) - -## 3.2.3 (2020-12-08) - -* [bitnami/thanos] Release 3.2.3 updating components versions ([ef69f62](https://github.com/bitnami/charts/commit/ef69f62151d1d22a2b4d49452e8b7560ebae8dda)) - -## 3.2.2 (2020-12-01) - -* [bitnami/thanos] Reorder HPA to prevent GitOps Diff (#4531) ([7acaf67](https://github.com/bitnami/charts/commit/7acaf674406cbbf1022221efdd445bee47e8a19e)), closes [#4531](https://github.com/bitnami/charts/issues/4531) - -## 3.2.1 (2020-11-26) - -* [bitnami/thanos] Release 3.2.1 updating components versions ([09caa98](https://github.com/bitnami/charts/commit/09caa986155b481dfb420e6fe49ebc68483faee4)) - -## 3.2.0 (2020-11-25) - -* [bitnami/thanos] allow $component.extraFlags to contain multi-line strings (#4473) ([2a349c6](https://github.com/bitnami/charts/commit/2a349c6e5748f1306bbf599870f511170b0a406a)), closes [#4473](https://github.com/bitnami/charts/issues/4473) - -## 3.1.1 (2020-11-25) - -* [bitnami/thanos] Release 3.1.1 updating components versions ([52b2238](https://github.com/bitnami/charts/commit/52b223822ce72b28961774a047018021fcbc34b8)) - -## 3.1.0 (2020-11-24) - -* [bitnami/thanos] rename querier component to query (#4307) ([b9cc743](https://github.com/bitnami/charts/commit/b9cc743812f3d1d9cd1e6b98bfafc9cea4ca32d4)), closes [#4307](https://github.com/bitnami/charts/issues/4307) - -## 3.0.1 (2020-11-19) - -* [bitnami/thanos] Release 3.0.1 updating components versions ([6339dc6](https://github.com/bitnami/charts/commit/6339dc69905d285713c4afb3bb3e33103ebaf317)) - -## 3.0.0 (2020-11-11) - -* [bitnami/thanos] Major version. Adapt Chart to apiVersion: v2 (#4317) ([5ec13cb](https://github.com/bitnami/charts/commit/5ec13cbbd6ef2c9f2e235a7b408a003f6ff7f621)), closes [#4317](https://github.com/bitnami/charts/issues/4317) - -## 2.7.1 (2020-11-11) - -* fix(thanos): add configmap checksum annotation to query-frontend and storegateway (#4247) ([a604dcd](https://github.com/bitnami/charts/commit/a604dcd385c01c998b392911a0d917532414277c)), closes [#4247](https://github.com/bitnami/charts/issues/4247) - -## 2.7.0 (2020-11-11) - -* [bitnami/thanos] fix: add tls switch to enable TLS with cert-manager for querier and bucketweb ingre ([85e5867](https://github.com/bitnami/charts/commit/85e586758c7a5e02422ef3d1650695e22a335767)), closes [#4218](https://github.com/bitnami/charts/issues/4218) - -## 2.6.0 (2020-11-05) - -* [bitnami/*] Include link to Troubleshootin guide on README.md (#4136) ([c08a20e](https://github.com/bitnami/charts/commit/c08a20e3db004215383004ff023a73fcc2522e72)), closes [#4136](https://github.com/bitnami/charts/issues/4136) -* [bitnami/thanos] allow overriding service selectors (#4211) ([843594f](https://github.com/bitnami/charts/commit/843594f61bde8c91396d2aa4a840575c71fdd188)), closes [#4211](https://github.com/bitnami/charts/issues/4211) - -## 2.5.3 (2020-10-26) - -* [bitnami/thanos] Release 2.5.3 updating components versions ([e4f2983](https://github.com/bitnami/charts/commit/e4f2983c999414edf3b053cfa99488c7cb8e0356)) - -## 2.5.2 (2020-10-26) - -* Split Thanos ingress.yaml into two separate ingresses (#4101) ([3362d74](https://github.com/bitnami/charts/commit/3362d743a2a837a8fd4d86e5c84cf4f9b694098c)), closes [#4101](https://github.com/bitnami/charts/issues/4101) - -## 2.5.1 (2020-10-23) - -* [bitnami/thanos] Expose missing podManagementPolicy key for statefulset (#4092) ([9704c29](https://github.com/bitnami/charts/commit/9704c29795b7a8a0258f14d4d030da23acba71c2)), closes [#4092](https://github.com/bitnami/charts/issues/4092) - -## 2.5.0 (2020-10-21) - -* [bitnami/thanos] Add Thanos Query Frontend (#4009) ([3abd227](https://github.com/bitnami/charts/commit/3abd2270bef740d4bd054b831566ea3a09bf7437)), closes [#4009](https://github.com/bitnami/charts/issues/4009) -* Update README.md ([a78ebe0](https://github.com/bitnami/charts/commit/a78ebe00cadc6d97e3a08a1e28af305ffc67324c)) - -## 2.4.6 (2020-10-14) - -* feat(thanos): Enable thanos TLS client in a modular way (#3989) ([28a4845](https://github.com/bitnami/charts/commit/28a4845ae3c645b7dbda8f13cddb441b58dbe53e)), closes [#3989](https://github.com/bitnami/charts/issues/3989) - -## 2.4.5 (2020-10-08) - -* [bitnami/thanos] Release 2.4.5 updating components versions ([53ed3f2](https://github.com/bitnami/charts/commit/53ed3f2c41801df698abcdf06967756dc31fbbec)) - -## 2.4.4 (2020-10-02) - -* [bitnami/thanos] added psp for thanos querier (#3819) ([8976ec4](https://github.com/bitnami/charts/commit/8976ec476ac5e8068752536e49686164ae417ca4)), closes [#3819](https://github.com/bitnami/charts/issues/3819) - -## 2.4.3 (2020-10-02) - -* [bitnami/thanos] Use GRPC extra hosts for thanos querier (#3837) ([94b5825](https://github.com/bitnami/charts/commit/94b58258528eaea60661515c9c9fb6240a84ee43)), closes [#3837](https://github.com/bitnami/charts/issues/3837) - -## 2.4.2 (2020-09-28) - -* [bitnami/thanos] fixes thanos querier sdconfig mount as file, not as path (#3789) ([840d880](https://github.com/bitnami/charts/commit/840d880e5cd52599b73831348172fd187be1f263)), closes [#3789](https://github.com/bitnami/charts/issues/3789) - -## 2.4.1 (2020-09-16) - -* [bitnami/thanos] Querier allow multiple replica labels (#3682) ([0e2351f](https://github.com/bitnami/charts/commit/0e2351f89caabffa14cb96b09a67db57cbd5f19b)), closes [#3682](https://github.com/bitnami/charts/issues/3682) - -## 2.4.0 (2020-09-15) - -* [bitnami/thanos] Fixes for Ingresses of Querier and Bucketweb in Thanos Chart (#3652) ([b96af28](https://github.com/bitnami/charts/commit/b96af28eea219edfc1b90d130cb6453cc779774b)), closes [#3652](https://github.com/bitnami/charts/issues/3652) - -## 2.3.4 (2020-09-08) - -* [bitnami/thanos] Release 2.3.4 updating components versions ([c30dd7f](https://github.com/bitnami/charts/commit/c30dd7f95a3ca1bafbb8e114c8985c65c6a74781)) - -## 2.3.3 (2020-09-07) - -* [bitnami/metrics-server] Add source repo (#3577) ([1ed12f9](https://github.com/bitnami/charts/commit/1ed12f96af75322b46afdb2b3d9907c11b13f765)), closes [#3577](https://github.com/bitnami/charts/issues/3577) -* [bitnami/thanos] fix thanos ruler alert label drop (#3599) ([f34abeb](https://github.com/bitnami/charts/commit/f34abebec50b3751707abffc07d7b70d51a229ee)), closes [#3599](https://github.com/bitnami/charts/issues/3599) - -## 2.3.2 (2020-08-19) - -* Fix mountPath for existingObjstoreSecretItems (#3452) ([f5d4b4d](https://github.com/bitnami/charts/commit/f5d4b4d90efa141a329ba91d1b197641b9e34661)), closes [#3452](https://github.com/bitnami/charts/issues/3452) - -## 2.3.1 (2020-08-14) - -* fix(thanos) change objstore mount path for ruler (#3396) ([277cf7c](https://github.com/bitnami/charts/commit/277cf7cd9b0bfd19a85a49e4b1f6bb903dbc8bb0)), closes [#3396](https://github.com/bitnami/charts/issues/3396) - -## 2.3.0 (2020-08-12) - -* [bitnami/thanos]Add option to configure index storegateway (#3400) ([7bc2bce](https://github.com/bitnami/charts/commit/7bc2bce7094247f9e37a658b66fd1998a349b1df)), closes [#3400](https://github.com/bitnami/charts/issues/3400) - -## 2.2.0 (2020-08-12) - -* [bitnami/thanos] Add cache configuration blocks to Thanos store. Index and Bucket (#3387) ([2f2e1dd](https://github.com/bitnami/charts/commit/2f2e1ddcc594c1a6538c1820867862775e009740)), closes [#3387](https://github.com/bitnami/charts/issues/3387) [#3384](https://github.com/bitnami/charts/issues/3384) [#3384](https://github.com/bitnami/charts/issues/3384) - -## 2.1.1 (2020-08-07) - -* Hotfix. Didn't remove filename in mountPath (#3359) ([991b553](https://github.com/bitnami/charts/commit/991b553d4903dffcc0170874bb6d780be9ab0e65)), closes [#3359](https://github.com/bitnami/charts/issues/3359) - -## 2.1.0 (2020-08-07) - -* During PR version got bumped by bot. Fix it with new version (#3356) ([dc51a5b](https://github.com/bitnami/charts/commit/dc51a5bcb62621c95209e2ae9798003640975675)), closes [#3356](https://github.com/bitnami/charts/issues/3356) -* Move ruler rules to seperate folder (#3323) ([4f0976f](https://github.com/bitnami/charts/commit/4f0976fdbd80be747818174e8dc0ceabc67dfaa8)), closes [#3323](https://github.com/bitnami/charts/issues/3323) -* Update README.md ([939c616](https://github.com/bitnami/charts/commit/939c6166d75a4fcdd70fbc759e8847b69353996e)) - -## 2.0.1 (2020-08-05) - -* [bitnami/*] Fix TL;DR typo in READMEs (#3280) ([3d7ab40](https://github.com/bitnami/charts/commit/3d7ab406fecd64f1af25f53e7d27f03ec95b29a4)), closes [#3280](https://github.com/bitnami/charts/issues/3280) -* [bitnami/thanos] Release 2.0.1 updating components versions ([66139a3](https://github.com/bitnami/charts/commit/66139a37263bd84a2534df4ed75a8affe8d1ef13)) - -## 2.0.0 (2020-07-30) - -* [bitnami/thanos] Improve the way boolean/multi flags are passed (#3245) ([8131746](https://github.com/bitnami/charts/commit/81317464e6bed9c8cf6b5058db3f9cdc7c7518cb)), closes [#3245](https://github.com/bitnami/charts/issues/3245) - -## 1.4.1 (2020-07-21) - -* [bitnami/thanos] Release 1.4.1 updating components versions ([0a06d57](https://github.com/bitnami/charts/commit/0a06d579e8e4ffc2752e00a09dd1bccccc881300)) - -## 1.4.0 (2020-07-21) - -* [bitnami/thanos] Additional labels for Prometheus ServiceMonitor (#3160) ([55b6e9f](https://github.com/bitnami/charts/commit/55b6e9fbaa6fe98c36224122c0f61e0048e5454f)), closes [#3160](https://github.com/bitnami/charts/issues/3160) - -## 1.3.4 (2020-07-15) - -* [bitnami/thanos] Release 1.3.4 updating components versions ([3c3f801](https://github.com/bitnami/charts/commit/3c3f801156d19f2cbb94a5d31e79c4af80a7e364)) - -## 1.3.3 (2020-07-13) - -* [bitnami/all] Add categories (#3075) ([63bde06](https://github.com/bitnami/charts/commit/63bde066b87a140fab52264d0522401ab3d63509)), closes [#3075](https://github.com/bitnami/charts/issues/3075) -* [bitnami/thanos] Drop the replica label on alerts for Ruler (#3051) ([d2b35dc](https://github.com/bitnami/charts/commit/d2b35dc934f9a9c226e35f28e8cfb2b74ac10e56)), closes [#3051](https://github.com/bitnami/charts/issues/3051) - -## 1.3.2 (2020-07-10) - -* guard servername verification for tls client auth (#3081) ([6687d63](https://github.com/bitnami/charts/commit/6687d6318760fb5b6064eedca83c0ecf98f6c215)), closes [#3081](https://github.com/bitnami/charts/issues/3081) - -## 1.3.1 (2020-07-09) - -* [bitnami/thanos] Release 1.3.1 updating components versions ([8285ada](https://github.com/bitnami/charts/commit/8285ada326f4e76177108b65f9bdf3fa5164a134)) - -## 1.3.0 (2020-07-09) - -* [bitnami/thanos] grpc tls server/client for thanos querier (#3042) ([4bc2362](https://github.com/bitnami/charts/commit/4bc2362f8c8e4d08ac4d25b760a68a1df305e390)), closes [#3042](https://github.com/bitnami/charts/issues/3042) - -## 1.2.1 (2020-07-08) - -* [bitnami/thanos] Release 1.2.1 updating components versions ([cf93930](https://github.com/bitnami/charts/commit/cf93930b638764b656e6c8174e3131f155eea49f)) - -## 1.2.0 (2020-07-08) - -* [bitnami/thanos] add existing serviceaccount support (#3037) ([68f2496](https://github.com/bitnami/charts/commit/68f249615cba23f9dbe9f56bbf9252a7b4f9e744)), closes [#3037](https://github.com/bitnami/charts/issues/3037) - -## 1.1.3 (2020-07-03) - -* [bitnami/thanos] Release 1.1.3 updating components versions ([7780a70](https://github.com/bitnami/charts/commit/7780a708a3c5fb2e68e05b725f587e0cc55d70af)) - -## 1.1.2 (2020-06-29) - -* [bitnami/thanos] Fix bucket command (#2934) ([1122391](https://github.com/bitnami/charts/commit/1122391a57cf3222cd6393a5fe85baaf677f4b09)), closes [#2934](https://github.com/bitnami/charts/issues/2934) - -## 1.1.1 (2020-06-22) - -* [bitnami/thanos] Release 1.1.1 updating components versions ([63bff36](https://github.com/bitnami/charts/commit/63bff36cf31bd2032bd94fbe507d7e95eb78336a)) - -## 1.1.0 (2020-06-02) - -* [bitnami/thanos] Add Ingress for Querier GRPC service (#2702) ([f3a624f](https://github.com/bitnami/charts/commit/f3a624f5e0508a39d9c6aed00af9342b749c479f)), closes [#2702](https://github.com/bitnami/charts/issues/2702) - -## 1.0.2 (2020-05-29) - -* [bitnami/thanos] Release 1.0.2 updating components versions ([f17b87d](https://github.com/bitnami/charts/commit/f17b87d0a6cf96bf5345579bf8633ab6eabd6655)) - -## 1.0.1 (2020-05-29) - -* [bitnami/thanos] fix tolerations defaults (#2699) ([1ddeb18](https://github.com/bitnami/charts/commit/1ddeb18c7bbdb559a59e210887114286d3dc0428)), closes [#2699](https://github.com/bitnami/charts/issues/2699) - -## 1.0.0 (2020-05-28) - -* [bitnami/thanos]: Move querier Ingress config to querier section (#2684) ([bb25f72](https://github.com/bitnami/charts/commit/bb25f72d4dd9e686485853106abbf2e034eabfa3)), closes [#2684](https://github.com/bitnami/charts/issues/2684) - -## 0.7.0 (2020-05-26) - -* [bitnami/thanos]: Add bucketweb Ingress resource (#2656) ([d9ae4b8](https://github.com/bitnami/charts/commit/d9ae4b89a4d846c4848e3dcbc94713c70402b5b6)), closes [#2656](https://github.com/bitnami/charts/issues/2656) - -## 0.6.0 (2020-05-26) - -* [bitnami/thanos]: Add HPA for Thanos storegateway (#2643) ([0705d14](https://github.com/bitnami/charts/commit/0705d14063d28c3951d6ef5de6a5ba9f41a47b8f)), closes [#2643](https://github.com/bitnami/charts/issues/2643) -* update bitnami/common to be compatible with helm v2.12+ (#2615) ([c7751eb](https://github.com/bitnami/charts/commit/c7751eb5764e468e1854b58a1b8491d2b13e0a4a)), closes [#2615](https://github.com/bitnami/charts/issues/2615) - -## 0.5.3 (2020-04-30) - -* [bitnami/thanos] Release 0.5.3 updating components versions ([c24909e](https://github.com/bitnami/charts/commit/c24909e001f70993475b057c58540d5fdcc5f3b5)) - -## 0.5.2 (2020-04-22) - -* [bitnami/thanos] Release 0.5.2 updating components versions ([b770b87](https://github.com/bitnami/charts/commit/b770b87ee98fb045e205b7e4070922288ff91161)) - -## 0.5.1 (2020-04-22) - -* [bitnami/thanos] Release 0.5.1 updating components versions ([cd05d59](https://github.com/bitnami/charts/commit/cd05d59d7f9ae68a830f516c81142bab2bf9407f)) - -## 0.5.0 (2020-04-21) - -* [bitnami/thanos] provide Objstore config via secret (#2366) ([65354b2](https://github.com/bitnami/charts/commit/65354b2bef5f3d1c1bae0da7b1d6bbcecf60eee6)), closes [#2366](https://github.com/bitnami/charts/issues/2366) [#2366](https://github.com/bitnami/charts/issues/2366) - -## 0.4.3 (2020-04-16) - -* [bitnami/thanos bitnami/memcached] Add global storageClass (#2344) ([693978d](https://github.com/bitnami/charts/commit/693978d6f21ccb3c1f721e47fbb53fa09addc519)), closes [#2344](https://github.com/bitnami/charts/issues/2344) - -## 0.4.2 (2020-04-15) - -* [bitnami/thanos] Release 0.4.2 updating components versions ([55cd51b](https://github.com/bitnami/charts/commit/55cd51b62d589180931369240e44036b7f961390)) - -## 0.4.1 (2020-04-13) - -* [bitnami/thanos] Release 0.4.1 updating components versions ([337ecf0](https://github.com/bitnami/charts/commit/337ecf0922402e3877c2d0f0eece49923b1beee3)) - -## 0.4.0 (2020-04-10) - -* [bitnami/thanos] Add support to create Headless services (#2263) ([a8f82eb](https://github.com/bitnami/charts/commit/a8f82eb66057a1156797fed8c773cb3019adef3d)), closes [#2263](https://github.com/bitnami/charts/issues/2263) - -## 0.3.2 (2020-04-08) - -* [bitnami/thanos] Add missing podAnnotations (#2250) ([231d067](https://github.com/bitnami/charts/commit/231d067d2a6a7d4eeada5705048ea11981a96cd2)), closes [#2250](https://github.com/bitnami/charts/issues/2250) - -## 0.3.1 (2020-04-07) - -* [bitnami/thanos] Release 0.3.1 updating components versions ([81bf5e2](https://github.com/bitnami/charts/commit/81bf5e2677c7d2bc3bf7387fa49b2d49bb23d53f)) - -## 0.3.0 (2020-04-07) - -* [bitnami/thanos] Adds support to add annotations to Service Accounts (#2182) ([50576ec](https://github.com/bitnami/charts/commit/50576ece3985a62cdee90b3e22d0a23e1e7e606e)), closes [#2182](https://github.com/bitnami/charts/issues/2182) - -## 0.2.2 (2020-03-20) - -* [bitnami/thanos] Release 0.2.2 updating components versions ([11bba72](https://github.com/bitnami/charts/commit/11bba729d16f427c98abe410fa772bbcb4e4c841)) - -## 0.2.1 (2020-03-16) - -* [bitnami/thanos] Release 0.2.1 updating components versions ([d892bf6](https://github.com/bitnami/charts/commit/d892bf6aec753af3dc043801721d58a8d8389896)) - -## 0.2.0 (2020-03-12) - -* [bitnami/thanos] use the `tpl` function in querier of helm3 (#2024) ([2982a65](https://github.com/bitnami/charts/commit/2982a65558e558c002e9f1337923e90b2de7e235)), closes [#2024](https://github.com/bitnami/charts/issues/2024) [#2024](https://github.com/bitnami/charts/issues/2024) - -## 0.1.10 (2020-03-12) - -* [bitnami/thanos] Release 0.1.10 updating components versions ([1d8c059](https://github.com/bitnami/charts/commit/1d8c059f808fe58e26fdc21f2deb2878c911c8b0)) - -## 0.1.9 (2020-03-11) - -* Move charts from upstreamed folder to bitnami (#2032) ([a0e44f7](https://github.com/bitnami/charts/commit/a0e44f7d6a10b8b5643186130ea420887cb72c7c)), closes [#2032](https://github.com/bitnami/charts/issues/2032) - -## 0.1.8 (2020-03-10) - -* [bitnami/thanos] Fix pvc creation on compactor.enabled = false (#2020) ([b4fe943](https://github.com/bitnami/charts/commit/b4fe9435b7fc4eaf7034b2ddfa3b77e7a87e5bd0)), closes [#2020](https://github.com/bitnami/charts/issues/2020) - -## 0.1.7 (2020-03-02) - -* [bitnami/thanos] Release 0.1.7 updating components versions ([da01f27](https://github.com/bitnami/charts/commit/da01f27cc3fe8ec137368753ac7dc1a13307c804)) - -## 0.1.6 (2020-02-27) - -* [bitnami/thanos] Release 0.1.6 updating components versions ([c47901b](https://github.com/bitnami/charts/commit/c47901bed7af3a0ca82bdfc5fd7be6e988a4e934)) - -## 0.1.5 (2020-02-25) - -* fixed indentation in thanos compactor pvc.yaml (#1970) ([8cea393](https://github.com/bitnami/charts/commit/8cea3931545d805dbc326578151fe77884f82fdc)), closes [#1970](https://github.com/bitnami/charts/issues/1970) - -## 0.1.4 (2020-02-20) - -* [bitnami/thanos] Release 0.1.4 updating components versions ([883a3fb](https://github.com/bitnami/charts/commit/883a3fb4bcefa10aeba490f5f6a26bd4269ad753)) - -## 0.1.3 (2020-02-19) - -* [bitnami/*] Fix requirements.lock (#1950) ([1fa6eb9](https://github.com/bitnami/charts/commit/1fa6eb9f56ea7c47a7425a33417edb8eb366a180)), closes [#1950](https://github.com/bitnami/charts/issues/1950) - -## 0.1.2 (2020-02-18) - -* [bitnami/thanos] Release 0.1.2 updating components versions ([32957fd](https://github.com/bitnami/charts/commit/32957fd43c98f041e404aca7d89e76e3f0a08bfb)) -* Fix Thanos 'requirements.lock' (#1923) ([313456a](https://github.com/bitnami/charts/commit/313456a9a5146c3c18e88e8accdc4898b1441e34)), closes [#1923](https://github.com/bitnami/charts/issues/1923) - -## 0.1.1 (2020-02-13) - -* [bitnami/thanos] Use buster in secondary images (#1919) ([3e62376](https://github.com/bitnami/charts/commit/3e623769685147b10d0f37af25764ad6cb9637c7)), closes [#1919](https://github.com/bitnami/charts/issues/1919) - -## 0.1.0 (2020-02-12) - -* Add new chart: Thanos (#1893) ([e58eff5](https://github.com/bitnami/charts/commit/e58eff5ba61dc815349d319c6f057009f0705d88)), closes [#1893](https://github.com/bitnami/charts/issues/1893) diff --git a/charts/thanos/Chart.lock b/charts/thanos/Chart.lock index a9d3b1840a..6148e24157 100644 --- a/charts/thanos/Chart.lock +++ b/charts/thanos/Chart.lock @@ -1,9 +1,9 @@ dependencies: - name: minio repository: oci://registry-1.docker.io/bitnamicharts - version: 14.7.5 + version: 15.0.7 - name: common repository: oci://registry-1.docker.io/bitnamicharts - version: 2.22.0 -digest: sha256:9258a3af0ed88b7900e591a497f57a543e7a6d16b81ccfb181c4ffc35aa1f1cf -generated: "2024-09-06T05:19:39.510622859Z" + version: 2.30.0 +digest: sha256:f2010e653136b84d094ef082b0fd876ef9c5101146333fa6baff149b240535c4 +generated: "2025-04-02T02:03:49.144320249Z" diff --git a/charts/thanos/Chart.yaml b/charts/thanos/Chart.yaml index 4fc34c7e39..c9d59fd6ca 100644 --- a/charts/thanos/Chart.yaml +++ b/charts/thanos/Chart.yaml @@ -1,25 +1,29 @@ -# Copyright Broadcom, Inc. All Rights Reserved. -# SPDX-License-Identifier: APACHE-2.0 - annotations: category: Analytics - licenses: Apache-2.0 images: | - name: os-shell - image: docker.io/bitnami/os-shell:12-debian-12-r29 + image: docker.io/bitnami/os-shell:12-debian-12-r40 - name: thanos - image: docker.io/bitnami/thanos:0.36.1-debian-12-r2 + image: docker.io/bitnami/thanos:0.37.2-debian-12-r9 + licenses: Apache-2.0 + tanzuCategory: application apiVersion: v2 -appVersion: 0.36.1 +appVersion: 0.37.2 dependencies: +- condition: minio.enabled + name: minio + 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: Thanos is a highly available metrics system that can be added on top of existing Prometheus deployments, providing a global query view across all Prometheus installations. +description: Thanos is a highly available metrics system that can be added on top + of existing Prometheus deployments, providing a global query view across all Prometheus + installations. home: https://bitnami.com -icon: https://bitnami.com/assets/stacks/thanos/img/thanos-stack-220x234.png +icon: https://dyltqmyl993wv.cloudfront.net/assets/stacks/thanos/img/thanos-stack-220x234.png keywords: - analytics - monitoring @@ -31,4 +35,4 @@ maintainers: name: thanos sources: - https://github.com/bitnami/charts/tree/main/bitnami/thanos -version: 15.7.25 +version: 15.14.1 diff --git a/charts/thanos/README.md b/charts/thanos/README.md index 4dea6454c2..2f2fbd281a 100644 --- a/charts/thanos/README.md +++ b/charts/thanos/README.md @@ -81,9 +81,49 @@ Check the section [Integrate Thanos with Prometheus and Alertmanager](#integrate 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/). +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 `resourcesPreset` 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) +### Prometheus metrics + +This chart can be integrated with Prometheus by setting `metrics.enabled` to `true`. This will expose Thanos native Prometheus endpoint in the service. It will have the necessary annotations to be automatically scraped by Prometheus. + +#### Prometheus requirements + +It is necessary to have a working installation of Prometheus or Prometheus Operator for the integration to work. Install the [Bitnami Prometheus helm chart](https://github.com/bitnami/charts/tree/main/bitnami/prometheus) or the [Bitnami Kube Prometheus helm chart](https://github.com/bitnami/charts/tree/main/bitnami/kube-prometheus) to easily have a working Prometheus in your cluster. + +#### Integration with Prometheus Operator + +The chart can deploy `ServiceMonitor` objects for integration with Prometheus Operator installations. To do so, set the value `metrics.serviceMonitor.enabled=true`. Ensure that the Prometheus Operator `CustomResourceDefinitions` are installed in the cluster or it will fail with the following error: + +```text +no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1" +``` + +Install the [Bitnami Kube Prometheus helm chart](https://github.com/bitnami/charts/tree/main/bitnami/kube-prometheus) for having the necessary CRDs and the Prometheus Operator. + +### Securing traffic using TLS + +Thanos can encrypt communications by setting `*.tls.enabled=true` (under the `query.grpc.client`, `query.grpc.server`, `storegateway.grpc.server` and `receive.grpc.server` sections) value. The chart allows three configuration options: + +- Provide the content of the certificates using the `*.tls.ca`, `*.tls.cert`, `*.tls.key` (under the `query.grpc.client`, `query.grpc.server`, `storegateway.grpc.server` and `receive.grpc.server` sections) values. +- Provide your own secrets using the `*.tls.existingSecret` (under the `query.grpc.client`, `query.grpc.server`, `storegateway.grpc.server` and `receive.grpc.server` sections) values. Apart from providing the secret name also set a key mapping to the `ca-cert`, `tls-cert` and `tls-key` elements. For example: + +```yaml +receive: + grpc: + server: + tls: + existingSecret: + name: foo + keyMapping: + ca-cert: ca.pem + tls-cert: cert.pem + tls-key: key.pem +``` + +- Have the chart auto-generate the certificates using `*.tls.autoGenerated=true` (under the `query.grpc.client`, `query.grpc.server`, `storegateway.grpc.server` and `receive.grpc.server` sections). + +### [Rolling VS Immutable tags](https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-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. @@ -292,6 +332,10 @@ This chart allows you to set your custom affinity using the `XXX.affinity` param 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 `XXX.podAffinityPreset`, `XXX.podAntiAffinityPreset`, or `XXX.nodeAffinityPreset` parameters. +### Backup and restore + +To back up and restore Helm chart deployments on Kubernetes, you need to back up the persistent volumes from the source deployment and attach them to a new deployment using [Velero](https://velero.io/), a Kubernetes backup/restore tool. Find the instructions for using Velero in [this guide](https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-backup-restore-deployments-velero-index.html). + ## Persistence The data is persisted by default using PVC(s) on Thanos components. You can disable the persistence setting the `XXX.persistence.enabled` parameter(s) to `false`. A default `StorageClass` is needed in the Kubernetes cluster to dynamically provision the volumes. Specify another StorageClass in the `XXX.persistence.storageClass` parameter(s) or set `XXX.persistence.existingClaim` if you have already existing persistent volumes to use. @@ -311,13 +355,14 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru ### Global parameters -| Name | Description | Value | -| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | -| `global.imageRegistry` | Global Docker image registry | `""` | -| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` | -| `global.defaultStorageClass` | Global default StorageClass for Persistent Volume(s) | `""` | -| `global.storageClass` | DEPRECATED: use global.defaultStorageClass instead | `""` | -| `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` | +| Name | Description | Value | +| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | +| `global.imageRegistry` | Global Docker image registry | `""` | +| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` | +| `global.defaultStorageClass` | Global default StorageClass for Persistent Volume(s) | `""` | +| `global.storageClass` | DEPRECATED: use global.defaultStorageClass instead | `""` | +| `global.security.allowInsecureImages` | Allows skipping image verification | `false` | +| `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 @@ -505,6 +550,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `query.autoscaling.maxReplicas` | Maximum number of Thanos Query replicas | `""` | | `query.autoscaling.targetCPU` | Target CPU utilization percentage | `""` | | `query.autoscaling.targetMemory` | Target Memory utilization percentage | `""` | +| `query.autoscaling.targetPodMetrics` | List of custom pod metrics name and averageValue to evaluate for scaling | `[]` | | `query.pdb.create` | Enable/disable a Pod Disruption Budget creation for Thanos Query | `true` | | `query.pdb.minAvailable` | Minimum number/percentage of pods that should remain scheduled | `""` | | `query.pdb.maxUnavailable` | Maximum number/percentage of pods that may be made unavailable | `""` | @@ -512,6 +558,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `query.ingress.hostname` | Default host for the ingress resource | `thanos.local` | | `query.ingress.secretName` | Custom secretName for the ingress resource | `""` | | `query.ingress.ingressClassName` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `""` | +| `query.ingress.labels` | Additional label for the Ingress resource. | `{}` | | `query.ingress.annotations` | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | `{}` | | `query.ingress.extraHosts` | The list of additional hostnames to be covered with this ingress record. | `[]` | | `query.ingress.extraTls` | The tls configuration for additional hostnames to be covered with this ingress record. | `[]` | @@ -653,6 +700,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `queryFrontend.ingress.hostname` | Default host for the ingress resource | `thanos.local` | | `queryFrontend.ingress.overrideAlertQueryURL` | Automatically use query-frontend's ingress hostname as --alert.queryURL for both Query and Ruler. | `true` | | `queryFrontend.ingress.ingressClassName` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `""` | +| `queryFrontend.ingress.labels` | Additional label for the Ingress resource. | `{}` | | `queryFrontend.ingress.annotations` | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | `{}` | | `queryFrontend.ingress.extraHosts` | The list of additional hostnames to be covered with this ingress record. | `[]` | | `queryFrontend.ingress.extraTls` | The tls configuration for additional hostnames to be covered with this ingress record. | `[]` | @@ -776,6 +824,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `bucketweb.ingress.enabled` | Enable ingress controller resource | `false` | | `bucketweb.ingress.hostname` | Default host for the ingress resource | `thanos-bucketweb.local` | | `bucketweb.ingress.ingressClassName` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `""` | +| `bucketweb.ingress.labels` | Additional label for the Ingress resource. | `{}` | | `bucketweb.ingress.annotations` | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | `{}` | | `bucketweb.ingress.extraHosts` | The list of additional hostnames to be covered with this ingress record. | `[]` | | `bucketweb.ingress.extraTls` | The tls configuration for additional hostnames to be covered with this ingress record. | `[]` | @@ -794,9 +843,11 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `compactor.enabled` | Enable/disable Thanos Compactor component | `false` | | `compactor.logLevel` | Thanos Compactor log level | `info` | | `compactor.logFormat` | Thanos Compactor log format | `logfmt` | +| `compactor.dataDir` | Thanos Compactor data directory | `/data` | | `compactor.retentionResolutionRaw` | Resolution and Retention flag | `30d` | | `compactor.retentionResolution5m` | Resolution and Retention flag | `30d` | | `compactor.retentionResolution1h` | Resolution and Retention flag | `10y` | +| `compactor.concurrency` | Number of goroutines to use when compacting groups. | `1` | | `compactor.consistencyDelay` | Minimum age of fresh (non-compacted) blocks before they are being processed | `30m` | | `compactor.extraEnvVars` | Extra environment variables for Thanos Compactor container | `[]` | | `compactor.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for Thanos Compactor nodes | `""` | @@ -903,6 +954,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `compactor.ingress.enabled` | Enable ingress controller resource | `false` | | `compactor.ingress.hostname` | Default host for the ingress resource | `thanos-compactor.local` | | `compactor.ingress.ingressClassName` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `""` | +| `compactor.ingress.labels` | Additional label for the Ingress resource. | `{}` | | `compactor.ingress.annotations` | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | `{}` | | `compactor.ingress.extraHosts` | The list of additional hostnames to be covered with this ingress record. | `[]` | | `compactor.ingress.extraTls` | The tls configuration for additional hostnames to be covered with this ingress record. | `[]` | @@ -1059,6 +1111,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `storegateway.ingress.enabled` | Enable ingress controller resource | `false` | | `storegateway.ingress.hostname` | Default host for the ingress resource | `thanos-storegateway.local` | | `storegateway.ingress.ingressClassName` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `""` | +| `storegateway.ingress.labels` | Additional label for the Ingress resource. | `{}` | | `storegateway.ingress.annotations` | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | `{}` | | `storegateway.ingress.extraHosts` | The list of additional hostnames to be covered with this ingress record. | `[]` | | `storegateway.ingress.extraTls` | The tls configuration for additional hostnames to be covered with this ingress record. | `[]` | @@ -1105,6 +1158,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `ruler.alertmanagersConfig` | Alert managers configuration | `""` | | `ruler.evalInterval` | The default evaluation interval to use | `1m` | | `ruler.clusterName` | Used to set the 'ruler_cluster' label | `""` | +| `ruler.ruleFile` | Change the location Thanos checks for rule files | `/conf/rules/*.yml` | | `ruler.config` | Ruler configuration | `""` | | `ruler.dataPath` | Path to the data directory | `""` | | `ruler.existingConfigmap` | Name of existing ConfigMap with Ruler configuration | `""` | @@ -1226,6 +1280,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `ruler.ingress.enabled` | Enable ingress controller resource | `false` | | `ruler.ingress.hostname` | Default host for the ingress resource | `thanos-ruler.local` | | `ruler.ingress.ingressClassName` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `""` | +| `ruler.ingress.labels` | Additional label for the Ingress resource. | `{}` | | `ruler.ingress.annotations` | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | `{}` | | `ruler.ingress.extraHosts` | The list of additional hostnames to be covered with this ingress record. | `[]` | | `ruler.ingress.extraTls` | The tls configuration for additional hostnames to be covered with this ingress record. | `[]` | @@ -1244,6 +1299,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `receive.logLevel` | Thanos Receive log level | `info` | | `receive.logFormat` | Thanos Receive log format | `logfmt` | | `receive.tsdbRetention` | Thanos Receive TSDB retention period | `15d` | +| `receive.replicationProtocol` | Thanos Receive replication-protocol | `capnproto` | | `receive.replicationFactor` | Thanos Receive replication-factor | `1` | | `receive.config` | Receive Hashring configuration | `[]` | | `receive.tsdbPath` | Thanos Receive path to the time series database | `""` | @@ -1270,7 +1326,8 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `receive.minReadySeconds` | How many seconds a pod needs to be ready before killing the next, during update | `0` | | `receive.containerPorts.http` | HTTP container port | `10902` | | `receive.containerPorts.grpc` | GRPC container port | `10901` | -| `receive.containerPorts.remote` | remote-write container port | `19291` | +| `receive.containerPorts.remote` | Remote-write container port | `19291` | +| `receive.containerPorts.capnproto` | Cap'n'Proto container port | `19391` | | `receive.podSecurityContext.enabled` | Enable security context for the Thanos Receive pods | `true` | | `receive.podSecurityContext.fsGroupChangePolicy` | Set filesystem group change policy | `Always` | | `receive.podSecurityContext.sysctls` | Set kernel settings using the sysctl interface | `[]` | @@ -1340,16 +1397,18 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `receive.networkPolicy.ingressNSMatchLabels` | Labels to match to allow traffic from other namespaces | `{}` | | `receive.networkPolicy.ingressNSPodMatchLabels` | Pod labels to match to allow traffic from other namespaces | `{}` | | `receive.service.type` | Kubernetes service type | `ClusterIP` | -| `receive.service.ports.http` | Thanos Ruler service HTTP port | `10902` | -| `receive.service.ports.grpc` | Thanos Ruler service GRPC port | `10901` | -| `receive.service.ports.remote` | Thanos Ruler service remote port | `19291` | -| `receive.service.nodePorts.http` | Specify the Thanos Ruler HTTP nodePort value for the LoadBalancer and NodePort service types | `""` | -| `receive.service.nodePorts.grpc` | Specify the Thanos Ruler GRPC nodePort value for the LoadBalancer and NodePort service types | `""` | -| `receive.service.nodePorts.remote` | Specify the Thanos Ruler remote nodePort value for the LoadBalancer and NodePort service types | `""` | -| `receive.service.clusterIP` | Thanos Ruler service clusterIP IP | `""` | +| `receive.service.ports.http` | Thanos Receive service HTTP port | `10902` | +| `receive.service.ports.grpc` | Thanos Receive service GRPC port | `10901` | +| `receive.service.ports.remote` | Thanos Receive service Remote-write port | `19291` | +| `receive.service.ports.capnproto` | Thanos Receive service Cap'n'Proto port | `19391` | +| `receive.service.nodePorts.http` | Specify the Thanos Receive HTTP nodePort value for the LoadBalancer and NodePort service types | `""` | +| `receive.service.nodePorts.grpc` | Specify the Thanos Receive GRPC nodePort value for the LoadBalancer and NodePort service types | `""` | +| `receive.service.nodePorts.remote` | Specify the Thanos Receive Remote-write nodePort value for the LoadBalancer and NodePort service types | `""` | +| `receive.service.nodePorts.capnproto` | Specify the Thanos Receive Cap'n'Proto nodePort value for the LoadBalancer and NodePort service types | `""` | +| `receive.service.clusterIP` | Thanos Receive service clusterIP IP | `""` | | `receive.service.loadBalancerIP` | Load balancer IP if service type is `LoadBalancer` | `""` | | `receive.service.loadBalancerSourceRanges` | Addresses that are allowed when service is LoadBalancer | `[]` | -| `receive.service.externalTrafficPolicy` | Thanos Ruler service externalTrafficPolicy | `Cluster` | +| `receive.service.externalTrafficPolicy` | Thanos Receive service externalTrafficPolicy | `Cluster` | | `receive.service.labels` | Extra labels for Thanos Receive service | `{}` | | `receive.service.annotations` | Annotations for Thanos Receive service | `{}` | | `receive.service.extraPorts` | Extra ports to expose in the Thanos Receive service | `[]` | @@ -1382,6 +1441,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `receive.ingress.enabled` | Set to true to enable ingress record generation | `false` | | `receive.ingress.hostname` | When the ingress is enabled, a host pointing to this will be created | `thanos-receive.local` | | `receive.ingress.ingressClassName` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `""` | +| `receive.ingress.labels` | Additional label for the Ingress resource. | `{}` | | `receive.ingress.annotations` | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | `{}` | | `receive.ingress.extraHosts` | The list of additional hostnames to be covered with this ingress record. | `[]` | | `receive.ingress.extraTls` | The tls configuration for additional hostnames to be covered with this ingress record. | `[]` | @@ -1401,6 +1461,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `receiveDistributor.logLevel` | Thanos Receive Distributor log level | `info` | | `receiveDistributor.logFormat` | Thanos Receive Distributor log format | `logfmt` | | `receiveDistributor.replicaLabel` | Label to treat as a replica indicator along which data is de-duplicated | `replica` | +| `receiveDistributor.replicationProtocol` | Thanos Receive Distributor replication-protocol | `capnproto` | | `receiveDistributor.replicationFactor` | Thanos Receive Distributor replication-factor | `1` | | `receiveDistributor.extraEnvVars` | Extra environment variables for Thanos Receive Distributor container | `[]` | | `receiveDistributor.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for Thanos Receive Distributor nodes | `""` | @@ -1578,7 +1639,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | Name | Description | Value | | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -| `minio` | For full list of MinIO® values configurations please refere [here](https://github.com/bitnami/charts/tree/main/bitnami/minio) | | +| `minio` | For full list of MinIO® values configurations please refer [here](https://github.com/bitnami/charts/tree/main/bitnami/minio) | | | `minio.enabled` | Enable/disable MinIO® chart installation | `false` | | `minio.auth.rootUser` | MinIO® root username | `admin` | | `minio.auth.rootPassword` | Password for MinIO® root user | `""` | @@ -1611,6 +1672,10 @@ Find more information about how to deal with common errors related to Bitnami's ## Upgrading +### To 15.9.0 + +This version introduces image verification for security purposes. To disable it, set `global.security.allowInsecureImages` to `true`. More details at [GitHub issue](https://github.com/bitnami/charts/issues/30850). + ### To 15.0.0 This major bump changes the following security defaults: @@ -1845,7 +1910,7 @@ ingress.secrets[0].key -> querier.ingress.secrets[0].key ## License -Copyright © 2024 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. +Copyright © 2025 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. diff --git a/charts/thanos/charts/common/CHANGELOG.md b/charts/thanos/charts/common/CHANGELOG.md deleted file mode 100644 index 4f0bd161a0..0000000000 --- a/charts/thanos/charts/common/CHANGELOG.md +++ /dev/null @@ -1,596 +0,0 @@ -# Changelog - -## 2.23.0 (2024-09-13) - -* [bitnami/common] Add option to remove empty seLinuxOptions from securityContext in non OpenShift environment ([#28945](https://github.com/bitnami/charts/pull/28945)) - -## 2.22.0 (2024-08-08) - -* [bitnami/common] Fallback to chart appVersion in common.images.image (#28764) ([b4aa0a6](https://github.com/bitnami/charts/commit/b4aa0a685a21c50ca10e41e3eb2023bbd4282cf7)), closes [#28764](https://github.com/bitnami/charts/issues/28764) - -## 2.21.0 (2024-08-05) - -* [bitnami/common] Allow handling of new secrets after initial installation (#28581) ([07062ee](https://github.com/bitnami/charts/commit/07062ee01382e24b8204b27083ff3e8102110c2f)), closes [#28581](https://github.com/bitnami/charts/issues/28581) - -## 2.20.5 (2024-07-16) - -* [bitnami/common] [bitnami/wordpress] Use global.storageClass for fallback, not override (#24863) ([2b78e13](https://github.com/bitnami/charts/commit/2b78e137ac278cdf9d54523e8d37833a4ff0cd5b)), closes [#24863](https://github.com/bitnami/charts/issues/24863) - -## 2.20.4 (2024-07-11) - -* [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/common] Increase ephemeral-storage default limits (#27902) ([dc0000d](https://github.com/bitnami/charts/commit/dc0000d7b56f68991bb8d8fff473103ed9026f5f)), closes [#27902](https://github.com/bitnami/charts/issues/27902) - -## 2.20.3 (2024-06-17) - -* [bitnami/common] chore: :wrench: Relax large and xlarge presets resource requests (#27312) ([6ca69f6](https://github.com/bitnami/charts/commit/6ca69f6769d0f65acc850fa0bcc08506de50cc41)), closes [#27312](https://github.com/bitnami/charts/issues/27312) - -## 2.20.2 (2024-06-10) - -* [bitnami/common] remove trailing spaces from imagePullSecrets rendering (#26882) ([362d4ac](https://github.com/bitnami/charts/commit/362d4ac94dd69be1b607fc531ceac4d67d8d57ef)), closes [#26882](https://github.com/bitnami/charts/issues/26882) - -## 2.20.1 (2024-06-10) - -* [bitnami/common] improve renderSecurityContext (#27053) ([5f0bdde](https://github.com/bitnami/charts/commit/5f0bdde77cf05afa20cb4a800090748a8d102d02)), closes [#27053](https://github.com/bitnami/charts/issues/27053) - -## 2.20.0 (2024-06-05) - -* [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/common] Capabilities to return latest apiVersion if kubeVersion is undefined (#26758) ([6582c32](https://github.com/bitnami/charts/commit/6582c3237b772af9cb379f7eaceddb2d64b507f0)), closes [#26758](https://github.com/bitnami/charts/issues/26758) -* [bitnami/common] docs: :memo: Add changelog ([23349c9](https://github.com/bitnami/charts/commit/23349c99b70313f3e19ebcf9d3e0c154836b2cc0)) - -## 2.19.3 (2024-05-20) - -* [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/*] Set new header/owner (#25558) ([8d1dc11](https://github.com/bitnami/charts/commit/8d1dc11f5fb30db6fba50c43d7af59d2f79deed3)), closes [#25558](https://github.com/bitnami/charts/issues/25558) -* [bitnami/common] feat: :sparkles: Show warning when original images are replaced (#25952) ([855045a](https://github.com/bitnami/charts/commit/855045a1a62618154c1216e8da31a4d2c14c7586)), closes [#25952](https://github.com/bitnami/charts/issues/25952) - -## 2.19.2 (2024-04-29) - -* [bitnami/common] Simplify syntax to deal with nullable objects (#25446) ([7dcea6a](https://github.com/bitnami/charts/commit/7dcea6aeb7c45d56bd6175b457bb8a2cddf8defc)), closes [#25446](https://github.com/bitnami/charts/issues/25446) -* 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.19.1 (2024-03-27) - -* [bitnami/common] chore: :wrench: Relax preset resource requests xlarge and 2xlarge instances (#24713 ([fdd93bb](https://github.com/bitnami/charts/commit/fdd93bb2a2f73a7df3e498b5072736a54610a908)), closes [#24713](https://github.com/bitnami/charts/issues/24713) - -## 2.19.0 (2024-03-08) - -* [bitnami/common] feat: :sparkles: Remove empty seLinuxOptions in adapted Openshift rendered security ([1f2f5ef](https://github.com/bitnami/charts/commit/1f2f5ef476efba7f284df0c36c265216325ffda9)), closes [#24268](https://github.com/bitnami/charts/issues/24268) - -## 2.18.0 (2024-03-04) - -* [bitnami/common] feat: :sparkles: :lock: Add compatibility support for securityContext in Openshift ([8fb0dd4](https://github.com/bitnami/charts/commit/8fb0dd48b6d7ec69bb59db2376365f6d76b26d97)), closes [#24040](https://github.com/bitnami/charts/issues/24040) - -## 2.17.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) - -## 2.16.1 (2024-02-19) - -* [bitnami/common] chore: :wrench: Bump ephemeral storage limits (#23564) ([18c4d88](https://github.com/bitnami/charts/commit/18c4d88f7d4ae93f36d0896fa66dbe872bba1c48)), closes [#23564](https://github.com/bitnami/charts/issues/23564) - -## 2.16.0 (2024-02-15) - -* [bitnami/common] feat: :sparkles: Add ephemeral-storage to resources preset (#23544) ([23b6856](https://github.com/bitnami/charts/commit/23b68563a0e2e721aa07864cff1b877e1d074388)), closes [#23544](https://github.com/bitnami/charts/issues/23544) - -## 2.15.3 (2024-02-14) - -* [bitnami/common] chore: :pencil2: Fix typo in comment ([d07fb32](https://github.com/bitnami/charts/commit/d07fb324bd6455bf8607f66c642ff346443199ba)) - -## 2.15.2 (2024-02-14) - -* [bitnami/common] fix: :children_crossing: Improve resource warning message (#23425) ([7593e4f](https://github.com/bitnami/charts/commit/7593e4fc69fb8c50f7d626cc305c5adc56d23f48)), closes [#23425](https://github.com/bitnami/charts/issues/23425) - -## 2.15.1 (2024-02-13) - -* [bitnami/common] fix: :bug: Check if section is enabled before printing resource warning ([262b6ee](https://github.com/bitnami/charts/commit/262b6ee64c57a5293333879ec423ad41c44f162c)) - -## 2.15.0 (2024-02-13) - -* [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/*] 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/*] Update copyright: Year and company (#21815) ([6c4bf75](https://github.com/bitnami/charts/commit/6c4bf75dec58fc7c9aee9f089777b1a858c17d5b)), closes [#21815](https://github.com/bitnami/charts/issues/21815) -* [bitnami/common] feat: :sparkles: Add support for resource presets (#23410) ([310d9f9](https://github.com/bitnami/charts/commit/310d9f9e44cb913a2e482f57107970ed5bde9a69)), closes [#23410](https://github.com/bitnami/charts/issues/23410) - -## 2.14.1 (2023-12-19) - -* [bitnami/common] Fix typo with new line in common.secrets.passwords.manage (#21653) ([7e70463](https://github.com/bitnami/charts/commit/7e704634ef564adac330f1e0a67feb2a40a271dc)), closes [#21653](https://github.com/bitnami/charts/issues/21653) - -## 2.14.0 (2023-12-19) - -* [bitnami/common] add params skipB64enc and skipQuote to common.secrets.passwords.manage (#21595) ([2070eeb](https://github.com/bitnami/charts/commit/2070eeb30bbf48639e0177a42f65a1d13f42a180)), closes [#21595](https://github.com/bitnami/charts/issues/21595) - -## 2.13.4 (2023-12-15) - -* [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/*] Rename VMware Application Catalog (#20361) ([3acc734](https://github.com/bitnami/charts/commit/3acc73472beb6fb56c4d99f929061001205bc57e)), closes [#20361](https://github.com/bitnami/charts/issues/20361) -* [bitnami/common] fix failOnNew implementation in common.secrets.passwords.manage (#21342) ([76a5f24](https://github.com/bitnami/charts/commit/76a5f248fbceb3d1d948c7e60fbba74fd7eb3200)), closes [#21342](https://github.com/bitnami/charts/issues/21342) -* [bitnami/common] Standardize documentation (#20334) ([3af2426](https://github.com/bitnami/charts/commit/3af242606877aea25c623b4185e6fcd285b7308d)), closes [#20334](https://github.com/bitnami/charts/issues/20334) - -## 2.13.3 (2023-10-17) - -* [bitnami/*] Update Helm charts prerequisites (#19745) ([eb755dd](https://github.com/bitnami/charts/commit/eb755dd36a4dd3cf6635be8e0598f9a7f4c4a554)), closes [#19745](https://github.com/bitnami/charts/issues/19745) -* [bitnami/common]: Address admission configuration typo (#19840) ([9a936f1](https://github.com/bitnami/charts/commit/9a936f158646e101c2507421fdcb85b787bbaf64)), closes [#19840](https://github.com/bitnami/charts/issues/19840) - -## 2.13.2 (2023-10-05) - -* [bitnami/common] update imagePullSecrets to handle map and list format (#19702) ([1d30563](https://github.com/bitnami/charts/commit/1d30563bf53d4c0ac898cf1070af57aa28a039f1)), closes [#19702](https://github.com/bitnami/charts/issues/19702) - -## 2.13.1 (2023-10-04) - -* [bitnami/common] render labels correctly when they contains templates (#19680) ([3cb44e3](https://github.com/bitnami/charts/commit/3cb44e376a472ca6721866b09f6d0ab412338cbc)), closes [#19680](https://github.com/bitnami/charts/issues/19680) - -## 2.13.0 (2023-09-29) - -* [bitnami/common]: Add capabilities macros to manage Pod Security Standard objects (#19428) ([322b76d](https://github.com/bitnami/charts/commit/322b76d6450840f08d53ecfddb5e151cac5c9e88)), closes [#19428](https://github.com/bitnami/charts/issues/19428) - -## 2.12.1 (2023-09-29) - -* [bitnami/common] allow for empty appVersion (#19467) ([8b46a33](https://github.com/bitnami/charts/commit/8b46a3366abc7d216d16ace89675f3fc42691e8f)), closes [#19467](https://github.com/bitnami/charts/issues/19467) - -## 2.12.0 (2023-09-22) - -* [bitnami/common] new macro to checksum config resources (#19261) ([73945fe](https://github.com/bitnami/charts/commit/73945fedfa2acff03fe172430fcc4b8bcf55282f)), closes [#19261](https://github.com/bitnami/charts/issues/19261) -* 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) - -## 2.11.1 (2023-09-15) - -* Common - Adding app.kubernetes.io/version to common labels (#17201) ([9c497be](https://github.com/bitnami/charts/commit/9c497be9d99a98a20cd01e5858014e097ebe0eaa)), closes [#17201](https://github.com/bitnami/charts/issues/17201) - -## 2.11.0 (2023-09-12) - -* [bitnami/common] New helper to return image version (#19223) ([db46696](https://github.com/bitnami/charts/commit/db466964c6cfb3368ab87be6bb4d16f74d5c6fd0)), closes [#19223](https://github.com/bitnami/charts/issues/19223) -* Autogenerate schema files (#19194) ([a2c2090](https://github.com/bitnami/charts/commit/a2c2090b5ac97f47b745c8028c6452bf99739772)), closes [#19194](https://github.com/bitnami/charts/issues/19194) - -## 2.10.1 (2023-09-08) - -* [bitnami/common]: Compatiblity with Helm 3.2.0+ (#19177) ([e4fc03d](https://github.com/bitnami/charts/commit/e4fc03d96bef6ab0318d642fb65ba508c49844f1)), closes [#19177](https://github.com/bitnami/charts/issues/19177) - -## 2.10.0 (2023-09-04) - -* [bitnami/common] new macro to merge a list of values with rendering (#18889) ([0fb66f2](https://github.com/bitnami/charts/commit/0fb66f2c6f6828a240a0c1e6857c337bf9f4202a)), closes [#18889](https://github.com/bitnami/charts/issues/18889) - -## 2.9.2 (2023-08-31) - -* Avoid using a tpl when there is no template (#18792) ([134924a](https://github.com/bitnami/charts/commit/134924a260fe2cd758a954f34e89ccb14012f348)), closes [#18792](https://github.com/bitnami/charts/issues/18792) - -## 2.9.1 (2023-08-29) - -* [bitnami/common] Add extraLabelSelectors to affinities templates (#18127) ([b9ecfdb](https://github.com/bitnami/charts/commit/b9ecfdb3421a057b76e6f35f58c26e631c74e686)), closes [#18127](https://github.com/bitnami/charts/issues/18127) - -## 2.9.0 (2023-08-22) - -* [bitnami/common] Add support for customizing standard labels (#18154) ([9a20483](https://github.com/bitnami/charts/commit/9a20483cfd1daa6bfe08fd8116516a9bb5cd9754)), closes [#18154](https://github.com/bitnami/charts/issues/18154) - -## 2.8.0 (2023-08-07) - -* [bitnami/common] Delete app kubernetes version field (#18240) ([5fe3ee4](https://github.com/bitnami/charts/commit/5fe3ee44eed88e9b6843c70cbeb6378194b2276b)), closes [#18240](https://github.com/bitnami/charts/issues/18240) - -## 2.7.0 (2023-08-07) - -* Add app.kubernetes.io/version based on AppVersion (#18194) ([4f698f8](https://github.com/bitnami/charts/commit/4f698f8ac54fc68cd8dab433b7c2d8ffb77a4067)), closes [#18194](https://github.com/bitnami/charts/issues/18194) - -## 2.6.0 (2023-07-04) - -* [bitnami/common] Add scope for common.tplvalues.render (#17033) ([daf1b54](https://github.com/bitnami/charts/commit/daf1b5445a5e1c961ab78673899dd8007b4f1000)), closes [#17033](https://github.com/bitnami/charts/issues/17033) - -## 2.5.0 (2023-06-30) - -* [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/common] Update common.secrets.passwords.manage and common.secrets.lookup (#17397) ([5a73cf1](https://github.com/bitnami/charts/commit/5a73cf19f92b93d88ee766669a947375135db903)), closes [#17397](https://github.com/bitnami/charts/issues/17397) -* [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) -* Add copyright header (#17300) ([da68be8](https://github.com/bitnami/charts/commit/da68be8e951225133c7dfb572d5101ca3d61c5ae)), closes [#17300](https://github.com/bitnami/charts/issues/17300) -* Update charts readme (#17217) ([31b3c0a](https://github.com/bitnami/charts/commit/31b3c0afd968ff4429107e34101f7509e6a0e913)), closes [#17217](https://github.com/bitnami/charts/issues/17217) - -## 2.4.0 (2023-05-18) - -* [bitnami/common] feat: :sparkles: Add apiVersions for DaemonSet and VPA ([a86cfaf](https://github.com/bitnami/charts/commit/a86cfaf0acb7cc26a7a91256f4b76db8f31797ef)) - -## 2.3.0 (2023-05-12) - -* Add wording for enterprise page (#16560) ([8f22774](https://github.com/bitnami/charts/commit/8f2277440b976d52785ba9149762ad8620a73d1f)), closes [#16560](https://github.com/bitnami/charts/issues/16560) -* Remove duplicate in image pull secrets (#16529) ([ddfea70](https://github.com/bitnami/charts/commit/ddfea70831875639cb298a555ad6dd5e68f059e4)), closes [#16529](https://github.com/bitnami/charts/issues/16529) - -## 2.2.6 (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) - -## 2.2.5 (2023-05-02) - -* [bitnami/*] Make Helm charts 100% OCI (#15998) ([8841510](https://github.com/bitnami/charts/commit/884151035efcbf2e1b3206e7def85511073fb57d)), closes [#15998](https://github.com/bitnami/charts/issues/15998) -* [bitnami/common] Fix typo in README.md to test chart publishing from GitHub (#16143) ([5b05ec3](https://github.com/bitnami/charts/commit/5b05ec32caa73240d38135e19501ab2658397d2e)), closes [#16143](https://github.com/bitnami/charts/issues/16143) - -## 2.2.4 (2023-03-07) - -* [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/common] Allow empty registry name (#15296) ([f13df7b](https://github.com/bitnami/charts/commit/f13df7b00f38e5fce67eab7a1b78afb0b064344e)), closes [#15296](https://github.com/bitnami/charts/issues/15296) - -## 2.2.3 (2023-02-03) - -* [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 copyright date (#14682) ([add4ec7](https://github.com/bitnami/charts/commit/add4ec701108ac36ed4de2dffbdf407a0d091067)), closes [#14682](https://github.com/bitnami/charts/issues/14682) -* [bitnami/*] Change licenses annotation format (#14377) ([0ab7608](https://github.com/bitnami/charts/commit/0ab760862c660fcc78cffadf8e1d8cdd70881473)), closes [#14377](https://github.com/bitnami/charts/issues/14377) -* [bitnami/*] Unify READMEs (#14472) ([2064fb8](https://github.com/bitnami/charts/commit/2064fb8dcc78a845cdede8211af8c3cc52551161)), closes [#14472](https://github.com/bitnami/charts/issues/14472) -* [bitnami/common] chore: Correct common.images.image global in example (#14735) ([69ada7d](https://github.com/bitnami/charts/commit/69ada7da0c9c6b7ce718faef6920c61e3632fd02)), closes [#14735](https://github.com/bitnami/charts/issues/14735) - -## 2.2.2 (2022-12-12) - -* [bitnami/common] resolve namespace using common.names.namespace macro (#13481) ([35b84e8](https://github.com/bitnami/charts/commit/35b84e8ba209681d4f160ca102188af61307fccf)), closes [#13481](https://github.com/bitnami/charts/issues/13481) - -## 2.2.1 (2022-11-25) - -* [bitnami/common] fix common topology key affinity function (#13593) ([f95dec8](https://github.com/bitnami/charts/commit/f95dec803bd138b76d67a296545974c5a644d63e)), closes [#13593](https://github.com/bitnami/charts/issues/13593) - -## 2.2.0 (2022-11-14) - -* [bitnami/common] affinity topologyKey override (#13435) ([624c14e](https://github.com/bitnami/charts/commit/624c14e7121557e6a29ff0e814cb800c2f3cf619)), closes [#13435](https://github.com/bitnami/charts/issues/13435) -* [bitnami/common] Fixed naming of common.secrets.passwords.manage function in README (#13250) ([39a8bcb](https://github.com/bitnami/charts/commit/39a8bcbb1b606cc165643ae4ddcdc15f05e91583)), closes [#13250](https://github.com/bitnami/charts/issues/13250) - -## 2.1.2 (2022-10-31) - -* [bitnami/common] Do not explicitly specify namespace in affinity term. (#12932) ([638a48e](https://github.com/bitnami/charts/commit/638a48e4d3ec7b5d160f4b525ec40218512c464b)), closes [#12932](https://github.com/bitnami/charts/issues/12932) [/kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#podaffinityterm-v1](https://github.com//kubernetes.io/docs/reference/generated/kubernetes-api/v1.23//issues/podaffinityterm-v1) [#12668](https://github.com/bitnami/charts/issues/12668) - -## 2.1.1 (2022-10-27) - -* [bitnami/common] Fix appVersion mismatch (#13189) ([42b3b3e](https://github.com/bitnami/charts/commit/42b3b3e6c68e6af8ba19f7ec42be0d71b4c21852)), closes [#13189](https://github.com/bitnami/charts/issues/13189) - -## 2.1.0 (2022-10-27) - -* [bitnami/common] Add new function 'common.secrets.lookup' (#13150) ([e848934](https://github.com/bitnami/charts/commit/e84893410321b88adbd7d2e40b891685a15ce640)), closes [#13150](https://github.com/bitnami/charts/issues/13150) - -## 2.0.4 (2022-10-24) - -* [bitnami/*] Use new default branch name in links (#12943) ([a529e02](https://github.com/bitnami/charts/commit/a529e02597d49d944eba1eb0f190713293247176)), closes [#12943](https://github.com/bitnami/charts/issues/12943) -* [bitnami/common] kubernetes.io/tls-acme Ingress annotation triggers IngressTLS array (#13054) ([2008857](https://github.com/bitnami/charts/commit/200885790b34afd6fd04ea45949c887a907b6b38)), closes [#13054](https://github.com/bitnami/charts/issues/13054) -* [bitnami/common] quote secret value when lookup (#11276) ([c8e3019](https://github.com/bitnami/charts/commit/c8e301965f05996a2ae18e0fc8dbfcbe64428356)), closes [#11276](https://github.com/bitnami/charts/issues/11276) - -## 2.0.3 (2022-09-12) - -* [bitnami/common] Revert changes in HPA context from #12282 (#12372) ([55fdc3a](https://github.com/bitnami/charts/commit/55fdc3aff3e32502abfd8f0607ac2be54e585744)), closes [#12282](https://github.com/bitnami/charts/issues/12282) [#12372](https://github.com/bitnami/charts/issues/12372) - -## 2.0.2 (2022-09-05) - -* fix context for HPA util (#12282) ([ccd54a0](https://github.com/bitnami/charts/commit/ccd54a0d47a96903f499fbcdb52a336863020efe)), closes [#12282](https://github.com/bitnami/charts/issues/12282) - -## 2.0.1 (2022-08-23) - -* [bitnami/common] Digest/Tag new approach backward compatible (#12029) ([f1c27dc](https://github.com/bitnami/charts/commit/f1c27dc5d9540c2ea192abf1245da67f5b4f8916)), closes [#12029](https://github.com/bitnami/charts/issues/12029) - -## 2.0.0 (2022-08-18) - -* [bitnami/common] MAJOR: Add support for image digest apart from tag (#11830) ([e3fee4e](https://github.com/bitnami/charts/commit/e3fee4e41d34a6584660c3b77b8521922603ccab)), closes [#11830](https://github.com/bitnami/charts/issues/11830) - -## 1.17.1 (2022-08-18) - -* Revert changes from #11797 (#11829) ([22bb033](https://github.com/bitnami/charts/commit/22bb033224176c498920596c8d8b25b5f60a277d)), closes [#11797](https://github.com/bitnami/charts/issues/11797) [#11829](https://github.com/bitnami/charts/issues/11829) - -## 1.17.0 (2022-08-18) - -* [bitnami/common] Add support for image digest apart from tag (#11797) ([b069345](https://github.com/bitnami/charts/commit/b0693450f653318ac7da64575dac389d7041b69f)), closes [#11797](https://github.com/bitnami/charts/issues/11797) - -## 1.16.1 (2022-07-13) - -* [bitnami/*] Replace Kubeapps URL in READMEs (and kubeapps Chart.yaml) and remove BKPR references (#1 ([c6a7914](https://github.com/bitnami/charts/commit/c6a7914361e5aea6016fb45bf4d621edfd111d32)), closes [#10600](https://github.com/bitnami/charts/issues/10600) -* [bitnami/common] Affinities section does not use common.names.namespace (#11137) ([b70c24c](https://github.com/bitnami/charts/commit/b70c24c82c7a9112a4288441ad1fa8c035bb68b4)), closes [#11137](https://github.com/bitnami/charts/issues/11137) - -## 1.16.0 (2022-06-03) - -* [bitnami/common] Add mysql validation (#10565) ([75ae79a](https://github.com/bitnami/charts/commit/75ae79a434137694fd82198abe1f861d6e5a04ba)), closes [#10565](https://github.com/bitnami/charts/issues/10565) - -## 1.15.2 (2022-06-02) - -* Update Redis trademark references ([2cada87](https://github.com/bitnami/charts/commit/2cada87ed4967d5cb578b0409a0bb1edee79029a)) - -## 1.15.1 (2022-06-01) - -* [bitnami/several] Replace maintainers email by url (#10523) ([ff3cf61](https://github.com/bitnami/charts/commit/ff3cf617a1680509b0f3855d17c4ccff7b29a0ff)), closes [#10523](https://github.com/bitnami/charts/issues/10523) - -## 1.15.0 (2022-06-01) - -* Add common function common.names.fullname.namespace (#10462) ([96f447c](https://github.com/bitnami/charts/commit/96f447cd8654b6db51d9301c841bacb3a13089b3)), closes [#10462](https://github.com/bitnami/charts/issues/10462) - -## 1.14.2 (2022-05-30) - -* [bitnami/common] use -d flag for base64 (#10491) ([ca8d588](https://github.com/bitnami/charts/commit/ca8d5886a1bc0fb37d1bc770ad2333acdffd7996)), closes [#10491](https://github.com/bitnami/charts/issues/10491) [#10486](https://github.com/bitnami/charts/issues/10486) - -## 1.14.1 (2022-05-20) - -* Differentiate between autoscaling v1beta1 and v1beta2 (#10331) ([16d8a4e](https://github.com/bitnami/charts/commit/16d8a4ee73705ee6db2191d84e03a2ba3ea95deb)), closes [#10331](https://github.com/bitnami/charts/issues/10331) - -## 1.14.0 (2022-05-13) - -* [bitnami/common] Add common function for HPA api version (#10174) ([4379ab5](https://github.com/bitnami/charts/commit/4379ab56bd8f4d7f7b7817bf302c683bf9087e81)), closes [#10174](https://github.com/bitnami/charts/issues/10174) - -## 1.13.1 (2022-04-19) - -* Fix affinities identifier in README.md for common chart (#9821) ([fe95640](https://github.com/bitnami/charts/commit/fe95640ce3f5ddfb0458f440959ceda3a849a3a4)), closes [#9821](https://github.com/bitnami/charts/issues/9821) - -## 1.13.0 (2022-03-24) - -* [bitnami/common] Add apiService.apiVersion function to common.capabilities (#9562) ([bba2272](https://github.com/bitnami/charts/commit/bba227223e15937bb1f29f77425f6bd7d9238c02)), closes [#9562](https://github.com/bitnami/charts/issues/9562) - -## 1.12.0 (2022-03-16) - -* [bitnami/common] Helper to allow overriding namespace name (#9396) ([794fecb](https://github.com/bitnami/charts/commit/794fecb8cb112e8e5e9d55420451752e8bd21431)), closes [#9396](https://github.com/bitnami/charts/issues/9396) - -## 1.11.3 (2022-03-03) - -* [bitnami/common] Improve docs for passwords.manage (#9269) ([0d06114](https://github.com/bitnami/charts/commit/0d061147a5b7c7cf2bf44d2b61603ffeb48a0b51)), closes [#9269](https://github.com/bitnami/charts/issues/9269) - -## 1.11.2 (2022-02-28) - -* [bitnami/common] README: Fixed the desscription for `common.labels.matchLabels` (#9062) ([7f17db7](https://github.com/bitnami/charts/commit/7f17db7e9bcdd7918bde322b3b76a62c6a86e752)), closes [#9062](https://github.com/bitnami/charts/issues/9062) [bitnami/charts#9060](https://github.com/bitnami/charts/issues/9060) [bitnami/charts#9060](https://github.com/bitnami/charts/issues/9060) - -## 1.11.1 (2022-02-02) - -* [bitnami/common] Improve "common.secrets.passwords.manage" helper (#8861) ([01477b4](https://github.com/bitnami/charts/commit/01477b42f2be362388d69da913879c52f2250ac1)), closes [#8861](https://github.com/bitnami/charts/issues/8861) - -## 1.11.0 (2022-02-01) - -* [bitnami/common] Add ingress helper to detect cert-manager annotations (#8857) ([c0c986f](https://github.com/bitnami/charts/commit/c0c986f8d5c911c09dc84d289d2993ae1779a6ca)), closes [#8857](https://github.com/bitnami/charts/issues/8857) - -## 1.10.4 (2022-01-20) - -* [bitnami/several] Add license to the README ([05f7633](https://github.com/bitnami/charts/commit/05f763372501d596e57db713dd53ff4ff3027cc4)) -* [bitnami/several] Add license to the README ([32fb238](https://github.com/bitnami/charts/commit/32fb238e60a0affc6debd3142eaa3c3d9089ec2a)) -* [bitnami/several] Add license to the README ([b87c2f7](https://github.com/bitnami/charts/commit/b87c2f7899d48a8b02c506765e6ae82937e9ba3f)) -* [bitnami/several] Change prerequisites (#8725) ([8d740c5](https://github.com/bitnami/charts/commit/8d740c566cfdb7e2d933c40128b4e919fce953a5)), closes [#8725](https://github.com/bitnami/charts/issues/8725) - -## 1.10.3 (2021-11-29) - -* [bitnami/common] fix: :bug: Add extra check for "\"\"" values in existing secrets (#8266) ([de27be6](https://github.com/bitnami/charts/commit/de27be6e649472608f076a04a36be3674fe3b84e)), closes [#8266](https://github.com/bitnami/charts/issues/8266) - -## 1.10.2 (2021-11-29) - -* [bitnami/several] Replace HTTP by HTTPS when possible (#8259) ([eafb5bd](https://github.com/bitnami/charts/commit/eafb5bd5a2cc3aaf04fc1e8ebedd73f420d76864)), closes [#8259](https://github.com/bitnami/charts/issues/8259) - -## 1.10.1 (2021-10-27) - -* [bitnami/*] Mark PodSecurityPolicy resources as deprecated (#7948) ([5cac753](https://github.com/bitnami/charts/commit/5cac7539dcb6c3baef06ed6676bfa99c16fdb5fe)), closes [#7948](https://github.com/bitnami/charts/issues/7948) - -## 1.10.0 (2021-09-30) - -* [bitnami/common] Add new capability helper for Network Policies (#7658) ([3efb1ca](https://github.com/bitnami/charts/commit/3efb1cac924409cbda3216a2300cce031c56a1f5)), closes [#7658](https://github.com/bitnami/charts/issues/7658) - -## 1.9.1 (2021-09-22) - -* [bitnami/common] fix readme for common chart (#7577) ([3f06bdd](https://github.com/bitnami/charts/commit/3f06bdd8df1c00dbdf27230bcdf925c337826abb)), closes [#7577](https://github.com/bitnami/charts/issues/7577) -* Fix typo in bitname/common README (#7529) ([fccffb3](https://github.com/bitnami/charts/commit/fccffb33391751a1bf84c53184cffe0dcac83fd6)), closes [#7529](https://github.com/bitnami/charts/issues/7529) - -## 1.9.0 (2021-09-13) - -* [bitnami/common] Add new dependency fullname template (#7471) ([7ca2a4b](https://github.com/bitnami/charts/commit/7ca2a4bb917ac6a276a6b30be12538f4c7c3a63d)), closes [#7471](https://github.com/bitnami/charts/issues/7471) - -## 1.8.0 (2021-08-04) - -* Add cronjob apiVersion capability (#7122) ([7b84a67](https://github.com/bitnami/charts/commit/7b84a674ae99fd8ddac3b5b3c859c816b87aaf51)), closes [#7122](https://github.com/bitnami/charts/issues/7122) - -## 1.7.1 (2021-07-27) - -* [bitnami/*] Adapt values.yaml of common library, Tomcat, Wavefront and ZooKeeper charts (#6970) ([fb2693b](https://github.com/bitnami/charts/commit/fb2693bfe67a154b159d3998232cc613e1706c70)), closes [#6970](https://github.com/bitnami/charts/issues/6970) -* [bitnami/several] Bump version and update READMEs (#7069) ([6340bff](https://github.com/bitnami/charts/commit/6340bff66f93c8c797bda3ca0842e4bf770059f1)), closes [#7069](https://github.com/bitnami/charts/issues/7069) -* Replace strings with ™ in the README files (#7066) ([d298b49](https://github.com/bitnami/charts/commit/d298b4996da33c9580c2594e6dc8ad665dd0ebab)), closes [#7066](https://github.com/bitnami/charts/issues/7066) - -## 1.7.0 (2021-07-02) - -* [bitnami/common] Add supportIngressClassname (#6828) ([0c8a455](https://github.com/bitnami/charts/commit/0c8a45546a219b4b4cd370daf0643543c92739b0)), closes [#6828](https://github.com/bitnami/charts/issues/6828) - -## 1.6.1 (2021-06-16) - -* [bitnami/common] extend common.labels.matchLabels with .Values.extraMatchLabels (#6589) ([66edf04](https://github.com/bitnami/charts/commit/66edf04e3e244c343a845f9c684edf4c8ea04406)), closes [#6589](https://github.com/bitnami/charts/issues/6589) - -## 1.6.0 (2021-06-15) - -* bitnami/common: add version detection for policy api (#6662) ([dcacf06](https://github.com/bitnami/charts/commit/dcacf06f6f2b6d622e2226935db22d5b8efa20b3)), closes [#6662](https://github.com/bitnami/charts/issues/6662) - -## 1.5.2 (2021-05-21) - -* [bitnami/common] Update _ingress.tpl (#6437) ([9048150](https://github.com/bitnami/charts/commit/90481508542c4da588e0d71944592e6c4e8d36e4)), closes [#6437](https://github.com/bitnami/charts/issues/6437) - -## 1.5.1 (2021-05-14) - -* Node affinity values must be quoted. (#6348) ([f73efbe](https://github.com/bitnami/charts/commit/f73efbe074436eda6276bbf32c781fa913c6a17a)), closes [#6348](https://github.com/bitnami/charts/issues/6348) - -## 1.5.0 (2021-05-13) - -* [bitnami/common] pull secrets rendering (#6286) ([dfffe74](https://github.com/bitnami/charts/commit/dfffe74c212a28e27f537dbee54c3b5a81c7d572)), closes [#6286](https://github.com/bitnami/charts/issues/6286) - -## 1.4.3 (2021-04-26) - -* [bitnami/common] Update Redis validation's helper (#6192) ([1e3bf03](https://github.com/bitnami/charts/commit/1e3bf03e3aad56fd4dc159744626e25ec24c5772)), closes [#6192](https://github.com/bitnami/charts/issues/6192) - -## 1.4.2 (2021-03-25) - -* [bitnami/common] Common credential error (#5884) ([328ca86](https://github.com/bitnami/charts/commit/328ca863515f6ef9fe188c71110be7b951719d66)), closes [#5884](https://github.com/bitnami/charts/issues/5884) - -## 1.4.1 (2021-02-23) - -* [bitnami/common] Add possibility to pull images without giving registry name (#5582) ([15ca275](https://github.com/bitnami/charts/commit/15ca27520a16b590101fa39195f55017e2935a90)), closes [#5582](https://github.com/bitnami/charts/issues/5582) - -## 1.4.0 (2021-02-22) - -* [bitnami/common] Add RBAC/CRD apiVersion support for versions 1.22+ (#5583) ([fda87aa](https://github.com/bitnami/charts/commit/fda87aabcd004f9a67549f5d22d273dd9fff6836)), closes [#5583](https://github.com/bitnami/charts/issues/5583) - -## 1.3.9 (2021-02-09) - -* Add registered icon to all the MongoDB references (#5426) ([56f2088](https://github.com/bitnami/charts/commit/56f20884267e56175695b2917f7704b9510f4ba6)), closes [#5426](https://github.com/bitnami/charts/issues/5426) - -## 1.3.8 (2021-02-03) - -* fix(common): quote namespace name (#5363) ([d27fb5e](https://github.com/bitnami/charts/commit/d27fb5e0b327728bb4304503376aaa4d2ab50619)), closes [#5363](https://github.com/bitnami/charts/issues/5363) - -## 1.3.7 (2021-01-20) - -* [bitnami/*] Change helm version in the prerequisites (#5090) ([c5e67a3](https://github.com/bitnami/charts/commit/c5e67a388743cbee28439d2cabca27884b9daf97)), closes [#5090](https://github.com/bitnami/charts/issues/5090) -* [bitnami/common] Remove helm version checker from secret helper (#5156) ([20231b1](https://github.com/bitnami/charts/commit/20231b138fae524371e6b29504acd4cbd19ce697)), closes [#5156](https://github.com/bitnami/charts/issues/5156) - -## 1.3.6 (2021-01-18) - -* [bitnami/common] same behavior with empty string when the secret obje… (#5057) ([0bae2bb](https://github.com/bitnami/charts/commit/0bae2bbb9b42c5a8dd2b8a144ffa55ace1c8a936)), closes [#5057](https://github.com/bitnami/charts/issues/5057) - -## 1.3.5 (2021-01-17) - -* [bitnami/common] fix wrong include reference (#5056) ([11efd59](https://github.com/bitnami/charts/commit/11efd59177419d4177e59800f04b4f26ab7243f8)), closes [#5056](https://github.com/bitnami/charts/issues/5056) - -## 1.3.4 (2021-01-15) - -* [bitnami/common] Fix lookup function backward compatibility and README (#5018) ([14a0042](https://github.com/bitnami/charts/commit/14a0042dc90c01fd38f814e1e43559384a3baa9f)), closes [#5018](https://github.com/bitnami/charts/issues/5018) - -## 1.3.3 (2021-01-14) - -* [bitnami/several] Add Redis trademark (#5023) ([dfa89b8](https://github.com/bitnami/charts/commit/dfa89b865989da26a3c73f397fd3c402dd56ebe8)), closes [#5023](https://github.com/bitnami/charts/issues/5023) - -## 1.3.2 (2021-01-13) - -* [bitnami/common] Add missing else statement to ingress apiversion ([22ab07a](https://github.com/bitnami/charts/commit/22ab07ac7d39d4153cc839de2b714086e99cfc04)) - -## 1.3.1 (2021-01-13) - -* [bitnami/common] Fix cases where ingress is not at the root (#4984) ([e447d9d](https://github.com/bitnami/charts/commit/e447d9d2205fc3f2f6cd990386a691fd9204b214)), closes [#4984](https://github.com/bitnami/charts/issues/4984) - -## 1.3.0 (2021-01-13) - -* [bitnami/*] POC Lookup function implementation (#4831) ([240dc1b](https://github.com/bitnami/charts/commit/240dc1bea80a3e121fd595636496d7941bdbc5e0)), closes [#4831](https://github.com/bitnami/charts/issues/4831) - -## 1.2.3 (2020-12-31) - -* [bitnami/common] Fix incorrect backend calculation for networking/v1beta1 ([c59b869](https://github.com/bitnami/charts/commit/c59b86919f47504bc8fd06f75a024f55e58ace77)) - -## 1.2.2 (2020-12-30) - -* [bitnami/common] Fix typo in common.capabilities.kubeVersion ([a371b73](https://github.com/bitnami/charts/commit/a371b734b854aa81a7dec16c40d061f5e9a14875)) - -## 1.2.1 (2020-12-30) - -* [bitnami/common] Fix issue with global kubeversion calculation ([0bbb339](https://github.com/bitnami/charts/commit/0bbb339d60b41ab978e759863709ebb1451d07a4)) - -## 1.2.0 (2020-12-30) - -* [bitnami/common] Make ingress rules compatible with all Kubernetes versions (#4859) ([2b22a21](https://github.com/bitnami/charts/commit/2b22a217020fe3d16ef98fdcdd4a562c43f9824a)), closes [#4859](https://github.com/bitnami/charts/issues/4859) - -## 1.1.4 (2020-12-23) - -* [bitnami/common] fix: moving kube version comparison (#4804) ([cdb6ae8](https://github.com/bitnami/charts/commit/cdb6ae8f00d114f0998c604416b79f62dc27f19d)), closes [#4804](https://github.com/bitnami/charts/issues/4804) - -## 1.1.3 (2020-12-18) - -* [bitnami/*] fix typos (#4699) ([49adc63](https://github.com/bitnami/charts/commit/49adc63b672da976c55af2e077aa5648a357b77f)), closes [#4699](https://github.com/bitnami/charts/issues/4699) -* [bitnami/common] Adding networking apiVersion support for versions 1.19+ (#4776) ([5ed8c54](https://github.com/bitnami/charts/commit/5ed8c54f5e0a905effc4c1ae5c4931e6669cec30)), closes [#4776](https://github.com/bitnami/charts/issues/4776) - -## 1.1.2 (2020-12-11) - -* [bitnami/common] Fix node affinity templates (#4692) ([5b51a5c](https://github.com/bitnami/charts/commit/5b51a5c004b062282849a4abaaffd6840bb6c95f)), closes [#4692](https://github.com/bitnami/charts/issues/4692) - -## 1.1.1 (2020-11-26) - -* fix: mongodb validation auth (#4506) ([ca3fdfb](https://github.com/bitnami/charts/commit/ca3fdfbeebeba5bd7dfa4805e1ca2411e5950b09)), closes [#4506](https://github.com/bitnami/charts/issues/4506) - -## 1.1.0 (2020-11-26) - -* [bitnami/common] Add mongodb validation template (#4497) ([14ece96](https://github.com/bitnami/charts/commit/14ece96c801a7326935b6269423d8854fed3a49e)), closes [#4497](https://github.com/bitnami/charts/issues/4497) - -## 1.0.1 (2020-11-19) - -* [bitnami/common] existingSecret is in auth map (#4389) ([de9b217](https://github.com/bitnami/charts/commit/de9b2177465e1c56ca2aa1c4c486bd37a7104d7a)), closes [#4389](https://github.com/bitnami/charts/issues/4389) - -## 1.0.0 (2020-11-10) - -* bitnami/common Major version. Adapt Chart to apiVersion: v2 (#4258) ([09dbc45](https://github.com/bitnami/charts/commit/09dbc45d11c5e8fe65d6eb64dbf51571ad2c7464)), closes [#4258](https://github.com/bitnami/charts/issues/4258) - -## 0.10.0 (2020-10-27) - -* [bitnami/common] feat: add cassandra passwords validations (#4110) ([b4923d4](https://github.com/bitnami/charts/commit/b4923d48018dff1673a32eefcc0d62eb484b36da)), closes [#4110](https://github.com/bitnami/charts/issues/4110) - -## 0.9.0 (2020-10-21) - -* [bitnami/common] feat: add redis passwords validations (#4070) ([0daa8d5](https://github.com/bitnami/charts/commit/0daa8d580c06e18d94dbc0e88467347a34418596)), closes [#4070](https://github.com/bitnami/charts/issues/4070) - -## 0.8.2 (2020-10-14) - -* [bitnami/common] Allow backward compatibility for existingSecret (#4006) ([aa2b3a1](https://github.com/bitnami/charts/commit/aa2b3a18610c69b2f5c76b839483db43fa3c093c)), closes [#4006](https://github.com/bitnami/charts/issues/4006) - -## 0.8.1 (2020-10-05) - -* [bitnami/common] Fix secret name bug with defaulNameSuffix. (#3888) ([d114d44](https://github.com/bitnami/charts/commit/d114d446ef86cb6e7a72de6542905ec3b07d3684)) - -## 0.8.0 (2020-10-02) - -* [bitnami/common] Add statefulset capabilities and prepare MariaDB passwords validation for new forma ([1eb4436](https://github.com/bitnami/charts/commit/1eb44366a72e39e84e33bed1a4940c1b2c6025fc)), closes [#3859](https://github.com/bitnami/charts/issues/3859) - -## 0.7.1 (2020-09-22) - -* [bitnami/common] fix: evaluate enabled as string (#3733) ([048cdae](https://github.com/bitnami/charts/commit/048cdae5488cfcfe83ec698afaa8318aa3b1d0ca)), closes [#3733](https://github.com/bitnami/charts/issues/3733) - -## 0.7.0 (2020-09-22) - -* [bitnami/metrics-server] Add source repo (#3577) ([1ed12f9](https://github.com/bitnami/charts/commit/1ed12f96af75322b46afdb2b3d9907c11b13f765)), closes [#3577](https://github.com/bitnami/charts/issues/3577) -* PoC for pods' affinity (#3713) ([9e6a915](https://github.com/bitnami/charts/commit/9e6a915392979f0c0148875f34cca1c27e399b59)), closes [#3713](https://github.com/bitnami/charts/issues/3713) - -## 0.6.2 (2020-09-01) - -* [bitnami/common] fix: wrong use of append function (#3566) ([c912fd0](https://github.com/bitnami/charts/commit/c912fd0b7378bf2d5d56182e6d2fa6bbd74df46f)), closes [#3566](https://github.com/bitnami/charts/issues/3566) - -## 0.6.1 (2020-08-31) - -* [bitnami/common] fix: mariadb checks secret fields after check enabled (#3565) ([498056a](https://github.com/bitnami/charts/commit/498056ad16a6e89aa3b7cc231da7467ab5bd3986)), closes [#3565](https://github.com/bitnami/charts/issues/3565) - -## 0.6.0 (2020-08-19) - -* [bitnami/mariadb] Require password option at secret resource (#3411) ([a8d2464](https://github.com/bitnami/charts/commit/a8d24643756470d0280fc585b01397358c1c242d)), closes [#3411](https://github.com/bitnami/charts/issues/3411) - -## 0.5.2 (2020-08-19) - -* [bitnami/common] fix: add global parameters to postgres validation (#3460) ([1c52a2a](https://github.com/bitnami/charts/commit/1c52a2a48ea65024a753eb5b32deadd46650fb18)), closes [#3460](https://github.com/bitnami/charts/issues/3460) - -## 0.5.1 (2020-08-10) - -* fix(common): missing $ in required values helpers (#3376) ([c972152](https://github.com/bitnami/charts/commit/c972152762c14c5ab5e3847a4870f4f4f2a31224)), closes [#3376](https://github.com/bitnami/charts/issues/3376) - -## 0.5.0 (2020-08-10) - -* [bitnami/common] add psql and mysql required password validations (#3374) ([1a4419e](https://github.com/bitnami/charts/commit/1a4419e15d985f67413beff98c9fc9b9f69108fb)), closes [#3374](https://github.com/bitnami/charts/issues/3374) - -## 0.4.0 (2020-08-04) - -* [bitnami/*] Fix TL;DR typo in READMEs (#3280) ([3d7ab40](https://github.com/bitnami/charts/commit/3d7ab406fecd64f1af25f53e7d27f03ec95b29a4)), closes [#3280](https://github.com/bitnami/charts/issues/3280) -* [bitnami/all] Add categories (#3075) ([63bde06](https://github.com/bitnami/charts/commit/63bde066b87a140fab52264d0522401ab3d63509)), closes [#3075](https://github.com/bitnami/charts/issues/3075) -* Add common helpers to check secrets when upgrade (#3150) ([5a5807c](https://github.com/bitnami/charts/commit/5a5807c1b1db1f2337f6aa5308d3ff73a4329e6a)), closes [#3150](https://github.com/bitnami/charts/issues/3150) - -## 0.3.1 (2020-06-05) - -* [bitnami/several] Fix table rendering in some hubs (#2770) ([fe9fd8c](https://github.com/bitnami/charts/commit/fe9fd8c261195385aae73e165ac6c1a666fef08e)), closes [#2770](https://github.com/bitnami/charts/issues/2770) - -## 0.3.0 (2020-06-02) - -* [bitnami/common]: add template function for ingress apiVersion (#2732) ([a968a50](https://github.com/bitnami/charts/commit/a968a50916ed9fa6f823a5a3ef6e4b98d615322f)), closes [#2732](https://github.com/bitnami/charts/issues/2732) - -## 0.2.4 (2020-05-29) - -* [bitnami/common] Bump chart version (#2707) ([ff2c37a](https://github.com/bitnami/charts/commit/ff2c37a576191f4523c7f69504aea669ab68aba8)), closes [#2707](https://github.com/bitnami/charts/issues/2707) -* [bitnami/several] Fix trailing spaces to make helm lint work on all of them (#2705) ([bafba3f](https://github.com/bitnami/charts/commit/bafba3fc8b8949897ad2d99d437bd8fc975223e4)), closes [#2705](https://github.com/bitnami/charts/issues/2705) - -## 0.2.3 (2020-05-26) - -* fix(common): add name attribute to imagePullSecrets helper (#2664) ([1ea21a9](https://github.com/bitnami/charts/commit/1ea21a92a8f44bd0d82d0fd4ed30108a89cf5b34)), closes [#2664](https://github.com/bitnami/charts/issues/2664) - -## 0.2.2 (2020-05-19) - -* update bitnami/common to be compatible with helm v2.12+ (#2615) ([c7751eb](https://github.com/bitnami/charts/commit/c7751eb5764e468e1854b58a1b8491d2b13e0a4a)), closes [#2615](https://github.com/bitnami/charts/issues/2615) - -## 0.2.1 (2020-05-13) - -* bump bitnami/common version number (#2580) ([1bd1e7b](https://github.com/bitnami/charts/commit/1bd1e7bc776614b6ae10f21e9c8b23fe15db5ff4)), closes [#2580](https://github.com/bitnami/charts/issues/2580) - -## 0.2.0 (2020-04-17) - -* [bitnami/common] add secrets and warnings helpers (#2347) ([a748ff8](https://github.com/bitnami/charts/commit/a748ff82259d6553a0d4ca56ca6d7d050de859f4)), closes [#2347](https://github.com/bitnami/charts/issues/2347) - -## 0.1.1 (2020-04-08) - -* [bitnami/common] bitnami common add values yaml (#2267) ([a88c902](https://github.com/bitnami/charts/commit/a88c90212021771eacc562dd38c04381e2f63d6f)), closes [#2267](https://github.com/bitnami/charts/issues/2267) - -## 0.1.0 (2020-04-03) - -* [bitnami/common]: add initial functions (#2188) ([9401e13](https://github.com/bitnami/charts/commit/9401e13316992c36b0e33de75d5f249645a2924e)), closes [#2188](https://github.com/bitnami/charts/issues/2188) diff --git a/charts/thanos/charts/common/Chart.yaml b/charts/thanos/charts/common/Chart.yaml index ccbc6c6448..10fc86a4e8 100644 --- a/charts/thanos/charts/common/Chart.yaml +++ b/charts/thanos/charts/common/Chart.yaml @@ -1,26 +1,23 @@ -# Copyright Broadcom, Inc. All Rights Reserved. -# SPDX-License-Identifier: APACHE-2.0 - annotations: category: Infrastructure licenses: Apache-2.0 apiVersion: v2 -# Please make sure that version and appVersion are always the same. -appVersion: 2.23.0 -description: A Library Helm Chart for grouping common logic between bitnami charts. This chart is not deployable by itself. +appVersion: 2.30.0 +description: A Library Helm Chart for grouping common logic between bitnami charts. + This chart is not deployable by itself. home: https://bitnami.com -icon: https://bitnami.com/downloads/logos/bitnami-mark.png +icon: https://dyltqmyl993wv.cloudfront.net/downloads/logos/bitnami-mark.png keywords: - - common - - helper - - template - - function - - bitnami +- common +- helper +- template +- function +- bitnami maintainers: - - name: Broadcom, Inc. All Rights Reserved. - url: https://github.com/bitnami/charts +- name: Broadcom, Inc. All Rights Reserved. + url: https://github.com/bitnami/charts name: common sources: - - https://github.com/bitnami/charts/tree/main/bitnami/common +- https://github.com/bitnami/charts/tree/main/bitnami/common type: library -version: 2.23.0 +version: 2.30.0 diff --git a/charts/thanos/charts/common/README.md b/charts/thanos/charts/common/README.md index fee26c9914..0e5f649928 100644 --- a/charts/thanos/charts/common/README.md +++ b/charts/thanos/charts/common/README.md @@ -61,7 +61,7 @@ tag: pullPolicy: type: string - description: Specify a imagePullPolicy. Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' + description: Specify a imagePullPolicy.' pullSecrets: type: array @@ -214,13 +214,13 @@ helm install test mychart --set path.to.value00="",path.to.value01="" #### Useful links -- +- - - ## License -Copyright © 2024 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. +Copyright © 2025 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. diff --git a/charts/thanos/charts/common/templates/_affinities.tpl b/charts/thanos/charts/common/templates/_affinities.tpl index c2d290792e..d387dbe632 100644 --- a/charts/thanos/charts/common/templates/_affinities.tpl +++ b/charts/thanos/charts/common/templates/_affinities.tpl @@ -60,13 +60,14 @@ Return a topologyKey definition {{/* Return a soft podAffinity/podAntiAffinity definition -{{ include "common.affinities.pods.soft" (dict "component" "FOO" "customLabels" .Values.podLabels "extraMatchLabels" .Values.extraMatchLabels "topologyKey" "BAR" "extraPodAffinityTerms" .Values.extraPodAffinityTerms "context" $) -}} +{{ include "common.affinities.pods.soft" (dict "component" "FOO" "customLabels" .Values.podLabels "extraMatchLabels" .Values.extraMatchLabels "topologyKey" "BAR" "extraPodAffinityTerms" .Values.extraPodAffinityTerms "extraNamespaces" (list "namespace1" "namespace2") "context" $) -}} */}} {{- define "common.affinities.pods.soft" -}} {{- $component := default "" .component -}} {{- $customLabels := default (dict) .customLabels -}} {{- $extraMatchLabels := default (dict) .extraMatchLabels -}} {{- $extraPodAffinityTerms := default (list) .extraPodAffinityTerms -}} +{{- $extraNamespaces := default (list) .extraNamespaces -}} preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: @@ -77,6 +78,13 @@ preferredDuringSchedulingIgnoredDuringExecution: {{- range $key, $value := $extraMatchLabels }} {{ $key }}: {{ $value | quote }} {{- end }} + {{- if $extraNamespaces }} + namespaces: + - {{ .context.Release.Namespace }} + {{- with $extraNamespaces }} + {{ include "common.tplvalues.render" (dict "value" . "context" $) | nindent 8 }} + {{- end }} + {{- end }} topologyKey: {{ include "common.affinities.topologyKey" (dict "topologyKey" .topologyKey) }} weight: 1 {{- range $extraPodAffinityTerms }} @@ -96,13 +104,14 @@ preferredDuringSchedulingIgnoredDuringExecution: {{/* Return a hard podAffinity/podAntiAffinity definition -{{ include "common.affinities.pods.hard" (dict "component" "FOO" "customLabels" .Values.podLabels "extraMatchLabels" .Values.extraMatchLabels "topologyKey" "BAR" "extraPodAffinityTerms" .Values.extraPodAffinityTerms "context" $) -}} +{{ include "common.affinities.pods.hard" (dict "component" "FOO" "customLabels" .Values.podLabels "extraMatchLabels" .Values.extraMatchLabels "topologyKey" "BAR" "extraPodAffinityTerms" .Values.extraPodAffinityTerms "extraNamespaces" (list "namespace1" "namespace2") "context" $) -}} */}} {{- define "common.affinities.pods.hard" -}} {{- $component := default "" .component -}} {{- $customLabels := default (dict) .customLabels -}} {{- $extraMatchLabels := default (dict) .extraMatchLabels -}} {{- $extraPodAffinityTerms := default (list) .extraPodAffinityTerms -}} +{{- $extraNamespaces := default (list) .extraNamespaces -}} requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: {{- (include "common.labels.matchLabels" ( dict "customLabels" $customLabels "context" .context )) | nindent 8 }} @@ -112,6 +121,13 @@ requiredDuringSchedulingIgnoredDuringExecution: {{- range $key, $value := $extraMatchLabels }} {{ $key }}: {{ $value | quote }} {{- end }} + {{- if $extraNamespaces }} + namespaces: + - {{ .context.Release.Namespace }} + {{- with $extraNamespaces }} + {{ include "common.tplvalues.render" (dict "value" . "context" $) | nindent 8 }} + {{- end }} + {{- end }} topologyKey: {{ include "common.affinities.topologyKey" (dict "topologyKey" .topologyKey) }} {{- range $extraPodAffinityTerms }} - labelSelector: diff --git a/charts/thanos/charts/common/templates/_capabilities.tpl b/charts/thanos/charts/common/templates/_capabilities.tpl index 2fe81d32d1..6423fb1163 100644 --- a/charts/thanos/charts/common/templates/_capabilities.tpl +++ b/charts/thanos/charts/common/templates/_capabilities.tpl @@ -12,6 +12,20 @@ Return the target Kubernetes version {{- default (default .Capabilities.KubeVersion.Version .Values.kubeVersion) ((.Values.global).kubeVersion) -}} {{- end -}} +{{/* +Return true if the apiVersion is supported +Usage: +{{ include "common.capabilities.apiVersions.has" (dict "version" "batch/v1" "context" $) }} +*/}} +{{- define "common.capabilities.apiVersions.has" -}} +{{- $providedAPIVersions := default .context.Values.apiVersions ((.context.Values.global).apiVersions) -}} +{{- if and (empty $providedAPIVersions) (.context.Capabilities.APIVersions.Has .version) -}} + {{- true -}} +{{- else if has .version $providedAPIVersions -}} + {{- true -}} +{{- end -}} +{{- end -}} + {{/* Return the appropriate apiVersion for poddisruptionbudget. */}} @@ -36,6 +50,18 @@ Return the appropriate apiVersion for networkpolicy. {{- end -}} {{- end -}} +{{/* +Return the appropriate apiVersion for job. +*/}} +{{- define "common.capabilities.job.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.21-0" $kubeVersion) -}} +{{- print "batch/v1beta1" -}} +{{- else -}} +{{- print "batch/v1" -}} +{{- end -}} +{{- end -}} + {{/* Return the appropriate apiVersion for cronjob. */}} @@ -157,14 +183,12 @@ Return the appropriate apiVersion for Vertical Pod Autoscaler. */}} {{- define "common.capabilities.vpa.apiVersion" -}} {{- $kubeVersion := include "common.capabilities.kubeVersion" .context -}} -{{- if and (not (empty $kubeVersion)) (semverCompare "<1.23-0" $kubeVersion) -}} -{{- if .beta2 -}} -{{- print "autoscaling/v2beta2" -}} -{{- else -}} -{{- print "autoscaling/v2beta1" -}} -{{- end -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.11-0" $kubeVersion) -}} +{{- print "autoscaling/v1beta1" -}} +{{- else if and (not (empty $kubeVersion)) (semverCompare "<1.25-0" $kubeVersion) -}} +{{- print "autoscaling/v1beta2" -}} {{- else -}} -{{- print "autoscaling/v2" -}} +{{- print "autoscaling/v1" -}} {{- end -}} {{- end -}} diff --git a/charts/thanos/charts/common/templates/_compatibility.tpl b/charts/thanos/charts/common/templates/_compatibility.tpl index a61588d683..19c26dbd5c 100644 --- a/charts/thanos/charts/common/templates/_compatibility.tpl +++ b/charts/thanos/charts/common/templates/_compatibility.tpl @@ -40,7 +40,7 @@ Usage: {{- end -}} {{/* Remove fields that are disregarded when running the container in privileged mode */}} {{- if $adaptedContext.privileged -}} - {{- $adaptedContext = omit $adaptedContext "capabilities" "seLinuxOptions" -}} + {{- $adaptedContext = omit $adaptedContext "capabilities" -}} {{- end -}} {{- omit $adaptedContext "enabled" | toYaml -}} {{- end -}} diff --git a/charts/thanos/charts/common/templates/_errors.tpl b/charts/thanos/charts/common/templates/_errors.tpl index e965365193..93f3ffc9be 100644 --- a/charts/thanos/charts/common/templates/_errors.tpl +++ b/charts/thanos/charts/common/templates/_errors.tpl @@ -5,7 +5,7 @@ SPDX-License-Identifier: APACHE-2.0 {{/* vim: set filetype=mustache: */}} {{/* -Through error when upgrading using empty passwords values that must not be empty. +Throw error when upgrading using empty passwords values that must not be empty. Usage: {{- $validationError00 := include "common.validations.values.single.empty" (dict "valueKey" "path.to.password00" "secret" "secretName" "field" "password-00") -}} @@ -26,3 +26,60 @@ Required password params: {{- printf $errorString $validationErrors | fail -}} {{- end -}} {{- end -}} + +{{/* +Throw error when original container images are replaced. +The error can be bypassed by setting the "global.security.allowInsecureImages" to true. In this case, +a warning message will be shown instead. + +Usage: +{{ include "common.errors.insecureImages" (dict "images" (list .Values.path.to.the.imageRoot) "context" $) }} +*/}} +{{- define "common.errors.insecureImages" -}} +{{- $relocatedImages := list -}} +{{- $replacedImages := list -}} +{{- $retaggedImages := list -}} +{{- $globalRegistry := ((.context.Values.global).imageRegistry) -}} +{{- $originalImages := .context.Chart.Annotations.images -}} +{{- range .images -}} + {{- $registryName := default .registry $globalRegistry -}} + {{- $fullImageNameNoTag := printf "%s/%s" $registryName .repository -}} + {{- $fullImageName := printf "%s:%s" $fullImageNameNoTag .tag -}} + {{- if not (contains $fullImageNameNoTag $originalImages) -}} + {{- if not (contains $registryName $originalImages) -}} + {{- $relocatedImages = append $relocatedImages $fullImageName -}} + {{- else if not (contains .repository $originalImages) -}} + {{- $replacedImages = append $replacedImages $fullImageName -}} + {{- end -}} + {{- end -}} + {{- if not (contains (printf "%s:%s" .repository .tag) $originalImages) -}} + {{- $retaggedImages = append $retaggedImages $fullImageName -}} + {{- end -}} +{{- end -}} + +{{- if and (or (gt (len $relocatedImages) 0) (gt (len $replacedImages) 0)) (((.context.Values.global).security).allowInsecureImages) -}} + {{- print "\n\nâš  SECURITY WARNING: Verifying original container images was skipped. Please note this Helm chart was designed, tested, and validated on multiple platforms using a specific set of Bitnami and Tanzu Application Catalog containers. Substituting other containers is likely to cause degraded security and performance, broken chart features, and missing environment variables.\n" -}} +{{- else if (or (gt (len $relocatedImages) 0) (gt (len $replacedImages) 0)) -}} + {{- $errorString := "Original containers have been substituted for unrecognized ones. Deploying this chart with non-standard containers is likely to cause degraded security and performance, broken chart features, and missing environment variables." -}} + {{- $errorString = print $errorString "\n\nUnrecognized images:" -}} + {{- range (concat $relocatedImages $replacedImages) -}} + {{- $errorString = print $errorString "\n - " . -}} + {{- end -}} + {{- if or (contains "docker.io/bitnami/" $originalImages) (contains "docker.io/bitnamiprem/" $originalImages) -}} + {{- $errorString = print "\n\nâš  ERROR: " $errorString -}} + {{- $errorString = print $errorString "\n\nIf you are sure you want to proceed with non-standard containers, you can skip container image verification by setting the global parameter 'global.security.allowInsecureImages' to true." -}} + {{- $errorString = print $errorString "\nFurther information can be obtained at https://github.com/bitnami/charts/issues/30850" -}} + {{- print $errorString | fail -}} + {{- else if gt (len $replacedImages) 0 -}} + {{- $errorString = print "\n\nâš  WARNING: " $errorString -}} + {{- print $errorString -}} + {{- end -}} +{{- else if gt (len $retaggedImages) 0 -}} + {{- $warnString := "\n\nâš  WARNING: Original containers have been retagged. Please note this Helm chart was tested, and validated on multiple platforms using a specific set of Tanzu Application Catalog containers. Substituting original image tags could cause unexpected behavior." -}} + {{- $warnString = print $warnString "\n\nRetagged images:" -}} + {{- range $retaggedImages -}} + {{- $warnString = print $warnString "\n - " . -}} + {{- end -}} + {{- print $warnString -}} +{{- end -}} +{{- end -}} \ No newline at end of file diff --git a/charts/thanos/charts/common/templates/_secrets.tpl b/charts/thanos/charts/common/templates/_secrets.tpl index 801918ce35..bfef46978d 100644 --- a/charts/thanos/charts/common/templates/_secrets.tpl +++ b/charts/thanos/charts/common/templates/_secrets.tpl @@ -67,7 +67,7 @@ Params: Generate secret password or retrieve one if already created. Usage: -{{ include "common.secrets.passwords.manage" (dict "secret" "secret-name" "key" "keyName" "providedValues" (list "path.to.password1" "path.to.password2") "length" 10 "strong" false "chartName" "chartName" "context" $) }} +{{ include "common.secrets.passwords.manage" (dict "secret" "secret-name" "key" "keyName" "providedValues" (list "path.to.password1" "path.to.password2") "length" 10 "strong" false "chartName" "chartName" "honorProvidedValues" false "context" $) }} Params: - secret - String - Required - Name of the 'Secret' resource where the password is stored. @@ -80,12 +80,15 @@ Params: - failOnNew - Boolean - Optional - Default to true. If set to false, skip errors adding new keys to existing secrets. - skipB64enc - Boolean - Optional - Default to false. If set to true, no the secret will not be base64 encrypted. - skipQuote - Boolean - Optional - Default to false. If set to true, no quotes will be added around the secret. + - honorProvidedValues - Boolean - Optional - Default to false. If set to true, the values in providedValues have higher priority than an existing secret The order in which this function returns a secret password: - 1. Already existing 'Secret' resource + 1. Password provided via the values.yaml if honorProvidedValues = true + (If one of the keys passed to the 'providedValues' parameter to this function is a valid path to a key in the values.yaml and has a value, the value of the first key with a value will be returned) + 2. Already existing 'Secret' resource (If a 'Secret' resource is found under the name provided to the 'secret' parameter to this function and that 'Secret' resource contains a key with the name passed as the 'key' parameter to this function then the value of this existing secret password will be returned) - 2. Password provided via the values.yaml + 3. Password provided via the values.yaml if honorProvidedValues = false (If one of the keys passed to the 'providedValues' parameter to this function is a valid path to a key in the values.yaml and has a value, the value of the first key with a value will be returned) - 3. Randomly generated secret password + 4. Randomly generated secret password (A new random secret password with the length specified in the 'length' parameter will be generated and returned) */}} @@ -106,6 +109,10 @@ The order in which this function returns a secret password: {{- end -}} {{- end }} +{{- if and $providedPasswordValue .honorProvidedValues }} + {{- $password = $providedPasswordValue | toString }} +{{- end }} + {{- if not $password }} {{- if $providedPasswordValue }} {{- $password = $providedPasswordValue | toString }} diff --git a/charts/thanos/charts/common/templates/_tplvalues.tpl b/charts/thanos/charts/common/templates/_tplvalues.tpl index c84d72c803..a04f4c1eb3 100644 --- a/charts/thanos/charts/common/templates/_tplvalues.tpl +++ b/charts/thanos/charts/common/templates/_tplvalues.tpl @@ -36,3 +36,17 @@ Usage: {{- end -}} {{ $dst | toYaml }} {{- end -}} + +{{/* +Merge a list of values that contains template after rendering them. +Merge precedence is consistent with https://masterminds.github.io/sprig/dicts.html#mergeoverwrite-mustmergeoverwrite +Usage: +{{ include "common.tplvalues.merge-overwrite" ( dict "values" (list .Values.path.to.the.Value1 .Values.path.to.the.Value2) "context" $ ) }} +*/}} +{{- define "common.tplvalues.merge-overwrite" -}} +{{- $dst := dict -}} +{{- range .values -}} +{{- $dst = include "common.tplvalues.render" (dict "value" . "context" $.context "scope" $.scope) | fromYaml | mergeOverwrite $dst -}} +{{- end -}} +{{ $dst | toYaml }} +{{- end -}} diff --git a/charts/thanos/charts/common/templates/_warnings.tpl b/charts/thanos/charts/common/templates/_warnings.tpl index e4dbecde25..62c44dfcaa 100644 --- a/charts/thanos/charts/common/templates/_warnings.tpl +++ b/charts/thanos/charts/common/templates/_warnings.tpl @@ -13,7 +13,7 @@ Usage: {{- if and (contains "bitnami/" .repository) (not (.tag | toString | regexFind "-r\\d+$|sha256:")) }} WARNING: Rolling tag detected ({{ .repository }}:{{ .tag }}), please note that it is strongly recommended to avoid using rolling tags in a production environment. -+info https://docs.vmware.com/en/VMware-Tanzu-Application-Catalog/services/tutorials/GUID-understand-rolling-tags-containers-index.html ++info https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-understand-rolling-tags-containers-index.html {{- end }} {{- end -}} diff --git a/charts/thanos/charts/common/templates/validations/_cassandra.tpl b/charts/thanos/charts/common/templates/validations/_cassandra.tpl index 3f41ff8fc3..f8fd213bcc 100644 --- a/charts/thanos/charts/common/templates/validations/_cassandra.tpl +++ b/charts/thanos/charts/common/templates/validations/_cassandra.tpl @@ -4,32 +4,6 @@ SPDX-License-Identifier: APACHE-2.0 */}} {{/* vim: set filetype=mustache: */}} -{{/* -Validate Cassandra required passwords are not empty. - -Usage: -{{ include "common.validations.values.cassandra.passwords" (dict "secret" "secretName" "subchart" false "context" $) }} -Params: - - secret - String - Required. Name of the secret where Cassandra values are stored, e.g: "cassandra-passwords-secret" - - subchart - Boolean - Optional. Whether Cassandra is used as subchart or not. Default: false -*/}} -{{- define "common.validations.values.cassandra.passwords" -}} - {{- $existingSecret := include "common.cassandra.values.existingSecret" . -}} - {{- $enabled := include "common.cassandra.values.enabled" . -}} - {{- $dbUserPrefix := include "common.cassandra.values.key.dbUser" . -}} - {{- $valueKeyPassword := printf "%s.password" $dbUserPrefix -}} - - {{- if and (or (not $existingSecret) (eq $existingSecret "\"\"")) (eq $enabled "true") -}} - {{- $requiredPasswords := list -}} - - {{- $requiredPassword := dict "valueKey" $valueKeyPassword "secret" .secret "field" "cassandra-password" -}} - {{- $requiredPasswords = append $requiredPasswords $requiredPassword -}} - - {{- include "common.validations.values.multiple.empty" (dict "required" $requiredPasswords "context" .context) -}} - - {{- end -}} -{{- end -}} - {{/* Auxiliary function to get the right value for existingSecret. diff --git a/charts/thanos/charts/common/templates/validations/_mongodb.tpl b/charts/thanos/charts/common/templates/validations/_mongodb.tpl index d4cd38cbb3..e678a6de82 100644 --- a/charts/thanos/charts/common/templates/validations/_mongodb.tpl +++ b/charts/thanos/charts/common/templates/validations/_mongodb.tpl @@ -4,52 +4,6 @@ SPDX-License-Identifier: APACHE-2.0 */}} {{/* vim: set filetype=mustache: */}} -{{/* -Validate MongoDB® required passwords are not empty. - -Usage: -{{ include "common.validations.values.mongodb.passwords" (dict "secret" "secretName" "subchart" false "context" $) }} -Params: - - secret - String - Required. Name of the secret where MongoDB® values are stored, e.g: "mongodb-passwords-secret" - - subchart - Boolean - Optional. Whether MongoDB® is used as subchart or not. Default: false -*/}} -{{- define "common.validations.values.mongodb.passwords" -}} - {{- $existingSecret := include "common.mongodb.values.auth.existingSecret" . -}} - {{- $enabled := include "common.mongodb.values.enabled" . -}} - {{- $authPrefix := include "common.mongodb.values.key.auth" . -}} - {{- $architecture := include "common.mongodb.values.architecture" . -}} - {{- $valueKeyRootPassword := printf "%s.rootPassword" $authPrefix -}} - {{- $valueKeyUsername := printf "%s.username" $authPrefix -}} - {{- $valueKeyDatabase := printf "%s.database" $authPrefix -}} - {{- $valueKeyPassword := printf "%s.password" $authPrefix -}} - {{- $valueKeyReplicaSetKey := printf "%s.replicaSetKey" $authPrefix -}} - {{- $valueKeyAuthEnabled := printf "%s.enabled" $authPrefix -}} - - {{- $authEnabled := include "common.utils.getValueFromKey" (dict "key" $valueKeyAuthEnabled "context" .context) -}} - - {{- if and (or (not $existingSecret) (eq $existingSecret "\"\"")) (eq $enabled "true") (eq $authEnabled "true") -}} - {{- $requiredPasswords := list -}} - - {{- $requiredRootPassword := dict "valueKey" $valueKeyRootPassword "secret" .secret "field" "mongodb-root-password" -}} - {{- $requiredPasswords = append $requiredPasswords $requiredRootPassword -}} - - {{- $valueUsername := include "common.utils.getValueFromKey" (dict "key" $valueKeyUsername "context" .context) }} - {{- $valueDatabase := include "common.utils.getValueFromKey" (dict "key" $valueKeyDatabase "context" .context) }} - {{- if and $valueUsername $valueDatabase -}} - {{- $requiredPassword := dict "valueKey" $valueKeyPassword "secret" .secret "field" "mongodb-password" -}} - {{- $requiredPasswords = append $requiredPasswords $requiredPassword -}} - {{- end -}} - - {{- if (eq $architecture "replicaset") -}} - {{- $requiredReplicaSetKey := dict "valueKey" $valueKeyReplicaSetKey "secret" .secret "field" "mongodb-replica-set-key" -}} - {{- $requiredPasswords = append $requiredPasswords $requiredReplicaSetKey -}} - {{- end -}} - - {{- include "common.validations.values.multiple.empty" (dict "required" $requiredPasswords "context" .context) -}} - - {{- end -}} -{{- end -}} - {{/* Auxiliary function to get the right value for existingSecret. diff --git a/charts/thanos/charts/common/templates/validations/_mysql.tpl b/charts/thanos/charts/common/templates/validations/_mysql.tpl index 924812a931..fbb65c338e 100644 --- a/charts/thanos/charts/common/templates/validations/_mysql.tpl +++ b/charts/thanos/charts/common/templates/validations/_mysql.tpl @@ -4,47 +4,6 @@ SPDX-License-Identifier: APACHE-2.0 */}} {{/* vim: set filetype=mustache: */}} -{{/* -Validate MySQL required passwords are not empty. - -Usage: -{{ include "common.validations.values.mysql.passwords" (dict "secret" "secretName" "subchart" false "context" $) }} -Params: - - secret - String - Required. Name of the secret where MySQL values are stored, e.g: "mysql-passwords-secret" - - subchart - Boolean - Optional. Whether MySQL is used as subchart or not. Default: false -*/}} -{{- define "common.validations.values.mysql.passwords" -}} - {{- $existingSecret := include "common.mysql.values.auth.existingSecret" . -}} - {{- $enabled := include "common.mysql.values.enabled" . -}} - {{- $architecture := include "common.mysql.values.architecture" . -}} - {{- $authPrefix := include "common.mysql.values.key.auth" . -}} - {{- $valueKeyRootPassword := printf "%s.rootPassword" $authPrefix -}} - {{- $valueKeyUsername := printf "%s.username" $authPrefix -}} - {{- $valueKeyPassword := printf "%s.password" $authPrefix -}} - {{- $valueKeyReplicationPassword := printf "%s.replicationPassword" $authPrefix -}} - - {{- if and (or (not $existingSecret) (eq $existingSecret "\"\"")) (eq $enabled "true") -}} - {{- $requiredPasswords := list -}} - - {{- $requiredRootPassword := dict "valueKey" $valueKeyRootPassword "secret" .secret "field" "mysql-root-password" -}} - {{- $requiredPasswords = append $requiredPasswords $requiredRootPassword -}} - - {{- $valueUsername := include "common.utils.getValueFromKey" (dict "key" $valueKeyUsername "context" .context) }} - {{- if not (empty $valueUsername) -}} - {{- $requiredPassword := dict "valueKey" $valueKeyPassword "secret" .secret "field" "mysql-password" -}} - {{- $requiredPasswords = append $requiredPasswords $requiredPassword -}} - {{- end -}} - - {{- if (eq $architecture "replication") -}} - {{- $requiredReplicationPassword := dict "valueKey" $valueKeyReplicationPassword "secret" .secret "field" "mysql-replication-password" -}} - {{- $requiredPasswords = append $requiredPasswords $requiredReplicationPassword -}} - {{- end -}} - - {{- include "common.validations.values.multiple.empty" (dict "required" $requiredPasswords "context" .context) -}} - - {{- end -}} -{{- end -}} - {{/* Auxiliary function to get the right value for existingSecret. diff --git a/charts/thanos/charts/common/templates/validations/_postgresql.tpl b/charts/thanos/charts/common/templates/validations/_postgresql.tpl index 0fa0b1467a..51d47162e7 100644 --- a/charts/thanos/charts/common/templates/validations/_postgresql.tpl +++ b/charts/thanos/charts/common/templates/validations/_postgresql.tpl @@ -4,35 +4,6 @@ SPDX-License-Identifier: APACHE-2.0 */}} {{/* vim: set filetype=mustache: */}} -{{/* -Validate PostgreSQL required passwords are not empty. - -Usage: -{{ include "common.validations.values.postgresql.passwords" (dict "secret" "secretName" "subchart" false "context" $) }} -Params: - - secret - String - Required. Name of the secret where postgresql values are stored, e.g: "postgresql-passwords-secret" - - subchart - Boolean - Optional. Whether postgresql is used as subchart or not. Default: false -*/}} -{{- define "common.validations.values.postgresql.passwords" -}} - {{- $existingSecret := include "common.postgresql.values.existingSecret" . -}} - {{- $enabled := include "common.postgresql.values.enabled" . -}} - {{- $valueKeyPostgresqlPassword := include "common.postgresql.values.key.postgressPassword" . -}} - {{- $valueKeyPostgresqlReplicationEnabled := include "common.postgresql.values.key.replicationPassword" . -}} - {{- if and (or (not $existingSecret) (eq $existingSecret "\"\"")) (eq $enabled "true") -}} - {{- $requiredPasswords := list -}} - {{- $requiredPostgresqlPassword := dict "valueKey" $valueKeyPostgresqlPassword "secret" .secret "field" "postgresql-password" -}} - {{- $requiredPasswords = append $requiredPasswords $requiredPostgresqlPassword -}} - - {{- $enabledReplication := include "common.postgresql.values.enabled.replication" . -}} - {{- if (eq $enabledReplication "true") -}} - {{- $requiredPostgresqlReplicationPassword := dict "valueKey" $valueKeyPostgresqlReplicationEnabled "secret" .secret "field" "postgresql-replication-password" -}} - {{- $requiredPasswords = append $requiredPasswords $requiredPostgresqlReplicationPassword -}} - {{- end -}} - - {{- include "common.validations.values.multiple.empty" (dict "required" $requiredPasswords "context" .context) -}} - {{- end -}} -{{- end -}} - {{/* Auxiliary function to decide whether evaluate global values. diff --git a/charts/thanos/charts/common/templates/validations/_redis.tpl b/charts/thanos/charts/common/templates/validations/_redis.tpl index f4778256d1..9fedfef9d1 100644 --- a/charts/thanos/charts/common/templates/validations/_redis.tpl +++ b/charts/thanos/charts/common/templates/validations/_redis.tpl @@ -5,39 +5,6 @@ SPDX-License-Identifier: APACHE-2.0 {{/* vim: set filetype=mustache: */}} -{{/* -Validate Redis® required passwords are not empty. - -Usage: -{{ include "common.validations.values.redis.passwords" (dict "secret" "secretName" "subchart" false "context" $) }} -Params: - - secret - String - Required. Name of the secret where redis values are stored, e.g: "redis-passwords-secret" - - subchart - Boolean - Optional. Whether redis is used as subchart or not. Default: false -*/}} -{{- define "common.validations.values.redis.passwords" -}} - {{- $enabled := include "common.redis.values.enabled" . -}} - {{- $valueKeyPrefix := include "common.redis.values.keys.prefix" . -}} - {{- $standarizedVersion := include "common.redis.values.standarized.version" . }} - - {{- $existingSecret := ternary (printf "%s%s" $valueKeyPrefix "auth.existingSecret") (printf "%s%s" $valueKeyPrefix "existingSecret") (eq $standarizedVersion "true") }} - {{- $existingSecretValue := include "common.utils.getValueFromKey" (dict "key" $existingSecret "context" .context) }} - - {{- $valueKeyRedisPassword := ternary (printf "%s%s" $valueKeyPrefix "auth.password") (printf "%s%s" $valueKeyPrefix "password") (eq $standarizedVersion "true") }} - {{- $valueKeyRedisUseAuth := ternary (printf "%s%s" $valueKeyPrefix "auth.enabled") (printf "%s%s" $valueKeyPrefix "usePassword") (eq $standarizedVersion "true") }} - - {{- if and (or (not $existingSecret) (eq $existingSecret "\"\"")) (eq $enabled "true") -}} - {{- $requiredPasswords := list -}} - - {{- $useAuth := include "common.utils.getValueFromKey" (dict "key" $valueKeyRedisUseAuth "context" .context) -}} - {{- if eq $useAuth "true" -}} - {{- $requiredRedisPassword := dict "valueKey" $valueKeyRedisPassword "secret" .secret "field" "redis-password" -}} - {{- $requiredPasswords = append $requiredPasswords $requiredRedisPassword -}} - {{- end -}} - - {{- include "common.validations.values.multiple.empty" (dict "required" $requiredPasswords "context" .context) -}} - {{- end -}} -{{- end -}} - {{/* Auxiliary function to get the right value for enabled redis. diff --git a/charts/thanos/charts/minio/.helmignore b/charts/thanos/charts/minio/.helmignore new file mode 100644 index 0000000000..207983f368 --- /dev/null +++ b/charts/thanos/charts/minio/.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/charts/thanos/charts/minio/Chart.lock b/charts/thanos/charts/minio/Chart.lock new file mode 100644 index 0000000000..86998800c0 --- /dev/null +++ b/charts/thanos/charts/minio/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: oci://registry-1.docker.io/bitnamicharts + version: 2.30.0 +digest: sha256:46afdf79eae69065904d430f03f7e5b79a148afed20aa45ee83ba88adc036169 +generated: "2025-02-19T23:09:00.050521217Z" diff --git a/charts/thanos/charts/minio/Chart.yaml b/charts/thanos/charts/minio/Chart.yaml new file mode 100644 index 0000000000..5f45130a34 --- /dev/null +++ b/charts/thanos/charts/minio/Chart.yaml @@ -0,0 +1,37 @@ +annotations: + category: Infrastructure + images: | + - name: minio + image: docker.io/bitnami/minio:2025.3.12-debian-12-r0 + - name: minio-client + image: docker.io/bitnami/minio-client:2025.3.12-debian-12-r0 + - name: os-shell + image: docker.io/bitnami/os-shell:12-debian-12-r39 + licenses: Apache-2.0 + tanzuCategory: service +apiVersion: v2 +appVersion: 2025.3.12 +dependencies: +- name: common + repository: oci://registry-1.docker.io/bitnamicharts + tags: + - bitnami-common + version: 2.x.x +description: MinIO(R) is an object storage server, compatible with Amazon S3 cloud + storage service, mainly used for storing unstructured data (such as photos, videos, + log files, etc.). +home: https://bitnami.com +icon: https://dyltqmyl993wv.cloudfront.net/assets/stacks/minio/img/minio-stack-220x234.png +keywords: +- minio +- storage +- object-storage +- s3 +- cluster +maintainers: +- name: Broadcom, Inc. All Rights Reserved. + url: https://github.com/bitnami/charts +name: minio +sources: +- https://github.com/bitnami/charts/tree/main/bitnami/minio +version: 15.0.7 diff --git a/charts/thanos/charts/minio/README.md b/charts/thanos/charts/minio/README.md new file mode 100644 index 0000000000..698d382716 --- /dev/null +++ b/charts/thanos/charts/minio/README.md @@ -0,0 +1,665 @@ + + +# Bitnami Object Storage based on MinIO(R) + +MinIO(R) is an object storage server, compatible with Amazon S3 cloud storage service, mainly used for storing unstructured data (such as photos, videos, log files, etc.). + +[Overview of Bitnami Object Storage based on MinIO®](https://min.io/) + +Disclaimer: All software products, projects and company names are trademark(TM) or registered(R) trademarks of their respective holders, and use of them does not imply any affiliation or endorsement. This software is licensed to you subject to one or more open source licenses and VMware provides the software on an AS-IS basis. MinIO(R) is a registered trademark of the MinIO Inc. in the US and other countries. Bitnami is not affiliated, associated, authorized, endorsed by, or in any way officially connected with MinIO Inc. MinIO(R) is licensed under GNU AGPL v3.0. + +## TL;DR + +```console +helm install my-release oci://registry-1.docker.io/bitnamicharts/minio +``` + +Looking to use Bitnami Object Storage based on MinIOreg; in production? Try [VMware Tanzu Application Catalog](https://bitnami.com/enterprise), the commercial edition of the Bitnami catalog. + +## Introduction + +This chart bootstraps a [MinIO®](https://github.com/bitnami/containers/tree/main/bitnami/minio) deployment on a [Kubernetes](https://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. + +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/minio +``` + +> 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`. + +These commands deploy MinIO® 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 `resourcesPreset` 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/). + +### Update credentials + +Bitnami charts configure credentials at first boot. Any further change in the secrets or credentials require manual intervention. Follow these instructions: + +- Update the user password following [the upstream documentation](https://min.io/docs/minio/linux/administration/identity-access-management/minio-user-management.html) +- Update the password secret with the new values (replace the SECRET_NAME, USER and PASSWORD placeholders) + +```shell +kubectl create secret generic SECRET_NAME --from-literal=root-user=USER --from-literal=root-password=PASSWORD --dry-run -o yaml | kubectl apply -f - +``` + +### Prometheus metrics + +This chart can be integrated with Prometheus by setting `metrics.enabled` to `true`. This will expose MinIO(TM) native Prometheus endpoint in the service. It will have the necessary annotations to be automatically scraped by Prometheus. + +#### Prometheus requirements + +It is necessary to have a working installation of Prometheus or Prometheus Operator for the integration to work. Install the [Bitnami Prometheus helm chart](https://github.com/bitnami/charts/tree/main/bitnami/prometheus) or the [Bitnami Kube Prometheus helm chart](https://github.com/bitnami/charts/tree/main/bitnami/kube-prometheus) to easily have a working Prometheus in your cluster. + +#### Integration with Prometheus Operator + +The chart can deploy `ServiceMonitor` objects for integration with Prometheus Operator installations. To do so, set the value `metrics.serviceMonitor.enabled=true`. Ensure that the Prometheus Operator `CustomResourceDefinitions` are installed in the cluster or it will fail with the following error: + +```text +no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1" +``` + +Install the [Bitnami Kube Prometheus helm chart](https://github.com/bitnami/charts/tree/main/bitnami/kube-prometheus) for having the necessary CRDs and the Prometheus Operator. + +### [Rolling VS Immutable tags](https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-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. + +### Distributed mode + +By default, this chart provisions a MinIO® server in standalone mode. You can start MinIO® server in [distributed mode](https://docs.minio.io/docs/distributed-minio-quickstart-guide) with the following parameter: `mode=distributed` + +This chart bootstrap MinIO® server in distributed mode with 4 nodes by default. You can change the number of nodes using the `statefulset.replicaCount` parameter. For instance, you can deploy the chart with 8 nodes using the following parameters: + +```console +mode=distributed +statefulset.replicaCount=8 +``` + +You can also bootstrap MinIO® server in distributed mode in several zones, and using multiple drives per node. For instance, you can deploy the chart with 2 nodes per zone on 2 zones, using 2 drives per node: + +```console +mode=distributed +statefulset.replicaCount=2 +statefulset.zones=2 +statefulset.drivesPerNode=2 +``` + +> Note: The total number of drives should be greater than 4 to guarantee erasure coding. Please set a combination of nodes, and drives per node that match this condition. + +### Prometheus exporter + +MinIO® exports Prometheus metrics at `/minio/v2/metrics/cluster`. To allow Prometheus collecting your MinIO® metrics, modify the `values.yaml` adding the corresponding annotations: + +```diff +- podAnnotations: {} ++ podAnnotations: ++ prometheus.io/scrape: "true" ++ prometheus.io/path: "/minio/v2/metrics/cluster" ++ prometheus.io/port: "9000" +``` + +> Find more information about MinIO® metrics at + +### Ingress + +This chart provides support for Ingress resources. If you have an ingress controller installed on your cluster, such as [nginx-ingress-controller](https://github.com/bitnami/charts/tree/main/bitnami/nginx-ingress-controller) or [contour](https://github.com/bitnami/charts/tree/main/bitnami/contour) you can utilize the ingress controller to serve your application.To enable Ingress integration, set `ingress.enabled` to `true`. + +The most common scenario is to have one host name mapped to the deployment. In this case, the `ingress.hostname` property can be used to set the host name. The `ingress.tls` parameter can be used to add the TLS configuration for this host. + +However, it is also possible to have more than one host. To facilitate this, the `ingress.extraHosts` parameter (if available) can be set with the host names specified as an array. The `ingress.extraTLS` parameter (if available) can also be used to add the TLS configuration for extra hosts. + +> NOTE: For each host specified in the `ingress.extraHosts` parameter, it is necessary to set a name, path, and any annotations that the Ingress controller should know about. Not all annotations are supported by all Ingress controllers, but [this annotation reference document](https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md) lists the annotations supported by many popular Ingress controllers. + +Adding the TLS parameter (where available) will cause the chart to generate HTTPS URLs, and the application will be available on port 443. The actual TLS secrets do not have to be generated by this chart. However, if TLS is enabled, the Ingress record will not work until the TLS secret exists. + +[Learn more about Ingress controllers](https://kubernetes.io/docs/concepts/services-networking/ingress-controllers/). + +### Securing traffic using TLS + +This chart facilitates the creation of TLS secrets for use with the Ingress controller (although this is not mandatory). There are several common use cases: + +- Generate certificate secrets based on chart parameters. +- Enable externally generated certificates. +- Manage application certificates via an external service (like [cert-manager](https://github.com/jetstack/cert-manager/)). +- Create self-signed certificates within the chart (if supported). + +In the first two cases, a certificate and a key are needed. Files are expected in `.pem` format. + +Here is an example of a certificate file: + +> NOTE: There may be more than one certificate if there is a certificate chain. + +```text +-----BEGIN CERTIFICATE----- +MIID6TCCAtGgAwIBAgIJAIaCwivkeB5EMA0GCSqGSIb3DQEBCwUAMFYxCzAJBgNV +... +jScrvkiBO65F46KioCL9h5tDvomdU1aqpI/CBzhvZn1c0ZTf87tGQR8NK7v7 +-----END CERTIFICATE----- +``` + +Here is an example of a certificate key: + +```text +-----BEGIN RSA PRIVATE KEY----- +MIIEogIBAAKCAQEAvLYcyu8f3skuRyUgeeNpeDvYBCDcgq+LsWap6zbX5f8oLqp4 +... +wrj2wDbCDCFmfqnSJ+dKI3vFLlEz44sAV8jX/kd4Y6ZTQhlLbYc= +-----END RSA PRIVATE KEY----- +``` + +- If using Helm to manage the certificates based on the parameters, copy these values into the `certificate` and `key` values for a given `*.ingress.secrets` entry. +- If managing TLS secrets separately, it is necessary to create a TLS secret with name `INGRESS_HOSTNAME-tls` (where INGRESS_HOSTNAME is a placeholder to be replaced with the hostname you set using the `*.ingress.hostname` parameter). +- If your cluster has a [cert-manager](https://github.com/jetstack/cert-manager) add-on to automate the management and issuance of TLS certificates, add to `*.ingress.annotations` the [corresponding ones](https://cert-manager.io/docs/usage/ingress/#supported-annotations) for cert-manager. +- If using self-signed certificates created by Helm, set both `*.ingress.tls` and `*.ingress.selfSigned` to `true`. + +### Adding extra environment variables + +In case you want to add extra environment variables (useful for advanced operations like custom init scripts), you can use the `extraEnvVars` property. + +```yaml +extraEnvVars: + - name: MINIO_LOG_LEVEL + value: DEBUG +``` + +Alternatively, you can use a ConfigMap or a Secret with the environment variables. To do so, use the `extraEnvVarsCM` or the `extraEnvVarsSecret` values. + +### Sidecars and Init Containers + +If you have a need for additional containers to run within the same pod as the MinIO® app (e.g. an additional metrics or logging exporter), you can do so via the `sidecars` config parameter. Simply define your container according to the Kubernetes container spec. + +```yaml +sidecars: + - name: your-image-name + image: your-image + imagePullPolicy: Always + ports: + - name: portname + containerPort: 1234 +``` + +Similarly, you can add extra init containers using the `initContainers` parameter. + +```yaml +initContainers: + - name: your-image-name + image: your-image + imagePullPolicy: Always + ports: + - name: portname + containerPort: 1234 +``` + +### Deploying extra resources + +There are cases where you may want to deploy extra objects, such a ConfigMap containing your app's configuration or some extra deployment with a micro service used by your app. For covering this case, the chart allows adding the full specification of other objects using the `extraDeploy` parameter. + +### 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. + +### Backup and restore + +To back up and restore Helm chart deployments on Kubernetes, you need to back up the persistent volumes from the source deployment and attach them to a new deployment using [Velero](https://velero.io/), a Kubernetes backup/restore tool. Find the instructions for using Velero in [this guide](https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-backup-restore-deployments-velero-index.html). + +## Persistence + +The [Bitnami Object Storage based on MinIO(®)](https://github.com/bitnami/containers/tree/main/bitnami/minio) image stores data at the `/bitnami/minio/data` path of the container by default. +This can be modified with the `persistence.mountPath` value which modifies the `MINIO_DATA_DIR` environment variable of the container. + +The chart mounts a [Persistent Volume](https://kubernetes.io/docs/concepts/storage/persistent-volumes/) at this location so that data within MinIO is persistent. The volume is created using dynamic volume provisioning. + +### Adjust permissions of persistent volume mountpoint + +As the image run as non-root by default, it is necessary to adjust the ownership of the persistent volume so that the container can write data into it. + +By default, the chart is configured to use Kubernetes Security Context to automatically change the ownership of the volume. However, this feature does not work in all Kubernetes distributions. +As an alternative, this chart supports using an initContainer to change the ownership of the volume before mounting it in the final destination. + +You can enable this initContainer by setting `volumePermissions.enabled` to `true`. + +## Parameters + +### Global parameters + +| Name | Description | Value | +| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | +| `global.imageRegistry` | Global Docker image registry | `""` | +| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` | +| `global.defaultStorageClass` | Global default StorageClass for Persistent Volume(s) | `""` | +| `global.storageClass` | DEPRECATED: use global.defaultStorageClass instead | `""` | +| `global.security.allowInsecureImages` | Allows skipping image verification | `false` | +| `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 | +| ------------------- | -------------------------------------------------------------------------------------------- | --------------- | +| `nameOverride` | String to partially override common.names.fullname template (will maintain the release name) | `""` | +| `namespaceOverride` | String to fully override common.names.namespace | `""` | +| `fullnameOverride` | String to fully override common.names.fullname template | `""` | +| `commonLabels` | Labels to add to all deployed objects | `{}` | +| `commonAnnotations` | Annotations to add to all deployed objects | `{}` | +| `kubeVersion` | Force target Kubernetes version (using Helm capabilities if not set) | `""` | +| `clusterDomain` | Default Kubernetes cluster domain | `cluster.local` | +| `extraDeploy` | Array of extra objects to deploy with the release | `[]` | + +### MinIO® parameters + +| Name | Description | Value | +| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ | +| `image.registry` | MinIO® image registry | `REGISTRY_NAME` | +| `image.repository` | MinIO® image repository | `REPOSITORY_NAME/minio` | +| `image.digest` | MinIO® image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` | +| `image.pullPolicy` | Image pull policy | `IfNotPresent` | +| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` | +| `image.debug` | Specify if debug logs should be enabled | `false` | +| `clientImage.registry` | MinIO® Client image registry | `REGISTRY_NAME` | +| `clientImage.repository` | MinIO® Client image repository | `REPOSITORY_NAME/minio-client` | +| `clientImage.digest` | MinIO® Client image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` | +| `mode` | MinIO® server mode (`standalone` or `distributed`) | `standalone` | +| `auth.rootUser` | MinIO® root username | `admin` | +| `auth.rootPassword` | Password for MinIO® root user | `""` | +| `auth.existingSecret` | Use existing secret for credentials details (`auth.rootUser` and `auth.rootPassword` will be ignored and picked up from this secret). | `""` | +| `auth.rootUserSecretKey` | Key where the MINIO_ROOT_USER username is being stored inside the existing secret `auth.existingSecret` | `""` | +| `auth.rootPasswordSecretKey` | Key where the MINIO_ROOT_USER password is being stored inside the existing secret `auth.existingSecret` | `""` | +| `auth.forcePassword` | Force users to specify required passwords | `false` | +| `auth.useCredentialsFiles` | Mount credentials as a files instead of using an environment variable | `false` | +| `auth.useSecret` | Uses a secret to mount the credential files. | `true` | +| `auth.forceNewKeys` | Force root credentials (user and password) to be reconfigured every time they change in the secrets | `false` | +| `defaultBuckets` | Comma, semi-colon or space separated list of buckets to create at initialization (only in standalone mode) | `""` | +| `disableWebUI` | Disable MinIO® Web UI | `false` | +| `tls.enabled` | Enable tls in front of the container | `false` | +| `tls.autoGenerated` | Generate automatically self-signed TLS certificates | `false` | +| `tls.existingSecret` | Name of an existing secret holding the certificate information | `""` | +| `tls.mountPath` | The mount path where the secret will be located | `""` | +| `extraEnvVars` | Extra environment variables to be set on MinIO® container | `[]` | +| `extraEnvVarsCM` | ConfigMap with extra environment variables | `""` | +| `extraEnvVarsSecret` | Secret with extra environment variables | `""` | +| `command` | Default container command (useful when using custom images). Use array form | `[]` | +| `args` | Default container args (useful when using custom images). Use array form | `[]` | + +### MinIO® deployment/statefulset parameters + +| Name | Description | Value | +| ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | +| `schedulerName` | Specifies the schedulerName, if it's nil uses kube-scheduler | `""` | +| `terminationGracePeriodSeconds` | In seconds, time the given to the MinIO pod needs to terminate gracefully | `""` | +| `deployment.updateStrategy.type` | Deployment strategy type | `Recreate` | +| `statefulset.updateStrategy.type` | StatefulSet strategy type | `RollingUpdate` | +| `statefulset.podManagementPolicy` | StatefulSet controller supports relax its ordering guarantees while preserving its uniqueness and identity guarantees. There are two valid pod management policies: OrderedReady and Parallel | `Parallel` | +| `statefulset.replicaCount` | Number of pods per zone (only for MinIO® distributed mode). Should be even and `>= 4` | `4` | +| `statefulset.zones` | Number of zones (only for MinIO® distributed mode) | `1` | +| `statefulset.drivesPerNode` | Number of drives attached to every node (only for MinIO® distributed mode) | `1` | +| `provisioning.enabled` | Enable MinIO® provisioning Job | `false` | +| `provisioning.sleepTime` | Sleep time before checking Minio availability | `5` | +| `provisioning.schedulerName` | Name of the k8s scheduler (other than default) for MinIO® provisioning | `""` | +| `provisioning.nodeSelector` | Node labels for pod assignment. Evaluated as a template. | `{}` | +| `provisioning.podLabels` | Extra labels for provisioning pods | `{}` | +| `provisioning.podAnnotations` | Provisioning Pod annotations. | `{}` | +| `provisioning.command` | Default provisioning container command (useful when using custom images). Use array form | `[]` | +| `provisioning.args` | Default provisioning container args (useful when using custom images). Use array form | `[]` | +| `provisioning.extraCommands` | Optionally specify extra list of additional commands for MinIO® provisioning pod | `[]` | +| `provisioning.extraVolumes` | Optionally specify extra list of additional volumes for MinIO® provisioning pod | `[]` | +| `provisioning.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for MinIO® provisioning container | `[]` | +| `provisioning.resourcesPreset` | Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if provisioning.resources is set (provisioning.resources is recommended for production). | `nano` | +| `provisioning.resources` | Set container requests and limits for different resources like CPU or memory (essential for production workloads) | `{}` | +| `provisioning.policies` | MinIO® policies provisioning | `[]` | +| `provisioning.users` | MinIO® users provisioning. Can be used in addition to provisioning.usersExistingSecrets. | `[]` | +| `provisioning.usersExistingSecrets` | Array if existing secrets containing MinIO® users to be provisioned. Can be used in addition to provisioning.users. | `[]` | +| `provisioning.groups` | MinIO® groups provisioning | `[]` | +| `provisioning.buckets` | MinIO® buckets, versioning, lifecycle, quota and tags provisioning | `[]` | +| `provisioning.config` | MinIO® config provisioning | `[]` | +| `provisioning.podSecurityContext.enabled` | Enable pod Security Context | `true` | +| `provisioning.podSecurityContext.fsGroupChangePolicy` | Set filesystem group change policy | `Always` | +| `provisioning.podSecurityContext.sysctls` | Set kernel settings using the sysctl interface | `[]` | +| `provisioning.podSecurityContext.supplementalGroups` | Set filesystem extra groups | `[]` | +| `provisioning.podSecurityContext.fsGroup` | Group ID for the container | `1001` | +| `provisioning.containerSecurityContext.enabled` | Enabled containers' Security Context | `true` | +| `provisioning.containerSecurityContext.seLinuxOptions` | Set SELinux options in container | `{}` | +| `provisioning.containerSecurityContext.runAsUser` | Set containers' Security Context runAsUser | `1001` | +| `provisioning.containerSecurityContext.runAsGroup` | Set containers' Security Context runAsGroup | `1001` | +| `provisioning.containerSecurityContext.runAsNonRoot` | Set container's Security Context runAsNonRoot | `true` | +| `provisioning.containerSecurityContext.privileged` | Set container's Security Context privileged | `false` | +| `provisioning.containerSecurityContext.readOnlyRootFilesystem` | Set container's Security Context readOnlyRootFilesystem | `true` | +| `provisioning.containerSecurityContext.allowPrivilegeEscalation` | Set container's Security Context allowPrivilegeEscalation | `false` | +| `provisioning.containerSecurityContext.capabilities.drop` | List of capabilities to be dropped | `["ALL"]` | +| `provisioning.containerSecurityContext.seccompProfile.type` | Set container's Security Context seccomp profile | `RuntimeDefault` | +| `provisioning.cleanupAfterFinished.enabled` | Enables Cleanup for Finished Jobs | `false` | +| `provisioning.cleanupAfterFinished.seconds` | Sets the value of ttlSecondsAfterFinished | `600` | +| `provisioning.networkPolicy.enabled` | Enable creation of NetworkPolicy resources | `true` | +| `provisioning.networkPolicy.allowExternalEgress` | Allow the pod to access any range of port and all destinations. | `true` | +| `provisioning.networkPolicy.extraIngress` | Add extra ingress rules to the NetworkPolicy | `[]` | +| `provisioning.networkPolicy.extraEgress` | Add extra ingress rules to the NetworkPolicy | `[]` | +| `automountServiceAccountToken` | Mount Service Account token in pod | `false` | +| `hostAliases` | MinIO® pod host aliases | `[]` | +| `containerPorts.api` | MinIO® container port to open for MinIO® API | `9000` | +| `containerPorts.console` | MinIO® container port to open for MinIO® Console | `9001` | +| `podSecurityContext.enabled` | Enable pod Security Context | `true` | +| `podSecurityContext.sysctls` | Set kernel settings using the sysctl interface | `[]` | +| `podSecurityContext.supplementalGroups` | Set filesystem extra groups | `[]` | +| `podSecurityContext.fsGroup` | Group ID for the container | `1001` | +| `podSecurityContext.fsGroupChangePolicy` | Set filesystem group change policy | `OnRootMismatch` | +| `podSecurityContext.sysctls` | Set kernel settings using the sysctl interface | `[]` | +| `podSecurityContext.supplementalGroups` | Set filesystem extra groups | `[]` | +| `podSecurityContext.fsGroupChangePolicy` | When K8s should preform chown on attached volumes | `OnRootMismatch` | +| `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` | +| `podLabels` | Extra labels for MinIO® pods | `{}` | +| `podAnnotations` | Annotations for MinIO® pods | `{}` | +| `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. Evaluated as a template. | `{}` | +| `nodeSelector` | Node labels for pod assignment. Evaluated as a template. | `{}` | +| `tolerations` | Tolerations for pod assignment. Evaluated as a template. | `[]` | +| `topologySpreadConstraints` | Topology Spread Constraints for MinIO® pods assignment spread across your cluster among failure-domains | `[]` | +| `priorityClassName` | MinIO® pods' priorityClassName | `""` | +| `runtimeClassName` | Name of the runtime class to be used by MinIO® pods' | `""` | +| `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) | `{}` | +| `livenessProbe.enabled` | Enable livenessProbe | `true` | +| `livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `5` | +| `livenessProbe.periodSeconds` | Period seconds for livenessProbe | `5` | +| `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.initialDelaySeconds` | Initial delay seconds for readinessProbe | `5` | +| `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` | +| `startupProbe.enabled` | Enable startupProbe | `false` | +| `startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `0` | +| `startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | +| `startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `5` | +| `startupProbe.failureThreshold` | Failure threshold for startupProbe | `60` | +| `startupProbe.successThreshold` | Success threshold for startupProbe | `1` | +| `customLivenessProbe` | Override default liveness probe | `{}` | +| `customReadinessProbe` | Override default readiness probe | `{}` | +| `customStartupProbe` | Override default startup probe | `{}` | +| `lifecycleHooks` | for the MinIO® container(s) to automate configuration before or after startup | `{}` | +| `extraVolumes` | Optionally specify extra list of additional volumes for MinIO® pods | `[]` | +| `extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for MinIO® container(s) | `[]` | +| `initContainers` | Add additional init containers to the MinIO® pods | `[]` | +| `sidecars` | Add additional sidecar containers to the MinIO® pods | `[]` | + +### Traffic exposure parameters + +| Name | Description | Value | +| --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | +| `service.type` | MinIO® service type | `ClusterIP` | +| `service.ports.api` | MinIO® API service port | `9000` | +| `service.ports.console` | MinIO® Console service port | `9001` | +| `service.nodePorts.api` | Specify the MinIO® API nodePort value for the LoadBalancer and NodePort service types | `""` | +| `service.nodePorts.console` | Specify the MinIO® Console nodePort value for the LoadBalancer and NodePort service types | `""` | +| `service.clusterIP` | Service Cluster IP | `""` | +| `service.loadBalancerIP` | loadBalancerIP if service type is `LoadBalancer` (optional, cloud specific) | `""` | +| `service.loadBalancerSourceRanges` | Addresses that are allowed when service is LoadBalancer | `[]` | +| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` | +| `service.extraPorts` | Extra ports to expose in the service (normally used with the `sidecar` value) | `[]` | +| `service.annotations` | Annotations for MinIO® service | `{}` | +| `service.headless.annotations` | Annotations for the headless service. | `{}` | +| `ingress.enabled` | Enable ingress controller resource for MinIO Console | `false` | +| `ingress.apiVersion` | Force Ingress 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 | `minio.local` | +| `ingress.path` | The Path to MinIO®. You may need to set this to '/*' in order to use this with ALB ingress controllers. | `/` | +| `ingress.pathType` | Ingress path type | `ImplementationSpecific` | +| `ingress.servicePort` | Service port to be used | `minio-console` | +| `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 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 | `[]` | +| `apiIngress.enabled` | Enable ingress controller resource for MinIO API | `false` | +| `apiIngress.apiVersion` | Force Ingress API version (automatically detected if not set) | `""` | +| `apiIngress.ingressClassName` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `""` | +| `apiIngress.hostname` | Default host for the ingress resource | `minio.local` | +| `apiIngress.path` | The Path to MinIO®. You may need to set this to '/*' in order to use this with ALB ingress controllers. | `/` | +| `apiIngress.pathType` | Ingress path type | `ImplementationSpecific` | +| `apiIngress.servicePort` | Service port to be used | `minio-api` | +| `apiIngress.annotations` | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | `{}` | +| `apiIngress.tls` | Enable TLS configuration for the hostname defined at `apiIngress.hostname` parameter | `false` | +| `apiIngress.selfSigned` | Create a TLS secret for this ingress record using self-signed certificates generated by Helm | `false` | +| `apiIngress.extraHosts` | The list of additional hostnames to be covered with this ingress record. | `[]` | +| `apiIngress.extraPaths` | Any additional paths that may need to be added to the ingress under the main host | `[]` | +| `apiIngress.extraTls` | The tls configuration for additional hostnames to be covered with this ingress record. | `[]` | +| `apiIngress.secrets` | If you're providing your own certificates, please use this to add the certificates as secrets | `[]` | +| `apiIngress.extraRules` | Additional rules to be covered with this ingress record | `[]` | +| `networkPolicy.enabled` | Enable creation of NetworkPolicy resources | `true` | +| `networkPolicy.allowExternal` | The Policy model to apply | `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 | `{}` | + +### Persistence parameters + +| Name | Description | Value | +| --------------------------- | -------------------------------------------------------------------------------------- | --------------------- | +| `persistence.enabled` | Enable MinIO® data persistence using PVC. If false, use emptyDir | `true` | +| `persistence.storageClass` | PVC Storage Class for MinIO® data volume | `""` | +| `persistence.mountPath` | Data volume mount path | `/bitnami/minio/data` | +| `persistence.accessModes` | PVC Access Modes for MinIO® data volume | `["ReadWriteOnce"]` | +| `persistence.size` | PVC Storage Request for MinIO® data volume | `8Gi` | +| `persistence.annotations` | Annotations for the PVC | `{}` | +| `persistence.existingClaim` | Name of an existing PVC to use (only in `standalone` mode) | `""` | +| `persistence.selector` | Configure custom selector for existing Persistent Volume. (only in `distributed` mode) | `{}` | + +### Volume Permissions parameters + +| Name | Description | Value | +| ----------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- | +| `volumePermissions.enabled` | Enable init container that changes the owner and group of the persistent volume(s) mountpoint to `runAsUser:fsGroup` | `false` | +| `volumePermissions.image.registry` | Init container volume-permissions image registry | `REGISTRY_NAME` | +| `volumePermissions.image.repository` | Init container volume-permissions image repository | `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) | `{}` | +| `volumePermissions.containerSecurityContext.seLinuxOptions` | Set SELinux options in container | `{}` | +| `volumePermissions.containerSecurityContext.runAsUser` | User ID for the init container | `0` | + +### RBAC parameters + +| Name | Description | Value | +| --------------------------------------------- | ----------------------------------------------------------- | ------- | +| `serviceAccount.create` | Enable the creation of a ServiceAccount for MinIO® pods | `true` | +| `serviceAccount.name` | Name of the created ServiceAccount | `""` | +| `serviceAccount.automountServiceAccountToken` | Enable/disable auto mounting of the service account token | `false` | +| `serviceAccount.annotations` | Custom annotations for MinIO® ServiceAccount | `{}` | + +### Other parameters + +| Name | Description | Value | +| -------------------- | --------------------------------------------------------------------------------- | ------ | +| `pdb.create` | Enable/disable a Pod Disruption Budget creation | `true` | +| `pdb.minAvailable` | Minimum number/percentage of pods that must still be available after the eviction | `""` | +| `pdb.maxUnavailable` | Maximum number/percentage of pods that may be made unavailable after the eviction | `""` | + +### Metrics parameters + +| Name | Description | Value | +| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | +| `metrics.prometheusAuthType` | Authentication mode for Prometheus (`jwt` or `public`) | `public` | +| `metrics.enabled` | Enable the export of Prometheus metrics | `false` | +| `metrics.serviceMonitor.enabled` | If the operator is installed in your cluster, set to true to create a Service Monitor Entry | `false` | +| `metrics.serviceMonitor.namespace` | Namespace which Prometheus is running in | `""` | +| `metrics.serviceMonitor.labels` | Extra labels for the ServiceMonitor | `{}` | +| `metrics.serviceMonitor.jobLabel` | The name of the label on the target service to use as the job name in Prometheus | `""` | +| `metrics.serviceMonitor.paths` | HTTP paths to scrape for metrics | `["/minio/v2/metrics/cluster","/minio/v2/metrics/node"]` | +| `metrics.serviceMonitor.interval` | Interval at which metrics should be scraped | `30s` | +| `metrics.serviceMonitor.scrapeTimeout` | Specify the timeout after which the scrape is ended | `""` | +| `metrics.serviceMonitor.metricRelabelings` | MetricRelabelConfigs to apply to samples before ingestion | `[]` | +| `metrics.serviceMonitor.relabelings` | Metrics relabelings to add to the scrape endpoint, applied before scraping | `[]` | +| `metrics.serviceMonitor.honorLabels` | Specify honorLabels parameter to add the scrape endpoint | `false` | +| `metrics.serviceMonitor.selector` | Prometheus instance selector labels | `{}` | +| `metrics.serviceMonitor.apiVersion` | ApiVersion for the serviceMonitor Resource (defaults to "monitoring.coreos.com/v1") | `""` | +| `metrics.serviceMonitor.tlsConfig` | Additional TLS configuration for metrics endpoint with "https" scheme | `{}` | +| `metrics.prometheusRule.enabled` | Create a Prometheus Operator PrometheusRule (also requires `metrics.enabled` to be `true` and `metrics.prometheusRule.rules`) | `false` | +| `metrics.prometheusRule.namespace` | Namespace for the PrometheusRule Resource (defaults to the Release Namespace) | `""` | +| `metrics.prometheusRule.additionalLabels` | Additional labels that can be used so PrometheusRule will be discovered by Prometheus | `{}` | +| `metrics.prometheusRule.rules` | Prometheus Rule definitions | `[]` | + +Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, + +```console +helm install my-release \ + --set auth.rootUser=minio-admin \ + --set auth.rootPassword=minio-secret-password \ + oci://REGISTRY_NAME/REPOSITORY_NAME/minio +``` + +> 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 MinIO® Server root user and password to `minio-admin` and `minio-secret-password`, respectively. + +Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example, + +```console +helm install my-release -f values.yaml oci://REGISTRY_NAME/REPOSITORY_NAME/minio +``` + +> 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/minio/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 14.9.0 + +This version introduces image verification for security purposes. To disable it, set `global.security.allowInsecureImages` to `true`. More details at [GitHub issue](https://github.com/bitnami/charts/issues/30850). + +### To 14.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 12.0.0 + +This version updates MinIO® to major version 2023. All gateway features have been removed from Minio since upstream completely dropped this feature. The related options have been removed in version 12.1.0. + +### To 11.0.0 + +This version deprecates the usage of `MINIO_ACCESS_KEY` and `MINIO_SECRET_KEY` environment variables in MINIO® container in favor of `MINIO_ROOT_USER` and `MINIO_ROOT_PASSWORD`. + +If you were already using the new variables, no issues are expected during upgrade. + +### To 9.0.0 + +This version updates MinIO® authentication parameters so they're aligned with the [current terminology](https://docs.min.io/minio/baremetal/security/minio-identity-management/user-management.html#minio-users-root). As a result the following parameters have been affected: + +- `accessKey.password` has been renamed to `auth.rootUser`. +- `secretKey.password` has been renamed to `auth.rootPassword`. +- `accessKey.forcePassword` and `secretKey.forcePassword` have been unified into `auth.forcePassword`. +- `existingSecret`, `useCredentialsFile` and `forceNewKeys` have been renamed to `auth.existingSecret`, `auth.useCredentialsFiles` and `forceNewKeys`, respectively. + +### To 8.0.0 + +This version updates MinIO® after some major changes, affecting its Web UI. MinIO® has replaced its MinIO® Browser with the MinIO® Console, and Web UI has been moved to a separated port. As a result the following variables have been affected: + +- `service.port` has been slit into `service.ports.api` (default: 9000) and `service.ports.console` (default: 9001). +- `containerPort` has been slit into `containerPorts.api` (default: 9000) and `containerPort.console` (default: 9001). +- `service.nodePort`has been slit into `service.nodePorts.api` and `service.nodePorts.console`. +- Service port `minio` has been replaced with `minio-api` and `minio-console` with target ports minio-api and minio-console respectively. +- Liveness, readiness and startup probes now use port `minio-console` instead of `minio`. + +Please note that Web UI, previously running on port 9000 will now use port 9001 leaving port 9000 for the MinIO® Server API. + +### To 7.0.0 + +This version introduces pod and container securityContext support. The previous configuration of `securityContext` has moved to `podSecurityContext` and `containerSecurityContext`. Apart from this case, no issues are expected to appear when upgrading. + +### To 5.0.0 + +This version standardizes the way of defining Ingress rules. When configuring a single hostname for the Ingress rule, set the `ingress.hostname` value. When defining more than one, set the `ingress.extraHosts` array. Apart from this case, no issues are expected to appear when upgrading. + +### To 4.1.0 + +This version introduces `bitnami/common`, a [library chart](https://helm.sh/docs/topics/library_charts/#helm) as a dependency. More documentation about this new utility could be found [here](https://github.com/bitnami/charts/tree/main/bitnami/common#bitnami-common-library-chart). Please, make sure that you have updated the chart dependencies before executing any upgrade. + +### To 4.0.0 + +[On November 13, 2020, Helm v2 support was formally finished](https://github.com/helm/charts#status-of-the-project), this major version is the result of the required changes applied to the Helm Chart to be able to incorporate the different features added in Helm v3 and to be consistent with the Helm project itself regarding the Helm v2 EOL. + +#### What changes were introduced in this major version? + +- Previous versions of this Helm Chart use `apiVersion: v1` (installable by both Helm 2 and 3), this Helm Chart was updated to `apiVersion: v2` (installable by Helm 3 only). [Here](https://helm.sh/docs/topics/charts/#the-apiversion-field) you can find more information about the `apiVersion` field. +- The different fields present in the *Chart.yaml* file has been ordered alphabetically in a homogeneous way for all the Bitnami Helm Charts + +#### Considerations when upgrading to this version + +- If you want to upgrade to this version from a previous one installed with Helm v3, you shouldn't face any issues +- If you want to upgrade to this version using Helm v2, this scenario is not supported as this version doesn't support Helm v2 anymore +- If you installed the previous version with Helm v2 and wants to upgrade to this version with Helm v3, please refer to the [official Helm documentation](https://helm.sh/docs/topics/v2_v3_migration/#migration-use-cases) about migrating from Helm v2 to v3 + +#### Useful links + +- +- +- + +## License + +Copyright © 2025 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/charts/thanos/charts/minio/charts/common/.helmignore b/charts/thanos/charts/minio/charts/common/.helmignore new file mode 100644 index 0000000000..d0e10845d2 --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/.helmignore @@ -0,0 +1,26 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +# img folder +img/ +# Changelog +CHANGELOG.md diff --git a/charts/thanos/charts/minio/charts/common/Chart.yaml b/charts/thanos/charts/minio/charts/common/Chart.yaml new file mode 100644 index 0000000000..10fc86a4e8 --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/Chart.yaml @@ -0,0 +1,23 @@ +annotations: + category: Infrastructure + licenses: Apache-2.0 +apiVersion: v2 +appVersion: 2.30.0 +description: A Library Helm Chart for grouping common logic between bitnami charts. + This chart is not deployable by itself. +home: https://bitnami.com +icon: https://dyltqmyl993wv.cloudfront.net/downloads/logos/bitnami-mark.png +keywords: +- common +- helper +- template +- function +- bitnami +maintainers: +- name: Broadcom, Inc. All Rights Reserved. + url: https://github.com/bitnami/charts +name: common +sources: +- https://github.com/bitnami/charts/tree/main/bitnami/common +type: library +version: 2.30.0 diff --git a/charts/thanos/charts/minio/charts/common/README.md b/charts/thanos/charts/minio/charts/common/README.md new file mode 100644 index 0000000000..0e5f649928 --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/README.md @@ -0,0 +1,235 @@ +# Bitnami Common Library Chart + +A [Helm Library Chart](https://helm.sh/docs/topics/library_charts/#helm) for grouping common logic between Bitnami charts. + +## TL;DR + +```yaml +dependencies: + - name: common + version: 2.x.x + repository: oci://registry-1.docker.io/bitnamicharts +``` + +```console +helm dependency update +``` + +```yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "common.names.fullname" . }} +data: + myvalue: "Hello World" +``` + +Looking to use our applications in production? Try [VMware Tanzu Application Catalog](https://bitnami.com/enterprise), the commercial edition of the Bitnami catalog. + +## Introduction + +This chart provides a common template helpers which can be used to develop new charts using [Helm](https://helm.sh) package manager. + +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+ + +## Parameters + +## Special input schemas + +### ImageRoot + +```yaml +registry: + type: string + description: Docker registry where the image is located + example: docker.io + +repository: + type: string + description: Repository and image name + example: bitnami/nginx + +tag: + type: string + description: image tag + example: 1.16.1-debian-10-r63 + +pullPolicy: + type: string + description: Specify a imagePullPolicy.' + +pullSecrets: + type: array + items: + type: string + description: Optionally specify an array of imagePullSecrets (evaluated as templates). + +debug: + type: boolean + description: Set to true if you would like to see extra information on logs + example: false + +## An instance would be: +# registry: docker.io +# repository: bitnami/nginx +# tag: 1.16.1-debian-10-r63 +# pullPolicy: IfNotPresent +# debug: false +``` + +### Persistence + +```yaml +enabled: + type: boolean + description: Whether enable persistence. + example: true + +storageClass: + type: string + description: Ghost data Persistent Volume Storage Class, If set to "-", storageClassName: "" which disables dynamic provisioning. + example: "-" + +accessMode: + type: string + description: Access mode for the Persistent Volume Storage. + example: ReadWriteOnce + +size: + type: string + description: Size the Persistent Volume Storage. + example: 8Gi + +path: + type: string + description: Path to be persisted. + example: /bitnami + +## An instance would be: +# enabled: true +# storageClass: "-" +# accessMode: ReadWriteOnce +# size: 8Gi +# path: /bitnami +``` + +### ExistingSecret + +```yaml +name: + type: string + description: Name of the existing secret. + example: mySecret +keyMapping: + description: Mapping between the expected key name and the name of the key in the existing secret. + type: object + +## An instance would be: +# name: mySecret +# keyMapping: +# password: myPasswordKey +``` + +#### Example of use + +When we store sensitive data for a deployment in a secret, some times we want to give to users the possibility of using theirs existing secrets. + +```yaml +# templates/secret.yaml +--- +apiVersion: v1 +kind: Secret +metadata: + name: {{ include "common.names.fullname" . }} + labels: + app: {{ include "common.names.fullname" . }} +type: Opaque +data: + password: {{ .Values.password | b64enc | quote }} + +# templates/dpl.yaml +--- +... + env: + - name: PASSWORD + valueFrom: + secretKeyRef: + name: {{ include "common.secrets.name" (dict "existingSecret" .Values.existingSecret "context" $) }} + key: {{ include "common.secrets.key" (dict "existingSecret" .Values.existingSecret "key" "password") }} +... + +# values.yaml +--- +name: mySecret +keyMapping: + password: myPasswordKey +``` + +### ValidateValue + +#### NOTES.txt + +```console +{{- $validateValueConf00 := (dict "valueKey" "path.to.value00" "secret" "secretName" "field" "password-00") -}} +{{- $validateValueConf01 := (dict "valueKey" "path.to.value01" "secret" "secretName" "field" "password-01") -}} + +{{ include "common.validations.values.multiple.empty" (dict "required" (list $validateValueConf00 $validateValueConf01) "context" $) }} +``` + +If we force those values to be empty we will see some alerts + +```console +helm install test mychart --set path.to.value00="",path.to.value01="" + 'path.to.value00' must not be empty, please add '--set path.to.value00=$PASSWORD_00' to the command. To get the current value: + + export PASSWORD_00=$(kubectl get secret --namespace default secretName -o jsonpath="{.data.password-00}" | base64 -d) + + 'path.to.value01' must not be empty, please add '--set path.to.value01=$PASSWORD_01' to the command. To get the current value: + + export PASSWORD_01=$(kubectl get secret --namespace default secretName -o jsonpath="{.data.password-01}" | base64 -d) +``` + +## Upgrading + +### To 1.0.0 + +[On November 13, 2020, Helm v2 support was formally finished](https://github.com/helm/charts#status-of-the-project), this major version is the result of the required changes applied to the Helm Chart to be able to incorporate the different features added in Helm v3 and to be consistent with the Helm project itself regarding the Helm v2 EOL. + +#### What changes were introduced in this major version? + +- Previous versions of this Helm Chart use `apiVersion: v1` (installable by both Helm 2 and 3), this Helm Chart was updated to `apiVersion: v2` (installable by Helm 3 only). [Here](https://helm.sh/docs/topics/charts/#the-apiversion-field) you can find more information about the `apiVersion` field. +- Use `type: library`. [Here](https://v3.helm.sh/docs/faq/#library-chart-support) you can find more information. +- The different fields present in the *Chart.yaml* file has been ordered alphabetically in a homogeneous way for all the Bitnami Helm Charts + +#### Considerations when upgrading to this version + +- If you want to upgrade to this version from a previous one installed with Helm v3, you shouldn't face any issues +- If you want to upgrade to this version using Helm v2, this scenario is not supported as this version doesn't support Helm v2 anymore +- If you installed the previous version with Helm v2 and wants to upgrade to this version with Helm v3, please refer to the [official Helm documentation](https://helm.sh/docs/topics/v2_v3_migration/#migration-use-cases) about migrating from Helm v2 to v3 + +#### Useful links + +- +- +- + +## License + +Copyright © 2025 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. diff --git a/charts/thanos/charts/minio/charts/common/templates/_affinities.tpl b/charts/thanos/charts/minio/charts/common/templates/_affinities.tpl new file mode 100644 index 0000000000..d387dbe632 --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/_affinities.tpl @@ -0,0 +1,155 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} + +{{/* +Return a soft nodeAffinity definition +{{ include "common.affinities.nodes.soft" (dict "key" "FOO" "values" (list "BAR" "BAZ")) -}} +*/}} +{{- define "common.affinities.nodes.soft" -}} +preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - key: {{ .key }} + operator: In + values: + {{- range .values }} + - {{ . | quote }} + {{- end }} + weight: 1 +{{- end -}} + +{{/* +Return a hard nodeAffinity definition +{{ include "common.affinities.nodes.hard" (dict "key" "FOO" "values" (list "BAR" "BAZ")) -}} +*/}} +{{- define "common.affinities.nodes.hard" -}} +requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: {{ .key }} + operator: In + values: + {{- range .values }} + - {{ . | quote }} + {{- end }} +{{- end -}} + +{{/* +Return a nodeAffinity definition +{{ include "common.affinities.nodes" (dict "type" "soft" "key" "FOO" "values" (list "BAR" "BAZ")) -}} +*/}} +{{- define "common.affinities.nodes" -}} + {{- if eq .type "soft" }} + {{- include "common.affinities.nodes.soft" . -}} + {{- else if eq .type "hard" }} + {{- include "common.affinities.nodes.hard" . -}} + {{- end -}} +{{- end -}} + +{{/* +Return a topologyKey definition +{{ include "common.affinities.topologyKey" (dict "topologyKey" "BAR") -}} +*/}} +{{- define "common.affinities.topologyKey" -}} +{{ .topologyKey | default "kubernetes.io/hostname" -}} +{{- end -}} + +{{/* +Return a soft podAffinity/podAntiAffinity definition +{{ include "common.affinities.pods.soft" (dict "component" "FOO" "customLabels" .Values.podLabels "extraMatchLabels" .Values.extraMatchLabels "topologyKey" "BAR" "extraPodAffinityTerms" .Values.extraPodAffinityTerms "extraNamespaces" (list "namespace1" "namespace2") "context" $) -}} +*/}} +{{- define "common.affinities.pods.soft" -}} +{{- $component := default "" .component -}} +{{- $customLabels := default (dict) .customLabels -}} +{{- $extraMatchLabels := default (dict) .extraMatchLabels -}} +{{- $extraPodAffinityTerms := default (list) .extraPodAffinityTerms -}} +{{- $extraNamespaces := default (list) .extraNamespaces -}} +preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchLabels: {{- (include "common.labels.matchLabels" ( dict "customLabels" $customLabels "context" .context )) | nindent 10 }} + {{- if not (empty $component) }} + {{ printf "app.kubernetes.io/component: %s" $component }} + {{- end }} + {{- range $key, $value := $extraMatchLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- if $extraNamespaces }} + namespaces: + - {{ .context.Release.Namespace }} + {{- with $extraNamespaces }} + {{ include "common.tplvalues.render" (dict "value" . "context" $) | nindent 8 }} + {{- end }} + {{- end }} + topologyKey: {{ include "common.affinities.topologyKey" (dict "topologyKey" .topologyKey) }} + weight: 1 + {{- range $extraPodAffinityTerms }} + - podAffinityTerm: + labelSelector: + matchLabels: {{- (include "common.labels.matchLabels" ( dict "customLabels" $customLabels "context" $.context )) | nindent 10 }} + {{- if not (empty $component) }} + {{ printf "app.kubernetes.io/component: %s" $component }} + {{- end }} + {{- range $key, $value := .extraMatchLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} + topologyKey: {{ include "common.affinities.topologyKey" (dict "topologyKey" .topologyKey) }} + weight: {{ .weight | default 1 -}} + {{- end -}} +{{- end -}} + +{{/* +Return a hard podAffinity/podAntiAffinity definition +{{ include "common.affinities.pods.hard" (dict "component" "FOO" "customLabels" .Values.podLabels "extraMatchLabels" .Values.extraMatchLabels "topologyKey" "BAR" "extraPodAffinityTerms" .Values.extraPodAffinityTerms "extraNamespaces" (list "namespace1" "namespace2") "context" $) -}} +*/}} +{{- define "common.affinities.pods.hard" -}} +{{- $component := default "" .component -}} +{{- $customLabels := default (dict) .customLabels -}} +{{- $extraMatchLabels := default (dict) .extraMatchLabels -}} +{{- $extraPodAffinityTerms := default (list) .extraPodAffinityTerms -}} +{{- $extraNamespaces := default (list) .extraNamespaces -}} +requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: {{- (include "common.labels.matchLabels" ( dict "customLabels" $customLabels "context" .context )) | nindent 8 }} + {{- if not (empty $component) }} + {{ printf "app.kubernetes.io/component: %s" $component }} + {{- end }} + {{- range $key, $value := $extraMatchLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- if $extraNamespaces }} + namespaces: + - {{ .context.Release.Namespace }} + {{- with $extraNamespaces }} + {{ include "common.tplvalues.render" (dict "value" . "context" $) | nindent 8 }} + {{- end }} + {{- end }} + topologyKey: {{ include "common.affinities.topologyKey" (dict "topologyKey" .topologyKey) }} + {{- range $extraPodAffinityTerms }} + - labelSelector: + matchLabels: {{- (include "common.labels.matchLabels" ( dict "customLabels" $customLabels "context" $.context )) | nindent 8 }} + {{- if not (empty $component) }} + {{ printf "app.kubernetes.io/component: %s" $component }} + {{- end }} + {{- range $key, $value := .extraMatchLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} + topologyKey: {{ include "common.affinities.topologyKey" (dict "topologyKey" .topologyKey) }} + {{- end -}} +{{- end -}} + +{{/* +Return a podAffinity/podAntiAffinity definition +{{ include "common.affinities.pods" (dict "type" "soft" "key" "FOO" "values" (list "BAR" "BAZ")) -}} +*/}} +{{- define "common.affinities.pods" -}} + {{- if eq .type "soft" }} + {{- include "common.affinities.pods.soft" . -}} + {{- else if eq .type "hard" }} + {{- include "common.affinities.pods.hard" . -}} + {{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/_capabilities.tpl b/charts/thanos/charts/minio/charts/common/templates/_capabilities.tpl new file mode 100644 index 0000000000..6423fb1163 --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/_capabilities.tpl @@ -0,0 +1,253 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} + +{{/* +Return the target Kubernetes version +*/}} +{{- define "common.capabilities.kubeVersion" -}} +{{- default (default .Capabilities.KubeVersion.Version .Values.kubeVersion) ((.Values.global).kubeVersion) -}} +{{- end -}} + +{{/* +Return true if the apiVersion is supported +Usage: +{{ include "common.capabilities.apiVersions.has" (dict "version" "batch/v1" "context" $) }} +*/}} +{{- define "common.capabilities.apiVersions.has" -}} +{{- $providedAPIVersions := default .context.Values.apiVersions ((.context.Values.global).apiVersions) -}} +{{- if and (empty $providedAPIVersions) (.context.Capabilities.APIVersions.Has .version) -}} + {{- true -}} +{{- else if has .version $providedAPIVersions -}} + {{- true -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for poddisruptionbudget. +*/}} +{{- define "common.capabilities.policy.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.21-0" $kubeVersion) -}} +{{- print "policy/v1beta1" -}} +{{- else -}} +{{- print "policy/v1" -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for networkpolicy. +*/}} +{{- define "common.capabilities.networkPolicy.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.7-0" $kubeVersion) -}} +{{- print "extensions/v1beta1" -}} +{{- else -}} +{{- print "networking.k8s.io/v1" -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for job. +*/}} +{{- define "common.capabilities.job.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.21-0" $kubeVersion) -}} +{{- print "batch/v1beta1" -}} +{{- else -}} +{{- print "batch/v1" -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for cronjob. +*/}} +{{- define "common.capabilities.cronjob.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.21-0" $kubeVersion) -}} +{{- print "batch/v1beta1" -}} +{{- else -}} +{{- print "batch/v1" -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for daemonset. +*/}} +{{- define "common.capabilities.daemonset.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.14-0" $kubeVersion) -}} +{{- print "extensions/v1beta1" -}} +{{- else -}} +{{- print "apps/v1" -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for deployment. +*/}} +{{- define "common.capabilities.deployment.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.14-0" $kubeVersion) -}} +{{- print "extensions/v1beta1" -}} +{{- else -}} +{{- print "apps/v1" -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for statefulset. +*/}} +{{- define "common.capabilities.statefulset.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.14-0" $kubeVersion) -}} +{{- print "apps/v1beta1" -}} +{{- else -}} +{{- print "apps/v1" -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for ingress. +*/}} +{{- define "common.capabilities.ingress.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if (.Values.ingress).apiVersion -}} +{{- .Values.ingress.apiVersion -}} +{{- else if and (not (empty $kubeVersion)) (semverCompare "<1.14-0" $kubeVersion) -}} +{{- print "extensions/v1beta1" -}} +{{- else if and (not (empty $kubeVersion)) (semverCompare "<1.19-0" $kubeVersion) -}} +{{- print "networking.k8s.io/v1beta1" -}} +{{- else -}} +{{- print "networking.k8s.io/v1" -}} +{{- end }} +{{- end -}} + +{{/* +Return the appropriate apiVersion for RBAC resources. +*/}} +{{- define "common.capabilities.rbac.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.17-0" $kubeVersion) -}} +{{- print "rbac.authorization.k8s.io/v1beta1" -}} +{{- else -}} +{{- print "rbac.authorization.k8s.io/v1" -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for CRDs. +*/}} +{{- define "common.capabilities.crd.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.19-0" $kubeVersion) -}} +{{- print "apiextensions.k8s.io/v1beta1" -}} +{{- else -}} +{{- print "apiextensions.k8s.io/v1" -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for APIService. +*/}} +{{- define "common.capabilities.apiService.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.10-0" $kubeVersion) -}} +{{- print "apiregistration.k8s.io/v1beta1" -}} +{{- else -}} +{{- print "apiregistration.k8s.io/v1" -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for Horizontal Pod Autoscaler. +*/}} +{{- define "common.capabilities.hpa.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" .context -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.23-0" $kubeVersion) -}} +{{- if .beta2 -}} +{{- print "autoscaling/v2beta2" -}} +{{- else -}} +{{- print "autoscaling/v2beta1" -}} +{{- end -}} +{{- else -}} +{{- print "autoscaling/v2" -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for Vertical Pod Autoscaler. +*/}} +{{- define "common.capabilities.vpa.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" .context -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.11-0" $kubeVersion) -}} +{{- print "autoscaling/v1beta1" -}} +{{- else if and (not (empty $kubeVersion)) (semverCompare "<1.25-0" $kubeVersion) -}} +{{- print "autoscaling/v1beta2" -}} +{{- else -}} +{{- print "autoscaling/v1" -}} +{{- end -}} +{{- end -}} + +{{/* +Returns true if PodSecurityPolicy is supported +*/}} +{{- define "common.capabilities.psp.supported" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if or (empty $kubeVersion) (semverCompare "<1.25-0" $kubeVersion) -}} + {{- true -}} +{{- end -}} +{{- end -}} + +{{/* +Returns true if AdmissionConfiguration is supported +*/}} +{{- define "common.capabilities.admissionConfiguration.supported" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if or (empty $kubeVersion) (not (semverCompare "<1.23-0" $kubeVersion)) -}} + {{- true -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for AdmissionConfiguration. +*/}} +{{- define "common.capabilities.admissionConfiguration.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.23-0" $kubeVersion) -}} +{{- print "apiserver.config.k8s.io/v1alpha1" -}} +{{- else if and (not (empty $kubeVersion)) (semverCompare "<1.25-0" $kubeVersion) -}} +{{- print "apiserver.config.k8s.io/v1beta1" -}} +{{- else -}} +{{- print "apiserver.config.k8s.io/v1" -}} +{{- end -}} +{{- end -}} + +{{/* +Return the appropriate apiVersion for PodSecurityConfiguration. +*/}} +{{- define "common.capabilities.podSecurityConfiguration.apiVersion" -}} +{{- $kubeVersion := include "common.capabilities.kubeVersion" . -}} +{{- if and (not (empty $kubeVersion)) (semverCompare "<1.23-0" $kubeVersion) -}} +{{- print "pod-security.admission.config.k8s.io/v1alpha1" -}} +{{- else if and (not (empty $kubeVersion)) (semverCompare "<1.25-0" $kubeVersion) -}} +{{- print "pod-security.admission.config.k8s.io/v1beta1" -}} +{{- else -}} +{{- print "pod-security.admission.config.k8s.io/v1" -}} +{{- end -}} +{{- end -}} + +{{/* +Returns true if the used Helm version is 3.3+. +A way to check the used Helm version was not introduced until version 3.3.0 with .Capabilities.HelmVersion, which contains an additional "{}}" structure. +This check is introduced as a regexMatch instead of {{ if .Capabilities.HelmVersion }} because checking for the key HelmVersion in <3.3 results in a "interface not found" error. +**To be removed when the catalog's minimun Helm version is 3.3** +*/}} +{{- define "common.capabilities.supportsHelmVersion" -}} +{{- if regexMatch "{(v[0-9])*[^}]*}}$" (.Capabilities | toString ) }} + {{- true -}} +{{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/_compatibility.tpl b/charts/thanos/charts/minio/charts/common/templates/_compatibility.tpl new file mode 100644 index 0000000000..19c26dbd5c --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/_compatibility.tpl @@ -0,0 +1,46 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} + +{{/* +Return true if the detected platform is Openshift +Usage: +{{- include "common.compatibility.isOpenshift" . -}} +*/}} +{{- define "common.compatibility.isOpenshift" -}} +{{- if .Capabilities.APIVersions.Has "security.openshift.io/v1" -}} +{{- true -}} +{{- end -}} +{{- end -}} + +{{/* +Render a compatible securityContext depending on the platform. By default it is maintained as it is. In other platforms like Openshift we remove default user/group values that do not work out of the box with the restricted-v1 SCC +Usage: +{{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.containerSecurityContext "context" $) -}} +*/}} +{{- define "common.compatibility.renderSecurityContext" -}} +{{- $adaptedContext := .secContext -}} + +{{- if (((.context.Values.global).compatibility).openshift) -}} + {{- if or (eq .context.Values.global.compatibility.openshift.adaptSecurityContext "force") (and (eq .context.Values.global.compatibility.openshift.adaptSecurityContext "auto") (include "common.compatibility.isOpenshift" .context)) -}} + {{/* Remove incompatible user/group values that do not work in Openshift out of the box */}} + {{- $adaptedContext = omit $adaptedContext "fsGroup" "runAsUser" "runAsGroup" -}} + {{- if not .secContext.seLinuxOptions -}} + {{/* If it is an empty object, we remove it from the resulting context because it causes validation issues */}} + {{- $adaptedContext = omit $adaptedContext "seLinuxOptions" -}} + {{- end -}} + {{- end -}} +{{- end -}} +{{/* Remove empty seLinuxOptions object if global.compatibility.omitEmptySeLinuxOptions is set to true */}} +{{- if and (((.context.Values.global).compatibility).omitEmptySeLinuxOptions) (not .secContext.seLinuxOptions) -}} + {{- $adaptedContext = omit $adaptedContext "seLinuxOptions" -}} +{{- end -}} +{{/* Remove fields that are disregarded when running the container in privileged mode */}} +{{- if $adaptedContext.privileged -}} + {{- $adaptedContext = omit $adaptedContext "capabilities" -}} +{{- end -}} +{{- omit $adaptedContext "enabled" | toYaml -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/_errors.tpl b/charts/thanos/charts/minio/charts/common/templates/_errors.tpl new file mode 100644 index 0000000000..93f3ffc9be --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/_errors.tpl @@ -0,0 +1,85 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} +{{/* +Throw error when upgrading using empty passwords values that must not be empty. + +Usage: +{{- $validationError00 := include "common.validations.values.single.empty" (dict "valueKey" "path.to.password00" "secret" "secretName" "field" "password-00") -}} +{{- $validationError01 := include "common.validations.values.single.empty" (dict "valueKey" "path.to.password01" "secret" "secretName" "field" "password-01") -}} +{{ include "common.errors.upgrade.passwords.empty" (dict "validationErrors" (list $validationError00 $validationError01) "context" $) }} + +Required password params: + - validationErrors - String - Required. List of validation strings to be return, if it is empty it won't throw error. + - context - Context - Required. Parent context. +*/}} +{{- define "common.errors.upgrade.passwords.empty" -}} + {{- $validationErrors := join "" .validationErrors -}} + {{- if and $validationErrors .context.Release.IsUpgrade -}} + {{- $errorString := "\nPASSWORDS ERROR: You must provide your current passwords when upgrading the release." -}} + {{- $errorString = print $errorString "\n Note that even after reinstallation, old credentials may be needed as they may be kept in persistent volume claims." -}} + {{- $errorString = print $errorString "\n Further information can be obtained at https://docs.bitnami.com/general/how-to/troubleshoot-helm-chart-issues/#credential-errors-while-upgrading-chart-releases" -}} + {{- $errorString = print $errorString "\n%s" -}} + {{- printf $errorString $validationErrors | fail -}} + {{- end -}} +{{- end -}} + +{{/* +Throw error when original container images are replaced. +The error can be bypassed by setting the "global.security.allowInsecureImages" to true. In this case, +a warning message will be shown instead. + +Usage: +{{ include "common.errors.insecureImages" (dict "images" (list .Values.path.to.the.imageRoot) "context" $) }} +*/}} +{{- define "common.errors.insecureImages" -}} +{{- $relocatedImages := list -}} +{{- $replacedImages := list -}} +{{- $retaggedImages := list -}} +{{- $globalRegistry := ((.context.Values.global).imageRegistry) -}} +{{- $originalImages := .context.Chart.Annotations.images -}} +{{- range .images -}} + {{- $registryName := default .registry $globalRegistry -}} + {{- $fullImageNameNoTag := printf "%s/%s" $registryName .repository -}} + {{- $fullImageName := printf "%s:%s" $fullImageNameNoTag .tag -}} + {{- if not (contains $fullImageNameNoTag $originalImages) -}} + {{- if not (contains $registryName $originalImages) -}} + {{- $relocatedImages = append $relocatedImages $fullImageName -}} + {{- else if not (contains .repository $originalImages) -}} + {{- $replacedImages = append $replacedImages $fullImageName -}} + {{- end -}} + {{- end -}} + {{- if not (contains (printf "%s:%s" .repository .tag) $originalImages) -}} + {{- $retaggedImages = append $retaggedImages $fullImageName -}} + {{- end -}} +{{- end -}} + +{{- if and (or (gt (len $relocatedImages) 0) (gt (len $replacedImages) 0)) (((.context.Values.global).security).allowInsecureImages) -}} + {{- print "\n\nâš  SECURITY WARNING: Verifying original container images was skipped. Please note this Helm chart was designed, tested, and validated on multiple platforms using a specific set of Bitnami and Tanzu Application Catalog containers. Substituting other containers is likely to cause degraded security and performance, broken chart features, and missing environment variables.\n" -}} +{{- else if (or (gt (len $relocatedImages) 0) (gt (len $replacedImages) 0)) -}} + {{- $errorString := "Original containers have been substituted for unrecognized ones. Deploying this chart with non-standard containers is likely to cause degraded security and performance, broken chart features, and missing environment variables." -}} + {{- $errorString = print $errorString "\n\nUnrecognized images:" -}} + {{- range (concat $relocatedImages $replacedImages) -}} + {{- $errorString = print $errorString "\n - " . -}} + {{- end -}} + {{- if or (contains "docker.io/bitnami/" $originalImages) (contains "docker.io/bitnamiprem/" $originalImages) -}} + {{- $errorString = print "\n\nâš  ERROR: " $errorString -}} + {{- $errorString = print $errorString "\n\nIf you are sure you want to proceed with non-standard containers, you can skip container image verification by setting the global parameter 'global.security.allowInsecureImages' to true." -}} + {{- $errorString = print $errorString "\nFurther information can be obtained at https://github.com/bitnami/charts/issues/30850" -}} + {{- print $errorString | fail -}} + {{- else if gt (len $replacedImages) 0 -}} + {{- $errorString = print "\n\nâš  WARNING: " $errorString -}} + {{- print $errorString -}} + {{- end -}} +{{- else if gt (len $retaggedImages) 0 -}} + {{- $warnString := "\n\nâš  WARNING: Original containers have been retagged. Please note this Helm chart was tested, and validated on multiple platforms using a specific set of Tanzu Application Catalog containers. Substituting original image tags could cause unexpected behavior." -}} + {{- $warnString = print $warnString "\n\nRetagged images:" -}} + {{- range $retaggedImages -}} + {{- $warnString = print $warnString "\n - " . -}} + {{- end -}} + {{- print $warnString -}} +{{- end -}} +{{- end -}} \ No newline at end of file diff --git a/charts/thanos/charts/minio/charts/common/templates/_images.tpl b/charts/thanos/charts/minio/charts/common/templates/_images.tpl new file mode 100644 index 0000000000..76bb7ce447 --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/_images.tpl @@ -0,0 +1,115 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} +{{/* +Return the proper image name. +If image tag and digest are not defined, termination fallbacks to chart appVersion. +{{ include "common.images.image" ( dict "imageRoot" .Values.path.to.the.image "global" .Values.global "chart" .Chart ) }} +*/}} +{{- define "common.images.image" -}} +{{- $registryName := default .imageRoot.registry ((.global).imageRegistry) -}} +{{- $repositoryName := .imageRoot.repository -}} +{{- $separator := ":" -}} +{{- $termination := .imageRoot.tag | toString -}} + +{{- if not .imageRoot.tag }} + {{- if .chart }} + {{- $termination = .chart.AppVersion | toString -}} + {{- end -}} +{{- end -}} +{{- if .imageRoot.digest }} + {{- $separator = "@" -}} + {{- $termination = .imageRoot.digest | toString -}} +{{- end -}} +{{- if $registryName }} + {{- printf "%s/%s%s%s" $registryName $repositoryName $separator $termination -}} +{{- else -}} + {{- printf "%s%s%s" $repositoryName $separator $termination -}} +{{- end -}} +{{- end -}} + +{{/* +Return the proper Docker Image Registry Secret Names (deprecated: use common.images.renderPullSecrets instead) +{{ include "common.images.pullSecrets" ( dict "images" (list .Values.path.to.the.image1, .Values.path.to.the.image2) "global" .Values.global) }} +*/}} +{{- define "common.images.pullSecrets" -}} + {{- $pullSecrets := list }} + + {{- range ((.global).imagePullSecrets) -}} + {{- if kindIs "map" . -}} + {{- $pullSecrets = append $pullSecrets .name -}} + {{- else -}} + {{- $pullSecrets = append $pullSecrets . -}} + {{- end }} + {{- end -}} + + {{- range .images -}} + {{- range .pullSecrets -}} + {{- if kindIs "map" . -}} + {{- $pullSecrets = append $pullSecrets .name -}} + {{- else -}} + {{- $pullSecrets = append $pullSecrets . -}} + {{- end -}} + {{- end -}} + {{- end -}} + + {{- if (not (empty $pullSecrets)) -}} +imagePullSecrets: + {{- range $pullSecrets | uniq }} + - name: {{ . }} + {{- end }} + {{- end }} +{{- end -}} + +{{/* +Return the proper Docker Image Registry Secret Names evaluating values as templates +{{ include "common.images.renderPullSecrets" ( dict "images" (list .Values.path.to.the.image1, .Values.path.to.the.image2) "context" $) }} +*/}} +{{- define "common.images.renderPullSecrets" -}} + {{- $pullSecrets := list }} + {{- $context := .context }} + + {{- range (($context.Values.global).imagePullSecrets) -}} + {{- if kindIs "map" . -}} + {{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" $context)) -}} + {{- else -}} + {{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" $context)) -}} + {{- end -}} + {{- end -}} + + {{- range .images -}} + {{- range .pullSecrets -}} + {{- if kindIs "map" . -}} + {{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" .name "context" $context)) -}} + {{- else -}} + {{- $pullSecrets = append $pullSecrets (include "common.tplvalues.render" (dict "value" . "context" $context)) -}} + {{- end -}} + {{- end -}} + {{- end -}} + + {{- if (not (empty $pullSecrets)) -}} +imagePullSecrets: + {{- range $pullSecrets | uniq }} + - name: {{ . }} + {{- end }} + {{- end }} +{{- end -}} + +{{/* +Return the proper image version (ingores image revision/prerelease info & fallbacks to chart appVersion) +{{ include "common.images.version" ( dict "imageRoot" .Values.path.to.the.image "chart" .Chart ) }} +*/}} +{{- define "common.images.version" -}} +{{- $imageTag := .imageRoot.tag | toString -}} +{{/* regexp from https://github.com/Masterminds/semver/blob/23f51de38a0866c5ef0bfc42b3f735c73107b700/version.go#L41-L44 */}} +{{- if regexMatch `^([0-9]+)(\.[0-9]+)?(\.[0-9]+)?(-([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?(\+([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?$` $imageTag -}} + {{- $version := semver $imageTag -}} + {{- printf "%d.%d.%d" $version.Major $version.Minor $version.Patch -}} +{{- else -}} + {{- print .chart.AppVersion -}} +{{- end -}} +{{- end -}} + diff --git a/charts/thanos/charts/minio/charts/common/templates/_ingress.tpl b/charts/thanos/charts/minio/charts/common/templates/_ingress.tpl new file mode 100644 index 0000000000..7d2b87985c --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/_ingress.tpl @@ -0,0 +1,73 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} + +{{/* +Generate backend entry that is compatible with all Kubernetes API versions. + +Usage: +{{ include "common.ingress.backend" (dict "serviceName" "backendName" "servicePort" "backendPort" "context" $) }} + +Params: + - serviceName - String. Name of an existing service backend + - servicePort - String/Int. Port name (or number) of the service. It will be translated to different yaml depending if it is a string or an integer. + - context - Dict - Required. The context for the template evaluation. +*/}} +{{- define "common.ingress.backend" -}} +{{- $apiVersion := (include "common.capabilities.ingress.apiVersion" .context) -}} +{{- if or (eq $apiVersion "extensions/v1beta1") (eq $apiVersion "networking.k8s.io/v1beta1") -}} +serviceName: {{ .serviceName }} +servicePort: {{ .servicePort }} +{{- else -}} +service: + name: {{ .serviceName }} + port: + {{- if typeIs "string" .servicePort }} + name: {{ .servicePort }} + {{- else if or (typeIs "int" .servicePort) (typeIs "float64" .servicePort) }} + number: {{ .servicePort | int }} + {{- end }} +{{- end -}} +{{- end -}} + +{{/* +Print "true" if the API pathType field is supported +Usage: +{{ include "common.ingress.supportsPathType" . }} +*/}} +{{- define "common.ingress.supportsPathType" -}} +{{- if (semverCompare "<1.18-0" (include "common.capabilities.kubeVersion" .)) -}} +{{- print "false" -}} +{{- else -}} +{{- print "true" -}} +{{- end -}} +{{- end -}} + +{{/* +Returns true if the ingressClassname field is supported +Usage: +{{ include "common.ingress.supportsIngressClassname" . }} +*/}} +{{- define "common.ingress.supportsIngressClassname" -}} +{{- if semverCompare "<1.18-0" (include "common.capabilities.kubeVersion" .) -}} +{{- print "false" -}} +{{- else -}} +{{- print "true" -}} +{{- end -}} +{{- end -}} + +{{/* +Return true if cert-manager required annotations for TLS signed +certificates are set in the Ingress annotations +Ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations +Usage: +{{ include "common.ingress.certManagerRequest" ( dict "annotations" .Values.path.to.the.ingress.annotations ) }} +*/}} +{{- define "common.ingress.certManagerRequest" -}} +{{ if or (hasKey .annotations "cert-manager.io/cluster-issuer") (hasKey .annotations "cert-manager.io/issuer") (hasKey .annotations "kubernetes.io/tls-acme") }} + {{- true -}} +{{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/_labels.tpl b/charts/thanos/charts/minio/charts/common/templates/_labels.tpl new file mode 100644 index 0000000000..0a0cc5488f --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/_labels.tpl @@ -0,0 +1,46 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} + +{{/* +Kubernetes standard labels +{{ include "common.labels.standard" (dict "customLabels" .Values.commonLabels "context" $) -}} +*/}} +{{- define "common.labels.standard" -}} +{{- if and (hasKey . "customLabels") (hasKey . "context") -}} +{{- $default := dict "app.kubernetes.io/name" (include "common.names.name" .context) "helm.sh/chart" (include "common.names.chart" .context) "app.kubernetes.io/instance" .context.Release.Name "app.kubernetes.io/managed-by" .context.Release.Service -}} +{{- with .context.Chart.AppVersion -}} +{{- $_ := set $default "app.kubernetes.io/version" . -}} +{{- end -}} +{{ template "common.tplvalues.merge" (dict "values" (list .customLabels $default) "context" .context) }} +{{- else -}} +app.kubernetes.io/name: {{ include "common.names.name" . }} +helm.sh/chart: {{ include "common.names.chart" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- with .Chart.AppVersion }} +app.kubernetes.io/version: {{ . | quote }} +{{- end -}} +{{- end -}} +{{- end -}} + +{{/* +Labels used on immutable fields such as deploy.spec.selector.matchLabels or svc.spec.selector +{{ include "common.labels.matchLabels" (dict "customLabels" .Values.podLabels "context" $) -}} + +We don't want to loop over custom labels appending them to the selector +since it's very likely that it will break deployments, services, etc. +However, it's important to overwrite the standard labels if the user +overwrote them on metadata.labels fields. +*/}} +{{- define "common.labels.matchLabels" -}} +{{- if and (hasKey . "customLabels") (hasKey . "context") -}} +{{ merge (pick (include "common.tplvalues.render" (dict "value" .customLabels "context" .context) | fromYaml) "app.kubernetes.io/name" "app.kubernetes.io/instance") (dict "app.kubernetes.io/name" (include "common.names.name" .context) "app.kubernetes.io/instance" .context.Release.Name ) | toYaml }} +{{- else -}} +app.kubernetes.io/name: {{ include "common.names.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/_names.tpl b/charts/thanos/charts/minio/charts/common/templates/_names.tpl new file mode 100644 index 0000000000..ba83956852 --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/_names.tpl @@ -0,0 +1,71 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} +{{/* +Expand the name of the chart. +*/}} +{{- define "common.names.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "common.names.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "common.names.fullname" -}} +{{- if .Values.fullnameOverride -}} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} +{{- end -}} + +{{/* +Create a default fully qualified dependency name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +Usage: +{{ include "common.names.dependency.fullname" (dict "chartName" "dependency-chart-name" "chartValues" .Values.dependency-chart "context" $) }} +*/}} +{{- define "common.names.dependency.fullname" -}} +{{- if .chartValues.fullnameOverride -}} +{{- .chartValues.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- $name := default .chartName .chartValues.nameOverride -}} +{{- if contains $name .context.Release.Name -}} +{{- .context.Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .context.Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} +{{- end -}} + +{{/* +Allow the release namespace to be overridden for multi-namespace deployments in combined charts. +*/}} +{{- define "common.names.namespace" -}} +{{- default .Release.Namespace .Values.namespaceOverride | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Create a fully qualified app name adding the installation's namespace. +*/}} +{{- define "common.names.fullname.namespace" -}} +{{- printf "%s-%s" (include "common.names.fullname" .) (include "common.names.namespace" .) | trunc 63 | trimSuffix "-" -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/_resources.tpl b/charts/thanos/charts/minio/charts/common/templates/_resources.tpl new file mode 100644 index 0000000000..d8a43e1c2d --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/_resources.tpl @@ -0,0 +1,50 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} + +{{/* +Return a resource request/limit object based on a given preset. +These presets are for basic testing and not meant to be used in production +{{ include "common.resources.preset" (dict "type" "nano") -}} +*/}} +{{- define "common.resources.preset" -}} +{{/* The limits are the requests increased by 50% (except ephemeral-storage and xlarge/2xlarge sizes)*/}} +{{- $presets := dict + "nano" (dict + "requests" (dict "cpu" "100m" "memory" "128Mi" "ephemeral-storage" "50Mi") + "limits" (dict "cpu" "150m" "memory" "192Mi" "ephemeral-storage" "2Gi") + ) + "micro" (dict + "requests" (dict "cpu" "250m" "memory" "256Mi" "ephemeral-storage" "50Mi") + "limits" (dict "cpu" "375m" "memory" "384Mi" "ephemeral-storage" "2Gi") + ) + "small" (dict + "requests" (dict "cpu" "500m" "memory" "512Mi" "ephemeral-storage" "50Mi") + "limits" (dict "cpu" "750m" "memory" "768Mi" "ephemeral-storage" "2Gi") + ) + "medium" (dict + "requests" (dict "cpu" "500m" "memory" "1024Mi" "ephemeral-storage" "50Mi") + "limits" (dict "cpu" "750m" "memory" "1536Mi" "ephemeral-storage" "2Gi") + ) + "large" (dict + "requests" (dict "cpu" "1.0" "memory" "2048Mi" "ephemeral-storage" "50Mi") + "limits" (dict "cpu" "1.5" "memory" "3072Mi" "ephemeral-storage" "2Gi") + ) + "xlarge" (dict + "requests" (dict "cpu" "1.0" "memory" "3072Mi" "ephemeral-storage" "50Mi") + "limits" (dict "cpu" "3.0" "memory" "6144Mi" "ephemeral-storage" "2Gi") + ) + "2xlarge" (dict + "requests" (dict "cpu" "1.0" "memory" "3072Mi" "ephemeral-storage" "50Mi") + "limits" (dict "cpu" "6.0" "memory" "12288Mi" "ephemeral-storage" "2Gi") + ) + }} +{{- if hasKey $presets .type -}} +{{- index $presets .type | toYaml -}} +{{- else -}} +{{- printf "ERROR: Preset key '%s' invalid. Allowed values are %s" .type (join "," (keys $presets)) | fail -}} +{{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/_secrets.tpl b/charts/thanos/charts/minio/charts/common/templates/_secrets.tpl new file mode 100644 index 0000000000..bfef46978d --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/_secrets.tpl @@ -0,0 +1,192 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} +{{/* +Generate secret name. + +Usage: +{{ include "common.secrets.name" (dict "existingSecret" .Values.path.to.the.existingSecret "defaultNameSuffix" "mySuffix" "context" $) }} + +Params: + - existingSecret - ExistingSecret/String - Optional. The path to the existing secrets in the values.yaml given by the user + to be used instead of the default one. Allows for it to be of type String (just the secret name) for backwards compatibility. + +info: https://github.com/bitnami/charts/tree/main/bitnami/common#existingsecret + - defaultNameSuffix - String - Optional. It is used only if we have several secrets in the same deployment. + - context - Dict - Required. The context for the template evaluation. +*/}} +{{- define "common.secrets.name" -}} +{{- $name := (include "common.names.fullname" .context) -}} + +{{- if .defaultNameSuffix -}} +{{- $name = printf "%s-%s" $name .defaultNameSuffix | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{- with .existingSecret -}} +{{- if not (typeIs "string" .) -}} +{{- with .name -}} +{{- $name = . -}} +{{- end -}} +{{- else -}} +{{- $name = . -}} +{{- end -}} +{{- end -}} + +{{- printf "%s" $name -}} +{{- end -}} + +{{/* +Generate secret key. + +Usage: +{{ include "common.secrets.key" (dict "existingSecret" .Values.path.to.the.existingSecret "key" "keyName") }} + +Params: + - existingSecret - ExistingSecret/String - Optional. The path to the existing secrets in the values.yaml given by the user + to be used instead of the default one. Allows for it to be of type String (just the secret name) for backwards compatibility. + +info: https://github.com/bitnami/charts/tree/main/bitnami/common#existingsecret + - key - String - Required. Name of the key in the secret. +*/}} +{{- define "common.secrets.key" -}} +{{- $key := .key -}} + +{{- if .existingSecret -}} + {{- if not (typeIs "string" .existingSecret) -}} + {{- if .existingSecret.keyMapping -}} + {{- $key = index .existingSecret.keyMapping $.key -}} + {{- end -}} + {{- end }} +{{- end -}} + +{{- printf "%s" $key -}} +{{- end -}} + +{{/* +Generate secret password or retrieve one if already created. + +Usage: +{{ include "common.secrets.passwords.manage" (dict "secret" "secret-name" "key" "keyName" "providedValues" (list "path.to.password1" "path.to.password2") "length" 10 "strong" false "chartName" "chartName" "honorProvidedValues" false "context" $) }} + +Params: + - secret - String - Required - Name of the 'Secret' resource where the password is stored. + - key - String - Required - Name of the key in the secret. + - providedValues - List - Required - The path to the validating value in the values.yaml, e.g: "mysql.password". Will pick first parameter with a defined value. + - length - int - Optional - Length of the generated random password. + - strong - Boolean - Optional - Whether to add symbols to the generated random password. + - chartName - String - Optional - Name of the chart used when said chart is deployed as a subchart. + - context - Context - Required - Parent context. + - failOnNew - Boolean - Optional - Default to true. If set to false, skip errors adding new keys to existing secrets. + - skipB64enc - Boolean - Optional - Default to false. If set to true, no the secret will not be base64 encrypted. + - skipQuote - Boolean - Optional - Default to false. If set to true, no quotes will be added around the secret. + - honorProvidedValues - Boolean - Optional - Default to false. If set to true, the values in providedValues have higher priority than an existing secret +The order in which this function returns a secret password: + 1. Password provided via the values.yaml if honorProvidedValues = true + (If one of the keys passed to the 'providedValues' parameter to this function is a valid path to a key in the values.yaml and has a value, the value of the first key with a value will be returned) + 2. Already existing 'Secret' resource + (If a 'Secret' resource is found under the name provided to the 'secret' parameter to this function and that 'Secret' resource contains a key with the name passed as the 'key' parameter to this function then the value of this existing secret password will be returned) + 3. Password provided via the values.yaml if honorProvidedValues = false + (If one of the keys passed to the 'providedValues' parameter to this function is a valid path to a key in the values.yaml and has a value, the value of the first key with a value will be returned) + 4. Randomly generated secret password + (A new random secret password with the length specified in the 'length' parameter will be generated and returned) + +*/}} +{{- define "common.secrets.passwords.manage" -}} + +{{- $password := "" }} +{{- $subchart := "" }} +{{- $chartName := default "" .chartName }} +{{- $passwordLength := default 10 .length }} +{{- $providedPasswordKey := include "common.utils.getKeyFromList" (dict "keys" .providedValues "context" $.context) }} +{{- $providedPasswordValue := include "common.utils.getValueFromKey" (dict "key" $providedPasswordKey "context" $.context) }} +{{- $secretData := (lookup "v1" "Secret" (include "common.names.namespace" .context) .secret).data }} +{{- if $secretData }} + {{- if hasKey $secretData .key }} + {{- $password = index $secretData .key | b64dec }} + {{- else if not (eq .failOnNew false) }} + {{- printf "\nPASSWORDS ERROR: The secret \"%s\" does not contain the key \"%s\"\n" .secret .key | fail -}} + {{- end -}} +{{- end }} + +{{- if and $providedPasswordValue .honorProvidedValues }} + {{- $password = $providedPasswordValue | toString }} +{{- end }} + +{{- if not $password }} + {{- if $providedPasswordValue }} + {{- $password = $providedPasswordValue | toString }} + {{- else }} + {{- if .context.Values.enabled }} + {{- $subchart = $chartName }} + {{- end -}} + + {{- if not (eq .failOnNew false) }} + {{- $requiredPassword := dict "valueKey" $providedPasswordKey "secret" .secret "field" .key "subchart" $subchart "context" $.context -}} + {{- $requiredPasswordError := include "common.validations.values.single.empty" $requiredPassword -}} + {{- $passwordValidationErrors := list $requiredPasswordError -}} + {{- include "common.errors.upgrade.passwords.empty" (dict "validationErrors" $passwordValidationErrors "context" $.context) -}} + {{- end }} + + {{- if .strong }} + {{- $subStr := list (lower (randAlpha 1)) (randNumeric 1) (upper (randAlpha 1)) | join "_" }} + {{- $password = randAscii $passwordLength }} + {{- $password = regexReplaceAllLiteral "\\W" $password "@" | substr 5 $passwordLength }} + {{- $password = printf "%s%s" $subStr $password | toString | shuffle }} + {{- else }} + {{- $password = randAlphaNum $passwordLength }} + {{- end }} + {{- end -}} +{{- end -}} +{{- if not .skipB64enc }} +{{- $password = $password | b64enc }} +{{- end -}} +{{- if .skipQuote -}} +{{- printf "%s" $password -}} +{{- else -}} +{{- printf "%s" $password | quote -}} +{{- end -}} +{{- end -}} + +{{/* +Reuses the value from an existing secret, otherwise sets its value to a default value. + +Usage: +{{ include "common.secrets.lookup" (dict "secret" "secret-name" "key" "keyName" "defaultValue" .Values.myValue "context" $) }} + +Params: + - secret - String - Required - Name of the 'Secret' resource where the password is stored. + - key - String - Required - Name of the key in the secret. + - defaultValue - String - Required - The path to the validating value in the values.yaml, e.g: "mysql.password". Will pick first parameter with a defined value. + - context - Context - Required - Parent context. + +*/}} +{{- define "common.secrets.lookup" -}} +{{- $value := "" -}} +{{- $secretData := (lookup "v1" "Secret" (include "common.names.namespace" .context) .secret).data -}} +{{- if and $secretData (hasKey $secretData .key) -}} + {{- $value = index $secretData .key -}} +{{- else if .defaultValue -}} + {{- $value = .defaultValue | toString | b64enc -}} +{{- end -}} +{{- if $value -}} +{{- printf "%s" $value -}} +{{- end -}} +{{- end -}} + +{{/* +Returns whether a previous generated secret already exists + +Usage: +{{ include "common.secrets.exists" (dict "secret" "secret-name" "context" $) }} + +Params: + - secret - String - Required - Name of the 'Secret' resource where the password is stored. + - context - Context - Required - Parent context. +*/}} +{{- define "common.secrets.exists" -}} +{{- $secret := (lookup "v1" "Secret" (include "common.names.namespace" .context) .secret) }} +{{- if $secret }} + {{- true -}} +{{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/_storage.tpl b/charts/thanos/charts/minio/charts/common/templates/_storage.tpl new file mode 100644 index 0000000000..aa75856c07 --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/_storage.tpl @@ -0,0 +1,21 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} + +{{/* +Return the proper Storage Class +{{ include "common.storage.class" ( dict "persistence" .Values.path.to.the.persistence "global" $) }} +*/}} +{{- define "common.storage.class" -}} +{{- $storageClass := (.global).storageClass | default .persistence.storageClass | default (.global).defaultStorageClass | default "" -}} +{{- if $storageClass -}} + {{- if (eq "-" $storageClass) -}} + {{- printf "storageClassName: \"\"" -}} + {{- else -}} + {{- printf "storageClassName: %s" $storageClass -}} + {{- end -}} +{{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/_tplvalues.tpl b/charts/thanos/charts/minio/charts/common/templates/_tplvalues.tpl new file mode 100644 index 0000000000..a04f4c1eb3 --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/_tplvalues.tpl @@ -0,0 +1,52 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} +{{/* +Renders a value that contains template perhaps with scope if the scope is present. +Usage: +{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $ ) }} +{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $ "scope" $app ) }} +*/}} +{{- define "common.tplvalues.render" -}} +{{- $value := typeIs "string" .value | ternary .value (.value | toYaml) }} +{{- if contains "{{" (toJson .value) }} + {{- if .scope }} + {{- tpl (cat "{{- with $.RelativeScope -}}" $value "{{- end }}") (merge (dict "RelativeScope" .scope) .context) }} + {{- else }} + {{- tpl $value .context }} + {{- end }} +{{- else }} + {{- $value }} +{{- end }} +{{- end -}} + +{{/* +Merge a list of values that contains template after rendering them. +Merge precedence is consistent with http://masterminds.github.io/sprig/dicts.html#merge-mustmerge +Usage: +{{ include "common.tplvalues.merge" ( dict "values" (list .Values.path.to.the.Value1 .Values.path.to.the.Value2) "context" $ ) }} +*/}} +{{- define "common.tplvalues.merge" -}} +{{- $dst := dict -}} +{{- range .values -}} +{{- $dst = include "common.tplvalues.render" (dict "value" . "context" $.context "scope" $.scope) | fromYaml | merge $dst -}} +{{- end -}} +{{ $dst | toYaml }} +{{- end -}} + +{{/* +Merge a list of values that contains template after rendering them. +Merge precedence is consistent with https://masterminds.github.io/sprig/dicts.html#mergeoverwrite-mustmergeoverwrite +Usage: +{{ include "common.tplvalues.merge-overwrite" ( dict "values" (list .Values.path.to.the.Value1 .Values.path.to.the.Value2) "context" $ ) }} +*/}} +{{- define "common.tplvalues.merge-overwrite" -}} +{{- $dst := dict -}} +{{- range .values -}} +{{- $dst = include "common.tplvalues.render" (dict "value" . "context" $.context "scope" $.scope) | fromYaml | mergeOverwrite $dst -}} +{{- end -}} +{{ $dst | toYaml }} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/_utils.tpl b/charts/thanos/charts/minio/charts/common/templates/_utils.tpl new file mode 100644 index 0000000000..d53c74aa2e --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/_utils.tpl @@ -0,0 +1,77 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} +{{/* +Print instructions to get a secret value. +Usage: +{{ include "common.utils.secret.getvalue" (dict "secret" "secret-name" "field" "secret-value-field" "context" $) }} +*/}} +{{- define "common.utils.secret.getvalue" -}} +{{- $varname := include "common.utils.fieldToEnvVar" . -}} +export {{ $varname }}=$(kubectl get secret --namespace {{ include "common.names.namespace" .context | quote }} {{ .secret }} -o jsonpath="{.data.{{ .field }}}" | base64 -d) +{{- end -}} + +{{/* +Build env var name given a field +Usage: +{{ include "common.utils.fieldToEnvVar" dict "field" "my-password" }} +*/}} +{{- define "common.utils.fieldToEnvVar" -}} + {{- $fieldNameSplit := splitList "-" .field -}} + {{- $upperCaseFieldNameSplit := list -}} + + {{- range $fieldNameSplit -}} + {{- $upperCaseFieldNameSplit = append $upperCaseFieldNameSplit ( upper . ) -}} + {{- end -}} + + {{ join "_" $upperCaseFieldNameSplit }} +{{- end -}} + +{{/* +Gets a value from .Values given +Usage: +{{ include "common.utils.getValueFromKey" (dict "key" "path.to.key" "context" $) }} +*/}} +{{- define "common.utils.getValueFromKey" -}} +{{- $splitKey := splitList "." .key -}} +{{- $value := "" -}} +{{- $latestObj := $.context.Values -}} +{{- range $splitKey -}} + {{- if not $latestObj -}} + {{- printf "please review the entire path of '%s' exists in values" $.key | fail -}} + {{- end -}} + {{- $value = ( index $latestObj . ) -}} + {{- $latestObj = $value -}} +{{- end -}} +{{- printf "%v" (default "" $value) -}} +{{- end -}} + +{{/* +Returns first .Values key with a defined value or first of the list if all non-defined +Usage: +{{ include "common.utils.getKeyFromList" (dict "keys" (list "path.to.key1" "path.to.key2") "context" $) }} +*/}} +{{- define "common.utils.getKeyFromList" -}} +{{- $key := first .keys -}} +{{- $reverseKeys := reverse .keys }} +{{- range $reverseKeys }} + {{- $value := include "common.utils.getValueFromKey" (dict "key" . "context" $.context ) }} + {{- if $value -}} + {{- $key = . }} + {{- end -}} +{{- end -}} +{{- printf "%s" $key -}} +{{- end -}} + +{{/* +Checksum a template at "path" containing a *single* resource (ConfigMap,Secret) for use in pod annotations, excluding the metadata (see #18376). +Usage: +{{ include "common.utils.checksumTemplate" (dict "path" "/configmap.yaml" "context" $) }} +*/}} +{{- define "common.utils.checksumTemplate" -}} +{{- $obj := include (print .context.Template.BasePath .path) .context | fromYaml -}} +{{ omit $obj "apiVersion" "kind" "metadata" | toYaml | sha256sum }} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/_warnings.tpl b/charts/thanos/charts/minio/charts/common/templates/_warnings.tpl new file mode 100644 index 0000000000..62c44dfcaa --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/_warnings.tpl @@ -0,0 +1,109 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} +{{/* +Warning about using rolling tag. +Usage: +{{ include "common.warnings.rollingTag" .Values.path.to.the.imageRoot }} +*/}} +{{- define "common.warnings.rollingTag" -}} + +{{- if and (contains "bitnami/" .repository) (not (.tag | toString | regexFind "-r\\d+$|sha256:")) }} +WARNING: Rolling tag detected ({{ .repository }}:{{ .tag }}), please note that it is strongly recommended to avoid using rolling tags in a production environment. ++info https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-understand-rolling-tags-containers-index.html +{{- end }} +{{- end -}} + +{{/* +Warning about replaced images from the original. +Usage: +{{ include "common.warnings.modifiedImages" (dict "images" (list .Values.path.to.the.imageRoot) "context" $) }} +*/}} +{{- define "common.warnings.modifiedImages" -}} +{{- $affectedImages := list -}} +{{- $printMessage := false -}} +{{- $originalImages := .context.Chart.Annotations.images -}} +{{- range .images -}} + {{- $fullImageName := printf (printf "%s/%s:%s" .registry .repository .tag) -}} + {{- if not (contains $fullImageName $originalImages) }} + {{- $affectedImages = append $affectedImages (printf "%s/%s:%s" .registry .repository .tag) -}} + {{- $printMessage = true -}} + {{- end -}} +{{- end -}} +{{- if $printMessage }} + +âš  SECURITY WARNING: Original containers have been substituted. This Helm chart was designed, tested, and validated on multiple platforms using a specific set of Bitnami and Tanzu Application Catalog containers. Substituting other containers is likely to cause degraded security and performance, broken chart features, and missing environment variables. + +Substituted images detected: +{{- range $affectedImages }} + - {{ . }} +{{- end }} +{{- end -}} +{{- end -}} + +{{/* +Warning about not setting the resource object in all deployments. +Usage: +{{ include "common.warnings.resources" (dict "sections" (list "path1" "path2") context $) }} +Example: +{{- include "common.warnings.resources" (dict "sections" (list "csiProvider.provider" "server" "volumePermissions" "") "context" $) }} +The list in the example assumes that the following values exist: + - csiProvider.provider.resources + - server.resources + - volumePermissions.resources + - resources +*/}} +{{- define "common.warnings.resources" -}} +{{- $values := .context.Values -}} +{{- $printMessage := false -}} +{{ $affectedSections := list -}} +{{- range .sections -}} + {{- if eq . "" -}} + {{/* Case where the resources section is at the root (one main deployment in the chart) */}} + {{- if not (index $values "resources") -}} + {{- $affectedSections = append $affectedSections "resources" -}} + {{- $printMessage = true -}} + {{- end -}} + {{- else -}} + {{/* Case where the are multiple resources sections (more than one main deployment in the chart) */}} + {{- $keys := split "." . -}} + {{/* We iterate through the different levels until arriving to the resource section. Example: a.b.c.resources */}} + {{- $section := $values -}} + {{- range $keys -}} + {{- $section = index $section . -}} + {{- end -}} + {{- if not (index $section "resources") -}} + {{/* If the section has enabled=false or replicaCount=0, do not include it */}} + {{- if and (hasKey $section "enabled") -}} + {{- if index $section "enabled" -}} + {{/* enabled=true */}} + {{- $affectedSections = append $affectedSections (printf "%s.resources" .) -}} + {{- $printMessage = true -}} + {{- end -}} + {{- else if and (hasKey $section "replicaCount") -}} + {{/* We need a casting to int because number 0 is not treated as an int by default */}} + {{- if (gt (index $section "replicaCount" | int) 0) -}} + {{/* replicaCount > 0 */}} + {{- $affectedSections = append $affectedSections (printf "%s.resources" .) -}} + {{- $printMessage = true -}} + {{- end -}} + {{- else -}} + {{/* Default case, add it to the affected sections */}} + {{- $affectedSections = append $affectedSections (printf "%s.resources" .) -}} + {{- $printMessage = true -}} + {{- end -}} + {{- end -}} + {{- end -}} +{{- end -}} +{{- if $printMessage }} + +WARNING: There are "resources" sections in the chart not set. Using "resourcesPreset" is not recommended for production. For production installations, please set the following values according to your workload needs: +{{- range $affectedSections }} + - {{ . }} +{{- end }} ++info https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +{{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/validations/_cassandra.tpl b/charts/thanos/charts/minio/charts/common/templates/validations/_cassandra.tpl new file mode 100644 index 0000000000..f8fd213bcc --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/validations/_cassandra.tpl @@ -0,0 +1,51 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} +{{/* +Auxiliary function to get the right value for existingSecret. + +Usage: +{{ include "common.cassandra.values.existingSecret" (dict "context" $) }} +Params: + - subchart - Boolean - Optional. Whether Cassandra is used as subchart or not. Default: false +*/}} +{{- define "common.cassandra.values.existingSecret" -}} + {{- if .subchart -}} + {{- .context.Values.cassandra.dbUser.existingSecret | quote -}} + {{- else -}} + {{- .context.Values.dbUser.existingSecret | quote -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for enabled cassandra. + +Usage: +{{ include "common.cassandra.values.enabled" (dict "context" $) }} +*/}} +{{- define "common.cassandra.values.enabled" -}} + {{- if .subchart -}} + {{- printf "%v" .context.Values.cassandra.enabled -}} + {{- else -}} + {{- printf "%v" (not .context.Values.enabled) -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for the key dbUser + +Usage: +{{ include "common.cassandra.values.key.dbUser" (dict "subchart" "true" "context" $) }} +Params: + - subchart - Boolean - Optional. Whether Cassandra is used as subchart or not. Default: false +*/}} +{{- define "common.cassandra.values.key.dbUser" -}} + {{- if .subchart -}} + cassandra.dbUser + {{- else -}} + dbUser + {{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/validations/_mariadb.tpl b/charts/thanos/charts/minio/charts/common/templates/validations/_mariadb.tpl new file mode 100644 index 0000000000..6ea8c0f45b --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/validations/_mariadb.tpl @@ -0,0 +1,108 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} +{{/* +Validate MariaDB required passwords are not empty. + +Usage: +{{ include "common.validations.values.mariadb.passwords" (dict "secret" "secretName" "subchart" false "context" $) }} +Params: + - secret - String - Required. Name of the secret where MariaDB values are stored, e.g: "mysql-passwords-secret" + - subchart - Boolean - Optional. Whether MariaDB is used as subchart or not. Default: false +*/}} +{{- define "common.validations.values.mariadb.passwords" -}} + {{- $existingSecret := include "common.mariadb.values.auth.existingSecret" . -}} + {{- $enabled := include "common.mariadb.values.enabled" . -}} + {{- $architecture := include "common.mariadb.values.architecture" . -}} + {{- $authPrefix := include "common.mariadb.values.key.auth" . -}} + {{- $valueKeyRootPassword := printf "%s.rootPassword" $authPrefix -}} + {{- $valueKeyUsername := printf "%s.username" $authPrefix -}} + {{- $valueKeyPassword := printf "%s.password" $authPrefix -}} + {{- $valueKeyReplicationPassword := printf "%s.replicationPassword" $authPrefix -}} + + {{- if and (or (not $existingSecret) (eq $existingSecret "\"\"")) (eq $enabled "true") -}} + {{- $requiredPasswords := list -}} + + {{- $requiredRootPassword := dict "valueKey" $valueKeyRootPassword "secret" .secret "field" "mariadb-root-password" -}} + {{- $requiredPasswords = append $requiredPasswords $requiredRootPassword -}} + + {{- $valueUsername := include "common.utils.getValueFromKey" (dict "key" $valueKeyUsername "context" .context) }} + {{- if not (empty $valueUsername) -}} + {{- $requiredPassword := dict "valueKey" $valueKeyPassword "secret" .secret "field" "mariadb-password" -}} + {{- $requiredPasswords = append $requiredPasswords $requiredPassword -}} + {{- end -}} + + {{- if (eq $architecture "replication") -}} + {{- $requiredReplicationPassword := dict "valueKey" $valueKeyReplicationPassword "secret" .secret "field" "mariadb-replication-password" -}} + {{- $requiredPasswords = append $requiredPasswords $requiredReplicationPassword -}} + {{- end -}} + + {{- include "common.validations.values.multiple.empty" (dict "required" $requiredPasswords "context" .context) -}} + + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for existingSecret. + +Usage: +{{ include "common.mariadb.values.auth.existingSecret" (dict "context" $) }} +Params: + - subchart - Boolean - Optional. Whether MariaDB is used as subchart or not. Default: false +*/}} +{{- define "common.mariadb.values.auth.existingSecret" -}} + {{- if .subchart -}} + {{- .context.Values.mariadb.auth.existingSecret | quote -}} + {{- else -}} + {{- .context.Values.auth.existingSecret | quote -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for enabled mariadb. + +Usage: +{{ include "common.mariadb.values.enabled" (dict "context" $) }} +*/}} +{{- define "common.mariadb.values.enabled" -}} + {{- if .subchart -}} + {{- printf "%v" .context.Values.mariadb.enabled -}} + {{- else -}} + {{- printf "%v" (not .context.Values.enabled) -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for architecture + +Usage: +{{ include "common.mariadb.values.architecture" (dict "subchart" "true" "context" $) }} +Params: + - subchart - Boolean - Optional. Whether MariaDB is used as subchart or not. Default: false +*/}} +{{- define "common.mariadb.values.architecture" -}} + {{- if .subchart -}} + {{- .context.Values.mariadb.architecture -}} + {{- else -}} + {{- .context.Values.architecture -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for the key auth + +Usage: +{{ include "common.mariadb.values.key.auth" (dict "subchart" "true" "context" $) }} +Params: + - subchart - Boolean - Optional. Whether MariaDB is used as subchart or not. Default: false +*/}} +{{- define "common.mariadb.values.key.auth" -}} + {{- if .subchart -}} + mariadb.auth + {{- else -}} + auth + {{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/validations/_mongodb.tpl b/charts/thanos/charts/minio/charts/common/templates/validations/_mongodb.tpl new file mode 100644 index 0000000000..e678a6de82 --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/validations/_mongodb.tpl @@ -0,0 +1,67 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} +{{/* +Auxiliary function to get the right value for existingSecret. + +Usage: +{{ include "common.mongodb.values.auth.existingSecret" (dict "context" $) }} +Params: + - subchart - Boolean - Optional. Whether MongoDb is used as subchart or not. Default: false +*/}} +{{- define "common.mongodb.values.auth.existingSecret" -}} + {{- if .subchart -}} + {{- .context.Values.mongodb.auth.existingSecret | quote -}} + {{- else -}} + {{- .context.Values.auth.existingSecret | quote -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for enabled mongodb. + +Usage: +{{ include "common.mongodb.values.enabled" (dict "context" $) }} +*/}} +{{- define "common.mongodb.values.enabled" -}} + {{- if .subchart -}} + {{- printf "%v" .context.Values.mongodb.enabled -}} + {{- else -}} + {{- printf "%v" (not .context.Values.enabled) -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for the key auth + +Usage: +{{ include "common.mongodb.values.key.auth" (dict "subchart" "true" "context" $) }} +Params: + - subchart - Boolean - Optional. Whether MongoDB® is used as subchart or not. Default: false +*/}} +{{- define "common.mongodb.values.key.auth" -}} + {{- if .subchart -}} + mongodb.auth + {{- else -}} + auth + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for architecture + +Usage: +{{ include "common.mongodb.values.architecture" (dict "subchart" "true" "context" $) }} +Params: + - subchart - Boolean - Optional. Whether MongoDB® is used as subchart or not. Default: false +*/}} +{{- define "common.mongodb.values.architecture" -}} + {{- if .subchart -}} + {{- .context.Values.mongodb.architecture -}} + {{- else -}} + {{- .context.Values.architecture -}} + {{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/validations/_mysql.tpl b/charts/thanos/charts/minio/charts/common/templates/validations/_mysql.tpl new file mode 100644 index 0000000000..fbb65c338e --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/validations/_mysql.tpl @@ -0,0 +1,67 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} +{{/* +Auxiliary function to get the right value for existingSecret. + +Usage: +{{ include "common.mysql.values.auth.existingSecret" (dict "context" $) }} +Params: + - subchart - Boolean - Optional. Whether MySQL is used as subchart or not. Default: false +*/}} +{{- define "common.mysql.values.auth.existingSecret" -}} + {{- if .subchart -}} + {{- .context.Values.mysql.auth.existingSecret | quote -}} + {{- else -}} + {{- .context.Values.auth.existingSecret | quote -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for enabled mysql. + +Usage: +{{ include "common.mysql.values.enabled" (dict "context" $) }} +*/}} +{{- define "common.mysql.values.enabled" -}} + {{- if .subchart -}} + {{- printf "%v" .context.Values.mysql.enabled -}} + {{- else -}} + {{- printf "%v" (not .context.Values.enabled) -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for architecture + +Usage: +{{ include "common.mysql.values.architecture" (dict "subchart" "true" "context" $) }} +Params: + - subchart - Boolean - Optional. Whether MySQL is used as subchart or not. Default: false +*/}} +{{- define "common.mysql.values.architecture" -}} + {{- if .subchart -}} + {{- .context.Values.mysql.architecture -}} + {{- else -}} + {{- .context.Values.architecture -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for the key auth + +Usage: +{{ include "common.mysql.values.key.auth" (dict "subchart" "true" "context" $) }} +Params: + - subchart - Boolean - Optional. Whether MySQL is used as subchart or not. Default: false +*/}} +{{- define "common.mysql.values.key.auth" -}} + {{- if .subchart -}} + mysql.auth + {{- else -}} + auth + {{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/validations/_postgresql.tpl b/charts/thanos/charts/minio/charts/common/templates/validations/_postgresql.tpl new file mode 100644 index 0000000000..51d47162e7 --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/validations/_postgresql.tpl @@ -0,0 +1,105 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} +{{/* +Auxiliary function to decide whether evaluate global values. + +Usage: +{{ include "common.postgresql.values.use.global" (dict "key" "key-of-global" "context" $) }} +Params: + - key - String - Required. Field to be evaluated within global, e.g: "existingSecret" +*/}} +{{- define "common.postgresql.values.use.global" -}} + {{- if .context.Values.global -}} + {{- if .context.Values.global.postgresql -}} + {{- index .context.Values.global.postgresql .key | quote -}} + {{- end -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for existingSecret. + +Usage: +{{ include "common.postgresql.values.existingSecret" (dict "context" $) }} +*/}} +{{- define "common.postgresql.values.existingSecret" -}} + {{- $globalValue := include "common.postgresql.values.use.global" (dict "key" "existingSecret" "context" .context) -}} + + {{- if .subchart -}} + {{- default (.context.Values.postgresql.existingSecret | quote) $globalValue -}} + {{- else -}} + {{- default (.context.Values.existingSecret | quote) $globalValue -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for enabled postgresql. + +Usage: +{{ include "common.postgresql.values.enabled" (dict "context" $) }} +*/}} +{{- define "common.postgresql.values.enabled" -}} + {{- if .subchart -}} + {{- printf "%v" .context.Values.postgresql.enabled -}} + {{- else -}} + {{- printf "%v" (not .context.Values.enabled) -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for the key postgressPassword. + +Usage: +{{ include "common.postgresql.values.key.postgressPassword" (dict "subchart" "true" "context" $) }} +Params: + - subchart - Boolean - Optional. Whether postgresql is used as subchart or not. Default: false +*/}} +{{- define "common.postgresql.values.key.postgressPassword" -}} + {{- $globalValue := include "common.postgresql.values.use.global" (dict "key" "postgresqlUsername" "context" .context) -}} + + {{- if not $globalValue -}} + {{- if .subchart -}} + postgresql.postgresqlPassword + {{- else -}} + postgresqlPassword + {{- end -}} + {{- else -}} + global.postgresql.postgresqlPassword + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for enabled.replication. + +Usage: +{{ include "common.postgresql.values.enabled.replication" (dict "subchart" "true" "context" $) }} +Params: + - subchart - Boolean - Optional. Whether postgresql is used as subchart or not. Default: false +*/}} +{{- define "common.postgresql.values.enabled.replication" -}} + {{- if .subchart -}} + {{- printf "%v" .context.Values.postgresql.replication.enabled -}} + {{- else -}} + {{- printf "%v" .context.Values.replication.enabled -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right value for the key replication.password. + +Usage: +{{ include "common.postgresql.values.key.replicationPassword" (dict "subchart" "true" "context" $) }} +Params: + - subchart - Boolean - Optional. Whether postgresql is used as subchart or not. Default: false +*/}} +{{- define "common.postgresql.values.key.replicationPassword" -}} + {{- if .subchart -}} + postgresql.replication.password + {{- else -}} + replication.password + {{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/validations/_redis.tpl b/charts/thanos/charts/minio/charts/common/templates/validations/_redis.tpl new file mode 100644 index 0000000000..9fedfef9d1 --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/validations/_redis.tpl @@ -0,0 +1,48 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + + +{{/* vim: set filetype=mustache: */}} +{{/* +Auxiliary function to get the right value for enabled redis. + +Usage: +{{ include "common.redis.values.enabled" (dict "context" $) }} +*/}} +{{- define "common.redis.values.enabled" -}} + {{- if .subchart -}} + {{- printf "%v" .context.Values.redis.enabled -}} + {{- else -}} + {{- printf "%v" (not .context.Values.enabled) -}} + {{- end -}} +{{- end -}} + +{{/* +Auxiliary function to get the right prefix path for the values + +Usage: +{{ include "common.redis.values.key.prefix" (dict "subchart" "true" "context" $) }} +Params: + - subchart - Boolean - Optional. Whether redis is used as subchart or not. Default: false +*/}} +{{- define "common.redis.values.keys.prefix" -}} + {{- if .subchart -}}redis.{{- else -}}{{- end -}} +{{- end -}} + +{{/* +Checks whether the redis chart's includes the standarizations (version >= 14) + +Usage: +{{ include "common.redis.values.standarized.version" (dict "context" $) }} +*/}} +{{- define "common.redis.values.standarized.version" -}} + + {{- $standarizedAuth := printf "%s%s" (include "common.redis.values.keys.prefix" .) "auth" -}} + {{- $standarizedAuthValues := include "common.utils.getValueFromKey" (dict "key" $standarizedAuth "context" .context) }} + + {{- if $standarizedAuthValues -}} + {{- true -}} + {{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/templates/validations/_validations.tpl b/charts/thanos/charts/minio/charts/common/templates/validations/_validations.tpl new file mode 100644 index 0000000000..7cdee61700 --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/templates/validations/_validations.tpl @@ -0,0 +1,51 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} +{{/* +Validate values must not be empty. + +Usage: +{{- $validateValueConf00 := (dict "valueKey" "path.to.value" "secret" "secretName" "field" "password-00") -}} +{{- $validateValueConf01 := (dict "valueKey" "path.to.value" "secret" "secretName" "field" "password-01") -}} +{{ include "common.validations.values.empty" (dict "required" (list $validateValueConf00 $validateValueConf01) "context" $) }} + +Validate value params: + - valueKey - String - Required. The path to the validating value in the values.yaml, e.g: "mysql.password" + - secret - String - Optional. Name of the secret where the validating value is generated/stored, e.g: "mysql-passwords-secret" + - field - String - Optional. Name of the field in the secret data, e.g: "mysql-password" +*/}} +{{- define "common.validations.values.multiple.empty" -}} + {{- range .required -}} + {{- include "common.validations.values.single.empty" (dict "valueKey" .valueKey "secret" .secret "field" .field "context" $.context) -}} + {{- end -}} +{{- end -}} + +{{/* +Validate a value must not be empty. + +Usage: +{{ include "common.validations.value.empty" (dict "valueKey" "mariadb.password" "secret" "secretName" "field" "my-password" "subchart" "subchart" "context" $) }} + +Validate value params: + - valueKey - String - Required. The path to the validating value in the values.yaml, e.g: "mysql.password" + - secret - String - Optional. Name of the secret where the validating value is generated/stored, e.g: "mysql-passwords-secret" + - field - String - Optional. Name of the field in the secret data, e.g: "mysql-password" + - subchart - String - Optional - Name of the subchart that the validated password is part of. +*/}} +{{- define "common.validations.values.single.empty" -}} + {{- $value := include "common.utils.getValueFromKey" (dict "key" .valueKey "context" .context) }} + {{- $subchart := ternary "" (printf "%s." .subchart) (empty .subchart) }} + + {{- if not $value -}} + {{- $varname := "my-value" -}} + {{- $getCurrentValue := "" -}} + {{- if and .secret .field -}} + {{- $varname = include "common.utils.fieldToEnvVar" . -}} + {{- $getCurrentValue = printf " To get the current value:\n\n %s\n" (include "common.utils.secret.getvalue" .) -}} + {{- end -}} + {{- printf "\n '%s' must not be empty, please add '--set %s%s=$%s' to the command.%s" .valueKey $subchart .valueKey $varname $getCurrentValue -}} + {{- end -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/charts/common/values.yaml b/charts/thanos/charts/minio/charts/common/values.yaml new file mode 100644 index 0000000000..de2cac57d0 --- /dev/null +++ b/charts/thanos/charts/minio/charts/common/values.yaml @@ -0,0 +1,8 @@ +# Copyright Broadcom, Inc. All Rights Reserved. +# SPDX-License-Identifier: APACHE-2.0 + +## bitnami/common +## It is required by CI/CD tools and processes. +## @skip exampleValue +## +exampleValue: common-chart diff --git a/charts/thanos/charts/minio/templates/NOTES.txt b/charts/thanos/charts/minio/templates/NOTES.txt new file mode 100644 index 0000000000..4d1188dc47 --- /dev/null +++ b/charts/thanos/charts/minio/templates/NOTES.txt @@ -0,0 +1,81 @@ +CHART NAME: {{ .Chart.Name }} +CHART VERSION: {{ .Chart.Version }} +APP VERSION: {{ .Chart.AppVersion }} + +Did you know there are enterprise versions of the Bitnami catalog? For enhanced secure software supply chain features, unlimited pulls from Docker, LTS support, or application customization, see Bitnami Premium or Tanzu Application Catalog. See https://www.arrow.com/globalecs/na/vendors/bitnami for more information. + +** Please be patient while the chart is being deployed ** + +MinIO® can be accessed via port {{ .Values.service.port }} on the following DNS name from within your cluster: + + {{ include "common.names.fullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }} + +To get your credentials run: + + export ROOT_USER=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ include "minio.secretName" . }} -o jsonpath="{.data.{{ include "minio.rootUserKey" . }}}" | base64 -d) + export ROOT_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ include "minio.secretName" . }} -o jsonpath="{.data.{{ include "minio.rootPasswordKey" . }}}" | base64 -d) + +To connect to your MinIO® server using a client: + +- Run a MinIO® Client pod and append the desired command (e.g. 'admin info'): + + kubectl run --namespace {{ .Release.Namespace }} {{ include "common.names.fullname" . }}-client \ + --rm --tty -i --restart='Never' \ + --env MINIO_SERVER_ROOT_USER=$ROOT_USER \ + --env MINIO_SERVER_ROOT_PASSWORD=$ROOT_PASSWORD \ + --env MINIO_SERVER_HOST={{ include "common.names.fullname" . }} \ + {{- if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }} + --labels="{{ include "common.names.fullname" . }}-client=true" \ + {{- end }} + --image {{ template "minio.clientImage" . }} -- admin info minio + +{{- if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }} + + NOTE: Since NetworkPolicy is enabled, only pods with label + "{{ template "common.names.fullname" . }}-client=true" will be able to connect to MinIO®. + +{{- end }} +{{- if (not .Values.disableWebUI) }} + +To access the MinIO® web UI: + +- Get the MinIO® URL: + +{{- if .Values.ingress.enabled }} + + You should be able to access your new MinIO® web UI through + + {{ if .Values.ingress.tls }}https{{ else }}http{{ end }}://{{ .Values.ingress.hostname }}/minio/ +{{- else if contains "LoadBalancer" .Values.service.type }} + + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + Watch the status with: 'kubectl get svc --namespace {{ .Release.Namespace }} -w {{ include "common.names.fullname" . }}' + + {{- $port:=.Values.service.ports.console | toString }} + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "common.names.fullname" . }} --template "{{ "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}" }}") + echo "MinIO® web URL: http://$SERVICE_IP{{- if ne $port "80" }}:{{ .Values.service.ports.console }}{{ end }}/minio" + +{{- else if contains "ClusterIP" .Values.service.type }} + + echo "MinIO® web URL: http://127.0.0.1:{{ .Values.containerPorts.console }}/minio" + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "common.names.fullname" . }} {{ .Values.containerPorts.console }}:{{ .Values.service.ports.console }} + +{{- else if contains "NodePort" .Values.service.type }} + + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "common.names.fullname" . }}) + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") + echo "MinIO® web URL: http://$NODE_IP:$NODE_PORT/minio" + +{{- end }} +{{- else }} + + WARN: MinIO® Web UI is disabled. +{{- end }} + +{{- include "common.warnings.rollingTag" .Values.image }} +{{- include "common.warnings.rollingTag" .Values.clientImage }} +{{- include "common.warnings.rollingTag" .Values.volumePermissions.image }} +{{- include "minio.validateValues" . }} +{{- include "common.warnings.resources" (dict "sections" (list "provisioning" "" "volumePermissions") "context" $) }} +{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.image .Values.clientImage .Values.volumePermissions.image) "context" $) }} +{{- include "common.errors.insecureImages" (dict "images" (list .Values.image .Values.clientImage .Values.volumePermissions.image) "context" $) }} diff --git a/charts/thanos/charts/minio/templates/_helpers.tpl b/charts/thanos/charts/minio/templates/_helpers.tpl new file mode 100644 index 0000000000..222d9caf55 --- /dev/null +++ b/charts/thanos/charts/minio/templates/_helpers.tpl @@ -0,0 +1,260 @@ +{{/* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{/* vim: set filetype=mustache: */}} + +{{/* +Return the proper MinIO® image name +*/}} +{{- define "minio.image" -}} +{{ include "common.images.image" (dict "imageRoot" .Values.image "global" .Values.global) }} + +{{- end -}} + +{{/* +Return the proper MinIO® Client image name +*/}} +{{- define "minio.clientImage" -}} +{{ include "common.images.image" (dict "imageRoot" .Values.clientImage "global" .Values.global) }} +{{- end -}} + +{{/* +Return the proper image name (for the init container volume-permissions image) +*/}} +{{- define "minio.volumePermissions.image" -}} +{{ include "common.images.image" (dict "imageRoot" .Values.volumePermissions.image "global" .Values.global) }} +{{- end -}} + +{{/* +Return the proper Docker Image Registry Secret Names +*/}} +{{- define "minio.imagePullSecrets" -}} +{{- include "common.images.renderPullSecrets" (dict "images" (list .Values.image .Values.clientImage .Values.volumePermissions.image) "context" $) -}} +{{- end -}} + +{{/* +Get the user to use to access MinIO® +*/}} +{{- define "minio.secret.userValue" -}} +{{- if (and (empty .Values.auth.rootUser) .Values.auth.forcePassword) }} + {{ required "A root username is required!" .Values.auth.rootUser }} +{{- else -}} + {{- include "common.secrets.passwords.manage" (dict "secret" (include "common.names.fullname" .) "key" "root-user" "providedValues" (list "auth.rootUser") "context" $) -}} +{{- end -}} +{{- end -}} + +{{/* +Get the password to use to access MinIO® +*/}} +{{- define "minio.secret.passwordValue" -}} +{{- if (and (empty .Values.auth.rootPassword) .Values.auth.forcePassword) }} + {{ required "A root password is required!" .Values.auth.rootPassword }} +{{- else -}} + {{- include "common.secrets.passwords.manage" (dict "secret" (include "common.names.fullname" .) "key" "root-password" "providedValues" (list "auth.rootPassword") "context" $) -}} +{{- end -}} +{{- end -}} + +{{/* +Get the credentials secret. +*/}} +{{- define "minio.secretName" -}} +{{- if .Values.auth.existingSecret -}} + {{- printf "%s" (tpl .Values.auth.existingSecret $) -}} +{{- else -}} + {{- printf "%s" (include "common.names.fullname" .) -}} +{{- end -}} +{{- end -}} + +{{/* +Get the root user key. +*/}} +{{- define "minio.rootUserKey" -}} +{{- if and (.Values.auth.existingSecret) (.Values.auth.rootUserSecretKey) -}} + {{- printf "%s" (tpl .Values.auth.rootUserSecretKey $) -}} +{{- else -}} + {{- "root-user" -}} +{{- end -}} +{{- end -}} + +{{/* +Get the root password key. +*/}} +{{- define "minio.rootPasswordKey" -}} +{{- if and (.Values.auth.existingSecret) (.Values.auth.rootPasswordSecretKey) -}} + {{- printf "%s" (tpl .Values.auth.rootPasswordSecretKey $) -}} +{{- else -}} + {{- "root-password" -}} +{{- end -}} +{{- end -}} + +{{/* +Return true if a secret object should be created +*/}} +{{- define "minio.createSecret" -}} +{{- if and (not .Values.auth.existingSecret) .Values.auth.useSecret -}} + {{- true -}} +{{- end -}} +{{- end -}} + +{{/* +Return true if a PVC object should be created (only in standalone mode) +*/}} +{{- define "minio.createPVC" -}} +{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) (eq .Values.mode "standalone") }} + {{- true -}} +{{- end -}} +{{- end -}} + +{{/* +Return the PVC name (only in standalone mode) +*/}} +{{- define "minio.claimName" -}} +{{- if and .Values.persistence.existingClaim }} + {{- printf "%s" (tpl .Values.persistence.existingClaim $) -}} +{{- else -}} + {{- printf "%s" (include "common.names.fullname" .) -}} +{{- end -}} +{{- end -}} + +{{/* +Returns the proper service account name depending if an explicit service account name is set +in the values file. If the name is not set it will default to either common.names.fullname if serviceAccount.create +is true or default otherwise. +*/}} +{{- define "minio.serviceAccountName" -}} + {{- if .Values.serviceAccount.create -}} + {{ default (include "common.names.fullname" .) .Values.serviceAccount.name }} + {{- else -}} + {{ default "default" .Values.serviceAccount.name }} + {{- end -}} +{{- end -}} + +{{/* +Compile all warnings into a single message, and call fail. +*/}} +{{- define "minio.validateValues" -}} +{{- $messages := list -}} +{{- $messages := append $messages (include "minio.validateValues.mode" .) -}} +{{- $messages := append $messages (include "minio.validateValues.totalDrives" .) -}} +{{- $messages := append $messages (include "minio.validateValues.tls" .) -}} +{{- $messages := append $messages (include "minio.validateValues.defaultBuckets" .) -}} +{{- $messages := without $messages "" -}} +{{- $message := join "\n" $messages -}} + +{{- if $message -}} +{{- printf "\nVALUES VALIDATION:\n%s" $message | fail -}} +{{- end -}} +{{- end -}} + +{{/* +Validate values of MinIO® - must provide a valid mode ("distributed" or "standalone") +*/}} +{{- define "minio.validateValues.mode" -}} +{{- $allowedValues := list "distributed" "standalone" }} +{{- if not (has .Values.mode $allowedValues) -}} +minio: mode + Invalid mode selected. Valid values are "distributed" and + "standalone". Please set a valid mode (--set mode="xxxx") +{{- end -}} +{{- end -}} + +{{/* +Validate values of MinIO® - total number of drives should be greater than 4 +*/}} +{{- define "minio.validateValues.totalDrives" -}} +{{- $replicaCount := int .Values.statefulset.replicaCount }} +{{- $drivesPerNode := int .Values.statefulset.drivesPerNode }} +{{- $zones := int .Values.statefulset.zones }} +{{- $totalDrives := mul $replicaCount $zones $drivesPerNode }} +{{- if and (eq .Values.mode "distributed") (lt $totalDrives 4) -}} +minio: total drives + The total number of drives should be greater than 4 to guarantee erasure coding! + Please set a combination of nodes, and drives per node that match this condition. + For instance (--set statefulset.replicaCount=2 --set statefulset.drivesPerNode=2) +{{- end -}} +{{- end -}} + +{{/* +Validate values of MinIO® - TLS secret must provided if TLS is enabled +*/}} +{{- define "minio.validateValues.tls" -}} +{{- if and .Values.tls.enabled (not .Values.tls.existingSecret) (not .Values.tls.autoGenerated) }} +minio: tls.existingSecret, tls.autoGenerated + In order to enable TLS, you also need to provide + an existing secret containing the TLS certificates or + enable auto-generated certificates. +{{- end -}} +{{- end -}} + +{{/* +Validate values of MinIO® - defaultBuckets does not work in distributed mode +*/}} +{{- define "minio.validateValues.defaultBuckets" -}} +{{- if and (eq .Values.mode "distributed") (not (empty .Values.defaultBuckets)) }} +minio: defaultBuckets + defaultBuckets does not work in distributed mode. + Use a provisioning job instead. +{{- end -}} +{{- end -}} + +{{/* +Return the secret containing MinIO TLS certificates +*/}} +{{- define "minio.tlsSecretName" -}} +{{- if .Values.tls.existingSecret -}} + {{- printf "%s" (tpl .Values.tls.existingSecret $) -}} +{{- else -}} + {{- printf "%s-crt" (include "common.names.fullname" .) -}} +{{- end -}} +{{- end -}} + +{{/* +Return true if a TLS secret object should be created +*/}} +{{- define "minio.createTlsSecret" -}} +{{- if and .Values.tls.enabled .Values.tls.autoGenerated (not .Values.tls.existingSecret) }} + {{- true -}} +{{- end -}} +{{- end -}} + +{{/* +Provisioning job labels (exclude matchLabels from standard labels) +*/}} +{{- define "minio.labels.provisioning" -}} +{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.provisioning.podLabels .Values.commonLabels ) "context" . ) }} +{{- $provisioningLabels := (include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | fromYaml ) -}} +{{- range (include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | fromYaml | keys ) -}} +{{- $_ := unset $provisioningLabels . -}} +{{- end -}} +{{- print ($provisioningLabels | toYaml) -}} +{{- end -}} + +{{/* +Return the ingress anotation +*/}} +{{- define "minio.ingress.annotations" -}} +{{ .Values.ingress.annotations | toYaml }} +{{- end -}} + +{{/* +Return the api ingress anotation +*/}} +{{- define "minio.apiIngress.annotations" -}} +{{ .Values.apiIngress.annotations | toYaml }} +{{- end -}} + +{{/* +Return the ingress hostname +*/}} +{{- define "minio.ingress.hostname" -}} +{{- tpl .Values.ingress.hostname $ -}} +{{- end -}} + +{{/* +Return the api ingress hostname +*/}} +{{- define "minio.apiIngress.hostname" -}} +{{- tpl .Values.apiIngress.hostname $ -}} +{{- end -}} diff --git a/charts/thanos/charts/minio/templates/api-ingress.yaml b/charts/thanos/charts/minio/templates/api-ingress.yaml new file mode 100644 index 0000000000..817aa818cb --- /dev/null +++ b/charts/thanos/charts/minio/templates/api-ingress.yaml @@ -0,0 +1,60 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if .Values.apiIngress.enabled -}} +apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }} +kind: Ingress +metadata: + name: {{ include "common.names.fullname" . }}-api + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list (include "minio.apiIngress.annotations" . | fromYaml) .Values.commonAnnotations ) "context" . ) }} + {{- if $annotations }} + annotations: {{- include "common.tplvalues.render" (dict "value" $annotations "context" $) | nindent 4 }} + {{- end }} +spec: + {{- if and .Values.apiIngress.ingressClassName (include "common.ingress.supportsIngressClassname" .) }} + ingressClassName: {{ .Values.apiIngress.ingressClassName | quote }} + {{- end }} + rules: + {{- if (include "minio.apiIngress.hostname" .) }} + - host: {{ include "minio.apiIngress.hostname" . }} + http: + paths: + {{- if .Values.apiIngress.extraPaths }} + {{- toYaml .Values.apiIngress.extraPaths | nindent 10 }} + {{- end }} + - path: {{ .Values.apiIngress.path }} + {{- if eq "true" (include "common.ingress.supportsPathType" .) }} + pathType: {{ .Values.apiIngress.pathType }} + {{- end }} + backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" .) "servicePort" "minio-api" "context" $) | nindent 14 }} + {{- end }} + {{- range .Values.apiIngress.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" "minio-api" "context" $) | nindent 14 }} + {{- end }} + {{- if .Values.apiIngress.extraRules }} + {{- include "common.tplvalues.render" (dict "value" .Values.apiIngress.extraRules "context" $) | nindent 4 }} + {{- end }} + {{- $annotationsMap := include "common.tplvalues.render" (dict "value" $annotations "context" $) | fromYaml }} + {{- if or (and .Values.apiIngress.tls (or (include "common.ingress.certManagerRequest" ( dict "annotations" $annotationsMap )) .Values.apiIngress.selfSigned)) .Values.apiIngress.extraTls }} + tls: + {{- if and .Values.apiIngress.tls (or (include "common.ingress.certManagerRequest" ( dict "annotations" $annotationsMap )) .Values.apiIngress.selfSigned) }} + - hosts: + - {{ include "minio.apiIngress.hostname" . }} + secretName: {{ printf "%s-tls" (include "minio.apiIngress.hostname" .) }} + {{- end }} + {{- if .Values.apiIngress.extraTls }} + {{- include "common.tplvalues.render" ( dict "value" .Values.apiIngress.extraTls "context" $ ) | nindent 4 }} + {{- end }} + {{- end }} +{{- end }} diff --git a/charts/thanos/charts/minio/templates/distributed/headless-svc.yaml b/charts/thanos/charts/minio/templates/distributed/headless-svc.yaml new file mode 100644 index 0000000000..230829a066 --- /dev/null +++ b/charts/thanos/charts/minio/templates/distributed/headless-svc.yaml @@ -0,0 +1,30 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if (eq .Values.mode "distributed") }} +apiVersion: v1 +kind: Service +metadata: + name: {{ printf "%s-headless" (include "common.names.fullname" .) | trunc 63 }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- if or .Values.service.headless.annotations .Values.commonAnnotations }} + {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.service.headless.annotations .Values.commonAnnotations ) "context" . ) }} + annotations: {{- include "common.tplvalues.render" (dict "value" $annotations "context" $) | nindent 4 }} + {{- end }} +spec: + type: ClusterIP + clusterIP: None + ports: + - name: minio-api + port: {{ .Values.service.ports.api }} + targetPort: minio-api + - name: minio-console + port: {{ .Values.service.ports.console }} + targetPort: minio-console + publishNotReadyAddresses: true + {{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }} + selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }} +{{- end }} diff --git a/charts/thanos/charts/minio/templates/distributed/statefulset.yaml b/charts/thanos/charts/minio/templates/distributed/statefulset.yaml new file mode 100644 index 0000000000..122e30fd6a --- /dev/null +++ b/charts/thanos/charts/minio/templates/distributed/statefulset.yaml @@ -0,0 +1,367 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if (eq .Values.mode "distributed") }} +{{- $fullname := include "common.names.fullname" . }} +{{- $headlessService := printf "%s-headless" (include "common.names.fullname" .) | trunc 63 }} +{{- $releaseNamespace := include "common.names.namespace" . }} +{{- $clusterDomain := .Values.clusterDomain }} +{{- $apiPort := toString .Values.containerPorts.api }} +{{- $replicaCount := int .Values.statefulset.replicaCount }} +{{- $zoneCount := int .Values.statefulset.zones }} +{{- $drivesPerNode := int .Values.statefulset.drivesPerNode }} +{{- $mountPath := .Values.persistence.mountPath }} +apiVersion: {{ include "common.capabilities.statefulset.apiVersion" . }} +kind: StatefulSet +metadata: + name: {{ $fullname }} + namespace: {{ $releaseNamespace | 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 }} + serviceName: {{ $headlessService }} + replicas: {{ mul $zoneCount $replicaCount }} + podManagementPolicy: {{ .Values.statefulset.podManagementPolicy }} + {{- if .Values.statefulset.updateStrategy }} + updateStrategy: {{- toYaml .Values.statefulset.updateStrategy | nindent 4 }} + {{- end }} + template: + metadata: + labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} + {{- if or .Values.podAnnotations (include "minio.createSecret" .) }} + annotations: + {{- if (include "minio.createSecret" .) }} + checksum/credentials-secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }} + {{- end }} + {{- if .Values.podAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.podAnnotations "context" $) | nindent 8 }} + {{- end }} + {{- end }} + spec: + {{- include "minio.imagePullSecrets" . | nindent 6 }} + {{- if .Values.schedulerName }} + schedulerName: {{ .Values.schedulerName }} + {{- end }} + serviceAccountName: {{ template "minio.serviceAccountName" . }} + {{- 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.nodeSelector }} + nodeSelector: {{- include "common.tplvalues.render" (dict "value" .Values.nodeSelector "context" $) | nindent 8 }} + {{- end }} + automountServiceAccountToken: {{ .Values.automountServiceAccountToken }} + {{- if .Values.hostAliases }} + hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.tolerations "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.topologySpreadConstraints }} + topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.topologySpreadConstraints "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName | quote }} + {{- end }} + {{- if .Values.runtimeClassName }} + runtimeClassName: {{ .Values.runtimeClassName | quote }} + {{- end}} + {{- if .Values.podSecurityContext.enabled }} + securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.podSecurityContext "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.terminationGracePeriodSeconds }} + terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} + {{- end }} + {{- if or .Values.initContainers (and .Values.volumePermissions.enabled .Values.persistence.enabled) }} + 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: {{ template "minio.volumePermissions.image" . }} + imagePullPolicy: {{ default "" .Values.volumePermissions.image.pullPolicy | quote }} + command: + - /bin/bash + - -ec + - | + {{- if and .Values.persistence.enabled (gt $drivesPerNode 1) }} + chown -R {{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }} {{ range $diskId := until $drivesPerNode }}{{ $mountPath }}-{{ $diskId }} {{ end }} + {{- else }} + chown -R {{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }} {{ $mountPath }} + {{- end }} + securityContext: {{- .Values.volumePermissions.containerSecurityContext | toYaml | nindent 12 }} + {{- 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: empty-dir + mountPath: /tmp + subPath: tmp-dir + {{- if and .Values.persistence.enabled (gt $drivesPerNode 1) }} + {{- range $diskId := until $drivesPerNode }} + - name: data-{{ $diskId }} + mountPath: {{ $mountPath }}-{{ $diskId }} + {{- end }} + {{- else }} + - name: data + mountPath: {{ $mountPath }} + {{- end }} + {{- end }} + {{- end }} + containers: + - name: minio + image: {{ include "minio.image" . }} + imagePullPolicy: {{ .Values.image.pullPolicy | quote }} + {{- if .Values.containerSecurityContext.enabled }} + securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.containerSecurityContext "context" $) | nindent 12 }} + {{- end }} + {{- 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 }} + env: + - name: BITNAMI_DEBUG + value: {{ ternary "true" "false" .Values.image.debug | quote }} + - name: MINIO_DISTRIBUTED_MODE_ENABLED + value: "yes" + - name: MINIO_DISTRIBUTED_NODES + {{- $clusters := list }} + {{- range $i := until $zoneCount }} + {{- $factor := mul $i $replicaCount }} + {{- $endIndex := sub (add $factor $replicaCount) 1 }} + {{- $beginIndex := mul $i $replicaCount }} + {{- $bucket := ternary (printf "%s-{0...%d}" $mountPath (sub $drivesPerNode 1)) $mountPath (gt $drivesPerNode 1) }} + {{- $clusters = append $clusters (printf "%s-{%d...%d}.%s.%s.svc.%s:%s%s" $fullname $beginIndex $endIndex $headlessService $releaseNamespace $clusterDomain $apiPort $bucket) }} + {{- end }} + value: {{ join "," $clusters | quote }} + - name: MINIO_SCHEME + value: {{ ternary "https" "http" .Values.tls.enabled | quote }} + - name: MINIO_FORCE_NEW_KEYS + value: {{ ternary "yes" "no" .Values.auth.forceNewKeys | quote }} + {{- if .Values.auth.useCredentialsFiles }} + - name: MINIO_ROOT_USER_FILE + value: "/opt/bitnami/minio/secrets/root-user" + - name: MINIO_ROOT_PASSWORD_FILE + value: "/opt/bitnami/minio/secrets/root-password" + {{- else }} + - name: MINIO_ROOT_USER + valueFrom: + secretKeyRef: + name: {{ include "minio.secretName" . }} + key: {{ include "minio.rootUserKey" . }} + - name: MINIO_ROOT_PASSWORD + valueFrom: + secretKeyRef: + name: {{ include "minio.secretName" . }} + key: {{ include "minio.rootPasswordKey" . }} + {{- end }} + - name: MINIO_SKIP_CLIENT + value: {{ ternary "yes" "no" (empty .Values.defaultBuckets) | quote }} + {{- if .Values.defaultBuckets }} + - name: MINIO_DEFAULT_BUCKETS + value: {{ .Values.defaultBuckets }} + {{- end }} + - name: MINIO_BROWSER + value: {{ ternary "off" "on" .Values.disableWebUI | quote }} + - name: MINIO_PROMETHEUS_AUTH_TYPE + value: {{ .Values.metrics.prometheusAuthType | quote }} + {{- if .Values.tls.mountPath }} + - name: MINIO_CERTS_DIR + value: {{ .Values.tls.mountPath | quote }} + {{- end }} + - name: MINIO_CONSOLE_PORT_NUMBER + value: {{ .Values.containerPorts.console | quote }} + - name: MINIO_API_PORT_NUMBER + value: {{ .Values.containerPorts.api | quote }} + - name: MINIO_DATA_DIR + value: {{ ternary (printf "%s-0" $mountPath) $mountPath (gt $drivesPerNode 1) | 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 }} + ports: + - name: minio-api + containerPort: {{ .Values.containerPorts.api }} + protocol: TCP + - name: minio-console + containerPort: {{ .Values.containerPorts.console }} + protocol: TCP + {{- if .Values.customLivenessProbe }} + livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }} + {{- else if .Values.livenessProbe.enabled }} + livenessProbe: + httpGet: + path: /minio/health/live + port: minio-api + scheme: {{ ternary "HTTPS" "HTTP" .Values.tls.enabled | quote }} + 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: + tcpSocket: + port: minio-api + initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.readinessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} + successThreshold: {{ .Values.readinessProbe.successThreshold }} + failureThreshold: {{ .Values.readinessProbe.failureThreshold }} + {{- end }} + {{- if .Values.customStartupProbe }} + startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customStartupProbe "context" $) | nindent 12 }} + {{- else if .Values.startupProbe.enabled }} + startupProbe: + tcpSocket: + port: minio-api + initialDelaySeconds: {{ .Values.startupProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.startupProbe.periodSeconds }} + timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }} + successThreshold: {{ .Values.startupProbe.successThreshold }} + failureThreshold: {{ .Values.startupProbe.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 }} + {{- if .Values.lifecycleHooks }} + lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleHooks "context" $) | nindent 12 }} + {{- end }} + volumeMounts: + - name: empty-dir + mountPath: /tmp + subPath: tmp-dir + - name: empty-dir + mountPath: /opt/bitnami/minio/tmp + subPath: app-tmp-dir + - name: empty-dir + mountPath: /.mc + subPath: app-mc-dir + {{- if .Values.auth.useCredentialsFiles }} + - name: minio-credentials + mountPath: /opt/bitnami/minio/secrets/ + {{- end }} + {{- if .Values.tls.enabled }} + - name: minio-certs + mountPath: {{ default "/certs" .Values.tls.mountPath }} + {{- end }} + {{- if gt $drivesPerNode 1 }} + {{- range $diskId := until $drivesPerNode }} + - name: data-{{ $diskId }} + mountPath: {{ $mountPath }}-{{ $diskId }} + {{- end }} + {{- else }} + - name: data + mountPath: {{ $mountPath }} + {{- end }} + {{- 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: {} + {{- if .Values.auth.useCredentialsFiles }} + - name: minio-credentials + secret: + secretName: {{ include "minio.secretName" . }} + {{- end }} + {{- if .Values.tls.enabled }} + - name: minio-certs + secret: + secretName: {{ include "minio.tlsSecretName" . }} + items: + - key: tls.crt + path: public.crt + - key: tls.key + path: private.key + - key: ca.crt + path: CAs/public.crt + {{- end }} + {{- if .Values.extraVolumes }} + {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }} + {{- end }} + {{- if and (not .Values.persistence.enabled) (gt $drivesPerNode 1) }} + {{- range $diskId := until $drivesPerNode }} + - name: data-{{ $diskId }} + emptyDir: {} + {{- end }} + {{- else if not .Values.persistence.enabled }} + - name: data + emptyDir: {} + {{- else }} + volumeClaimTemplates: + {{- if gt $drivesPerNode 1 }} + {{- range $diskId := until $drivesPerNode }} + - metadata: + name: data-{{ $diskId }} + labels: {{- include "common.labels.matchLabels" ( dict "customLabels" $.Values.commonLabels "context" $ ) | nindent 10 }} + {{- if $.Values.persistence.annotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" $.Values.persistence.annotations "context" $) | nindent 10 }} + {{- end }} + spec: + accessModes: + {{- range $.Values.persistence.accessModes }} + - {{ . | quote }} + {{- end }} + resources: + requests: + storage: {{ $.Values.persistence.size | quote }} + {{- if $.Values.persistence.selector }} + selector: {{- include "common.tplvalues.render" (dict "value" .Values.persistence.selector "context" $) | nindent 10 }} + {{- end }} + {{- include "common.storage.class" (dict "persistence" $.Values.persistence "global" $.Values.global) | nindent 8 }} + {{- end }} + {{- else }} + - metadata: + name: data + labels: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 10 }} + {{- if .Values.persistence.annotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.persistence.annotations "context" $) | nindent 10 }} + {{- end }} + spec: + accessModes: + {{- range .Values.persistence.accessModes }} + - {{ . | quote }} + {{- end }} + resources: + requests: + storage: {{ .Values.persistence.size | quote }} + {{- if .Values.persistence.selector }} + selector: {{- include "common.tplvalues.render" (dict "value" .Values.persistence.selector "context" $) | nindent 10 }} + {{- end }} + {{- include "common.storage.class" (dict "persistence" .Values.persistence "global" .Values.global) | nindent 8 }} + {{- end }} + {{- end }} +{{- end }} diff --git a/charts/thanos/charts/minio/templates/extra-list.yaml b/charts/thanos/charts/minio/templates/extra-list.yaml new file mode 100644 index 0000000000..329f5c653a --- /dev/null +++ b/charts/thanos/charts/minio/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/charts/thanos/charts/minio/templates/ingress.yaml b/charts/thanos/charts/minio/templates/ingress.yaml new file mode 100644 index 0000000000..1d0d551942 --- /dev/null +++ b/charts/thanos/charts/minio/templates/ingress.yaml @@ -0,0 +1,60 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if and .Values.ingress.enabled (not .Values.disableWebUI ) -}} +apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }} +kind: Ingress +metadata: + name: {{ include "common.names.fullname" . }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list (include "minio.ingress.annotations" . | fromYaml) .Values.commonAnnotations ) "context" . ) }} + {{- if $annotations }} + annotations: {{- include "common.tplvalues.render" (dict "value" $annotations "context" $) | nindent 4 }} + {{- end }} +spec: + {{- if and .Values.ingress.ingressClassName (include "common.ingress.supportsIngressClassname" .) }} + ingressClassName: {{ .Values.ingress.ingressClassName | quote }} + {{- end }} + rules: + {{- if (include "minio.ingress.hostname" .) }} + - host: {{ include "minio.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" "minio-console" "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" "minio-console" "context" $) | nindent 14 }} + {{- end }} + {{- if .Values.ingress.extraRules }} + {{- include "common.tplvalues.render" (dict "value" .Values.ingress.extraRules "context" $) | nindent 4 }} + {{- end }} + {{- $annotationsMap := include "common.tplvalues.render" (dict "value" $annotations "context" $) | fromYaml }} + {{- if or (and .Values.ingress.tls (or (include "common.ingress.certManagerRequest" ( dict "annotations" $annotationsMap )) .Values.ingress.selfSigned)) .Values.ingress.extraTls }} + tls: + {{- if and .Values.ingress.tls (or (include "common.ingress.certManagerRequest" ( dict "annotations" $annotationsMap )) .Values.ingress.selfSigned) }} + - hosts: + - {{ include "minio.ingress.hostname" . }} + secretName: {{ printf "%s-tls" (include "minio.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/charts/thanos/charts/minio/templates/networkpolicy.yaml b/charts/thanos/charts/minio/templates/networkpolicy.yaml new file mode 100644 index 0000000000..37f6a0c6f7 --- /dev/null +++ b/charts/thanos/charts/minio/templates/networkpolicy.yaml @@ -0,0 +1,83 @@ +{{- /* +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: {{ 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" . ) }} + 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 + # Allow outbound connections to other cluster pods + - ports: + - port: {{ .Values.containerPorts.api }} + - port: {{ .Values.containerPorts.console }} + - port: {{ .Values.service.ports.api }} + - port: {{ .Values.service.ports.console }} + to: + - podSelector: + matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 14 }} + {{- if .Values.networkPolicy.extraEgress }} + {{- include "common.tplvalues.render" ( dict "value" .Values.networkPolicy.extraEgress "context" $ ) | nindent 4 }} + {{- end }} + {{- end }} + ingress: + # Allow inbound connections + - ports: + - port: {{ .Values.containerPorts.console }} + - port: {{ .Values.containerPorts.api }} + {{- if not .Values.networkPolicy.allowExternal }} + from: + - podSelector: + matchLabels: + {{ include "common.names.fullname" . }}-client: "true" + - podSelector: + matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 14 }} + {{- if or .Values.networkPolicy.ingressNSMatchLabels .Values.networkPolicy.ingressNSPodMatchLabels }} + - namespaceSelector: + matchLabels: + {{- if .Values.networkPolicy.ingressNSMatchLabels }} + {{- range $key, $value := .Values.networkPolicy.ingressNSMatchLabels }} + {{ $key | quote }}: {{ $value | quote }} + {{- end }} + {{ else }} + {} + {{- end }} + {{- if .Values.networkPolicy.ingressNSPodMatchLabels }} + podSelector: + matchLabels: + {{- range $key, $value := .Values.networkPolicy.ingressNSPodMatchLabels }} + {{ $key | quote }}: {{ $value | quote }} + {{- end }} + {{- end }} + {{- end }} + {{- $extraIngress := coalesce .Values.networkPolicy.extraIngress .Values.networkPolicy.extraFromClauses }} + {{- if $extraIngress }} + {{- toYaml $extraIngress | nindent 8 }} + {{- end }} + {{- end }} + {{- if .Values.networkPolicy.extraIngress }} + {{- include "common.tplvalues.render" ( dict "value" .Values.networkPolicy.extraIngress "context" $ ) | nindent 4 }} + {{- end }} +{{- end }} diff --git a/charts/thanos/charts/minio/templates/pdb.yaml b/charts/thanos/charts/minio/templates/pdb.yaml new file mode 100644 index 0000000000..e34aa458a9 --- /dev/null +++ b/charts/thanos/charts/minio/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/charts/thanos/charts/minio/templates/prometheusrule.yaml b/charts/thanos/charts/minio/templates/prometheusrule.yaml new file mode 100644 index 0000000000..5f1d6fe57f --- /dev/null +++ b/charts/thanos/charts/minio/templates/prometheusrule.yaml @@ -0,0 +1,25 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if and .Values.metrics.enabled .Values.metrics.prometheusRule.enabled }} +{{- $releaseNamespace := default (include "common.names.namespace" .) .Values.metrics.prometheusRule.namespace }} +apiVersion: monitoring.coreos.com/v1 +kind: PrometheusRule +metadata: + name: {{ include "common.names.fullname" . }} + namespace: {{ $releaseNamespace | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/component: metrics + {{- if .Values.metrics.prometheusRule.additionalLabels }} + {{- include "common.tplvalues.render" ( dict "value" .Values.metrics.prometheusRule.additionalLabels "context" $ ) | nindent 4 }} + {{- end }} + {{- if .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +spec: + groups: + - name: {{ include "common.names.fullname" . }} + rules: {{- include "common.tplvalues.render" ( dict "value" .Values.metrics.prometheusRule.rules "context" $ ) | nindent 6 }} +{{- end }} diff --git a/charts/thanos/charts/minio/templates/provisioning-configmap.yaml b/charts/thanos/charts/minio/templates/provisioning-configmap.yaml new file mode 100644 index 0000000000..bf11bd1a96 --- /dev/null +++ b/charts/thanos/charts/minio/templates/provisioning-configmap.yaml @@ -0,0 +1,76 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if .Values.provisioning.enabled }} +{{- $fullname := printf "%s-provisioning" (include "common.names.fullname" .) }} +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ $fullname }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/component: minio-provisioning + {{- if .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +data: + {{- range $bucket := .Values.provisioning.buckets }} + {{- if $bucket.lifecycle }} + bucket-{{ $bucket.name }}.json: | + { + "Rules": [ + {{- range $idx, $lifecycle := $bucket.lifecycle }} + {{- if not (eq $idx 0) }} + , + {{- end }} + { + "ID": "{{ $lifecycle.id }}", + "Status": "{{ ternary "Disabled" "Enabled" (and (not (empty $lifecycle.disabled)) $lifecycle.disabled) }}", + {{- if $lifecycle.expiry }} + "Expiration": { + {{- with $lifecycle.expiry.date }} + "Date": "{{ . }}" + {{- end }} + {{- with $lifecycle.expiry.days }} + "Days": {{ . }} + {{- end }} + } + {{- with $lifecycle.expiry.nonconcurrentDays }} + , + "NoncurrentVersionExpiration": { + "NoncurrentDays": {{ . }} + } + {{- end }} + {{- with $lifecycle.prefix }} + , + "Filter": { + "Prefix": "{{ . }}" + } + {{- end }} + } + {{- end }} + {{- end }} + ] + } + {{- end }} + {{- end }} + {{- range $policy := .Values.provisioning.policies }} + policy-{{ $policy.name }}.json: | + {{- $statementsLength := sub (len $policy.statements) 1 }} + { + "Version": "2012-10-17", + "Statement": [ + {{- range $i, $statement := $policy.statements }} + { + "Effect": "{{ default "Deny" $statement.effect }}"{{ if $statement.actions }}, + "Action": {{ toJson $statement.actions }}{{end}}{{ if $statement.resources }}, + "Resource": {{ toJson $statement.resources }}{{end}}{{ if $statement.condition }}, + "Condition": {{ toJson $statement.condition }}{{end}} + }{{ if lt $i $statementsLength }},{{end }} + {{- end }} + ] + } + {{- end }} +{{- end }} diff --git a/charts/thanos/charts/minio/templates/provisioning-job.yaml b/charts/thanos/charts/minio/templates/provisioning-job.yaml new file mode 100644 index 0000000000..035593307a --- /dev/null +++ b/charts/thanos/charts/minio/templates/provisioning-job.yaml @@ -0,0 +1,370 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if .Values.provisioning.enabled }} +{{- $fullname := printf "%s-provisioning" (include "common.names.fullname" .) }} +{{- $minioAlias := "provisioning" }} +apiVersion: batch/v1 +kind: Job +metadata: + name: {{ $fullname }} + namespace: {{ include "common.names.namespace" . | quote }} + labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + app.kubernetes.io/component: minio-provisioning + annotations: + helm.sh/hook: post-install,post-upgrade + helm.sh/hook-delete-policy: before-hook-creation + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +spec: + {{- if .Values.provisioning.cleanupAfterFinished.enabled }} + ttlSecondsAfterFinished: {{ .Values.provisioning.cleanupAfterFinished.seconds }} + {{- end }} + parallelism: 1 + template: + metadata: + labels: {{- include "minio.labels.provisioning" . | nindent 8 }} + app.kubernetes.io/component: minio-provisioning + {{- if .Values.provisioning.podAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.provisioning.podAnnotations "context" $) | nindent 8 }} + {{- end }} + spec: + {{- include "minio.imagePullSecrets" . | nindent 6 }} + {{- if .Values.provisioning.schedulerName }} + schedulerName: {{ .Values.provisioning.schedulerName }} + {{- end }} + restartPolicy: OnFailure + terminationGracePeriodSeconds: 0 + {{- if .Values.provisioning.podSecurityContext.enabled }} + securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.provisioning.podSecurityContext "context" $) | nindent 8 }} + {{- end }} + serviceAccountName: {{ template "minio.serviceAccountName" . }} + initContainers: + - name: wait-for-available-minio + image: {{ include "minio.volumePermissions.image" . }} + imagePullPolicy: {{ .Values.image.pullPolicy | quote }} + {{- if .Values.provisioning.containerSecurityContext.enabled }} + securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.provisioning.containerSecurityContext "context" $) | nindent 12 }} + {{- end }} + command: + - /bin/bash + - -c + - |- + set -e; + echo "Waiting for Minio"; + wait-for-port \ + --host={{ include "common.names.fullname" . }} \ + --state=inuse \ + --timeout=120 \ + {{ .Values.service.ports.api | int64 }}; + echo "Minio is available"; + {{- if .Values.provisioning.resources }} + resources: {{- toYaml .Values.provisioning.resources | nindent 12 }} + {{- else if ne .Values.provisioning.resourcesPreset "none" }} + resources: {{- include "common.resources.preset" (dict "type" .Values.provisioning.resourcesPreset) | nindent 12 }} + {{- end }} + containers: + - name: minio + image: {{ include "minio.image" . }} + imagePullPolicy: {{ .Values.image.pullPolicy | quote }} + {{- if .Values.provisioning.containerSecurityContext.enabled }} + securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.provisioning.containerSecurityContext "context" $) | nindent 12 }} + {{- end }} + {{- if .Values.provisioning.command }} + command: {{- include "common.tplvalues.render" (dict "value" .Values.provisioning.command "context" $) | nindent 12 }} + {{- else }} + command: + - /bin/bash + - -c + - |- + set -e; + echo "Start Minio provisioning"; + + retry_while() { + local -r cmd="${1:?cmd is missing}" + local -r retries="${2:-12}" + local -r sleep_time="${3:-5}" + local return_value=1 + + read -r -a command <<< "$cmd" + for ((i = 1 ; i <= retries ; i+=1 )); do + "${command[@]}" && return_value=0 && break + sleep "$sleep_time" + done + return $return_value + } + + function attachPolicy() { + local tmp=$(mc admin $1 info {{ $minioAlias }} $2 | sed -n -e 's/^Policy.*: \(.*\)$/\1/p'); + IFS=',' read -r -a CURRENT_POLICIES <<< "$tmp"; + if [[ ! "${CURRENT_POLICIES[*]}" =~ "$3" ]]; then + mc admin policy attach {{ $minioAlias }} $3 --$1=$2; + fi; + }; + + function detachDanglingPolicies() { + local tmp=$(mc admin $1 info {{ $minioAlias }} $2 | sed -n -e 's/^Policy.*: \(.*\)$/\1/p'); + IFS=',' read -r -a CURRENT_POLICIES <<< "$tmp"; + IFS=',' read -r -a DESIRED_POLICIES <<< "$3"; + for current in "${CURRENT_POLICIES[@]}"; do + if [[ ! "${DESIRED_POLICIES[*]}" =~ "${current}" ]]; then + mc admin policy detach {{ $minioAlias }} $current --$1=$2; + fi; + done; + } + + function addUsersFromFile() { + local username=$(grep -oP '^username=\K.+' $1); + local password=$(grep -oP '^password=\K.+' $1); + local disabled=$(grep -oP '^disabled=\K.+' $1); + local policies_list=$(grep -oP '^policies=\K.+' $1); + local set_policies=$(grep -oP '^setPolicies=\K.+' $1); + + mc admin user add {{ $minioAlias }} "${username}" "${password}"; + + IFS=',' read -r -a POLICIES <<< "${policies_list}"; + for policy in "${POLICIES[@]}"; do + attachPolicy user "${username}" "${policy}"; + done; + if [ "${set_policies}" == "true" ]; then + detachDanglingPolicies user "${username}" "${policies_list}"; + fi; + + local user_status="enable"; + if [[ "${disabled}" != "" && "${disabled,,}" == "true" ]]; then + user_status="disable"; + fi; + + mc admin user "${user_status}" {{ $minioAlias }} "${username}"; + }; + + {{- $minioUrl := printf "$MINIO_SCHEME://%s:%d" (include "common.names.fullname" .) (.Values.service.ports.api | int) }} + {{- $minioRootUser := ternary ("$(<$MINIO_ROOT_USER_FILE)") ("$MINIO_ROOT_USER") (.Values.auth.useCredentialsFiles) }} + {{- $minioRootPassword := ternary ("$(<$MINIO_ROOT_PASSWORD_FILE)") ("$MINIO_ROOT_PASSWORD") (.Values.auth.useCredentialsFiles) }} + mc alias set {{ $minioAlias }} {{ $minioUrl }} {{ $minioRootUser }} {{ $minioRootPassword }}; + + {{- range $config := .Values.provisioning.config }} + {{- $options := list }} + {{- range $name, $value := $config.options }} + {{- $options = (printf "%s=%s" $name $value) | append $options }} + {{- end }} + {{- $options := join " " $options }} + mc admin config set {{ $minioAlias }} {{ $config.name }} {{ $options }}; + {{- end }} + + mc admin service restart {{ $minioAlias }} --wait --json; + + # Adding a sleep to ensure that the check below does not cause + # a race condition. We check for the MinIO port because the + # "mc admin service restart --wait" command is not working as expected + sleep {{ .Values.provisioning.sleepTime | default 5 }}; + echo "Waiting for Minio to be available after restart"; + if ! retry_while "mc admin info {{ $minioAlias }}"; then + echo "Error connecting to Minio" + exit 1 + fi + echo "Minio is available. Executing provisioning commands"; + + {{- range $policy := .Values.provisioning.policies }} + mc admin policy create {{ $minioAlias }} {{ $policy.name }} /etc/ilm/policy-{{ $policy.name }}.json; + {{- end }} + + {{- range $user := .Values.provisioning.users }} + mc admin user add {{ $minioAlias }} {{ $user.username }} {{ $user.password }}; + {{- range $policy := $user.policies }} + attachPolicy user {{ $user.username }} {{ $policy }}; + {{- end }} + {{- if $user.setPolicies }} + detachDanglingPolicies user {{ $user.username }} "{{ join "," $user.policies }}"; + {{- end }} + {{- $userStatus := ternary ("disable") ("enable") (and (not (empty $user.disabled)) $user.disabled) }} + mc admin user {{ $userStatus }} {{ $minioAlias }} {{ $user.username }}; + {{- end }} + {{- if gt (len .Values.provisioning.usersExistingSecrets) 0 }} + while read -d '' configFile; do + addUsersFromFile "${configFile}"; + done < <(find "/opt/bitnami/minio/users/" -type l -not -name '..data' -print0); + {{- end }} + + {{- range $group := .Values.provisioning.groups }} + mc admin group add {{ $minioAlias }} {{ $group.name }} {{ join " " $group.members }}; + {{- range $policy := $group.policies }} + attachPolicy group {{ $group.name }} {{ $policy }}; + {{- end }} + {{- if $group.setPolicies }} + detachDanglingPolicies group {{ $group.name }} "{{ join "," $group.policies }}"; + {{- end }} + {{- $groupStatus := ternary ("disable") ("enable") (and (not (empty $group.disabled)) $group.disabled) }} + mc admin group {{ $groupStatus }} {{ $minioAlias }} {{ $group.name }}; + {{- end }} + + {{- range $bucket := .Values.provisioning.buckets }} + {{- $target := printf "%s/%s" $minioAlias $bucket.name }} + {{- $region := ternary (printf "--region=%s" $bucket.region) ("") (not (empty $bucket.region)) }} + {{- $withLock := ternary ("--with-lock") ("") (and (not (empty $bucket.withLock)) $bucket.withLock) }} + mc mb {{ $target }} --ignore-existing {{ $region }} {{ $withLock }}; + + {{- if $bucket.lifecycle }} + mc ilm import {{ $minioAlias }}/{{ $bucket.name }} < /etc/ilm/bucket-{{ $bucket.name }}.json; + {{- end }} + + {{- with $bucket.quota }} + {{- if eq .type "hard" }} + mc quota set {{ $minioAlias }}/{{ $bucket.name }} {{ if .size }}--size {{ .size }}{{ end }}; + {{- else }} + mc quota {{ .type }} {{ $minioAlias }}/{{ $bucket.name }} {{ if .size }}--size {{ .size }}{{ end }}; + {{- end }} + {{- end }} + + {{- if (or ((empty $bucket.withLock)) (not $bucket.withLock)) }} + {{- $versioning := default "Suspended" $bucket.versioning }} + {{- if kindIs "bool" $bucket.versioning }} + {{- $versioning = ternary "Versioned" "Suspended" $bucket.versioning }} + {{- end }} + {{- if eq $versioning "Versioned" }} + mc version enable {{ $minioAlias }}/{{ $bucket.name }}; + {{- else if eq $versioning "Suspended" }} + mc version suspend {{ $minioAlias }}/{{ $bucket.name }}; + {{- else if ne $versioning "Unchanged" }} + {{- fail (printf "Invalid value '%s' for versioning of bucket '%s'" $versioning $bucket.name) }} + {{- end }} + {{- end }} + + {{- if $bucket.tags }} + {{- $target := printf "%s/%s" $minioAlias $bucket.name }} + {{- $tags := list }} + {{- range $name, $value := $bucket.tags }} + {{- $tags = (printf "%s=%s" $name $value) | append $tags }} + {{- end }} + {{- $tags = join "&" $tags | quote }} + mc tag set {{ $target }} {{ $tags }}; + {{- end }} + {{- end }} + + {{- if .Values.provisioning.extraCommands }} + {{ join ";" .Values.provisioning.extraCommands | nindent 14 }}; + {{- end }} + + echo "End Minio provisioning"; + {{- end }} + {{- if .Values.provisioning.args }} + args: {{- include "common.tplvalues.render" (dict "value" .Values.provisioning.args "context" $) | nindent 12 }} + {{- end }} + env: + - name: MINIO_SCHEME + value: {{ ternary "https" "http" .Values.tls.enabled | quote }} + {{- if .Values.auth.useCredentialsFiles }} + - name: MINIO_ROOT_USER_FILE + value: "/opt/bitnami/minio/secrets/root-user" + - name: MINIO_ROOT_PASSWORD_FILE + value: "/opt/bitnami/minio/secrets/root-password" + {{- else }} + - name: MINIO_ROOT_USER + valueFrom: + secretKeyRef: + name: {{ include "minio.secretName" . }} + key: {{ include "minio.rootUserKey" . }} + - name: MINIO_ROOT_PASSWORD + valueFrom: + secretKeyRef: + name: {{ include "minio.secretName" . }} + key: {{ include "minio.rootPasswordKey" . }} + {{- end }} + {{- if .Values.tls.mountPath }} + - name: MINIO_CERTS_DIR + value: {{ .Values.tls.mountPath | quote }} + {{- 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.provisioning.resources }} + resources: {{- toYaml .Values.provisioning.resources | nindent 12 }} + {{- else if ne .Values.provisioning.resourcesPreset "none" }} + resources: {{- include "common.resources.preset" (dict "type" .Values.provisioning.resourcesPreset) | nindent 12 }} + {{- end }} + volumeMounts: + - name: empty-dir + mountPath: /.mc + subPath: app-mc-dir + - name: empty-dir + mountPath: /opt/bitnami/minio/tmp + subPath: app-tmp-dir + - name: empty-dir + mountPath: /tmp + subPath: tmp-dir + {{- if .Values.provisioning.enabled }} + - name: minio-provisioning + mountPath: /etc/ilm + {{- end }} + {{- if .Values.auth.useCredentialsFiles }} + - name: minio-credentials + mountPath: /opt/bitnami/minio/secrets/ + {{- end }} + {{- if .Values.tls.enabled }} + - name: minio-certs + mountPath: {{ default "/certs" .Values.tls.mountPath }} + - name: minio-client-certs + mountPath: /.mc/certs + {{- end }} + {{- range $idx, $_ := .Values.provisioning.usersExistingSecrets }} + - name: {{ printf "users-secret-%d" $idx }} + mountPath: /opt/bitnami/minio/users/{{ $idx }}/ + {{- end }} + {{- if .Values.provisioning.extraVolumeMounts }} + {{- include "common.tplvalues.render" (dict "value" .Values.provisioning.extraVolumeMounts "context" $) | nindent 12 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.tolerations "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.provisioning.nodeSelector }} + nodeSelector: {{- include "common.tplvalues.render" (dict "value" .Values.provisioning.nodeSelector "context" $) | nindent 8 }} + {{- end }} + volumes: + - name: empty-dir + emptyDir: {} + {{- if .Values.provisioning.enabled }} + - name: minio-provisioning + configMap: + name: {{ $fullname }} + {{- end }} + {{- if .Values.auth.useCredentialsFiles }} + - name: minio-credentials + secret: + secretName: {{ include "minio.secretName" . }} + {{- end }} + {{- range $idx, $userSecret := .Values.provisioning.usersExistingSecrets }} + - name: {{ printf "users-secret-%d" $idx }} + secret: + secretName: {{ $userSecret }} + {{- end }} + {{- if .Values.tls.enabled }} + - name: minio-certs + secret: + secretName: {{ include "minio.tlsSecretName" . }} + items: + - key: tls.crt + path: public.crt + - key: tls.key + path: private.key + - key: ca.crt + path: CAs/public.crt + - name: minio-client-certs + secret: + secretName: {{ include "minio.tlsSecretName" . }} + items: + - key: ca.crt + path: CAs/public.crt + {{- end }} + {{- if .Values.provisioning.extraVolumes }} + {{- include "common.tplvalues.render" (dict "value" .Values.provisioning.extraVolumes "context" $) | nindent 8 }} + {{- end }} +{{- end }} diff --git a/charts/thanos/charts/minio/templates/provisioning-networkpolicy.yaml b/charts/thanos/charts/minio/templates/provisioning-networkpolicy.yaml new file mode 100644 index 0000000000..ea9fb4a1cd --- /dev/null +++ b/charts/thanos/charts/minio/templates/provisioning-networkpolicy.yaml @@ -0,0 +1,50 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if and .Values.provisioning.enabled .Values.provisioning.networkPolicy.enabled }} +kind: NetworkPolicy +apiVersion: {{ include "common.capabilities.networkPolicy.apiVersion" . }} +metadata: + name: {{ printf "%s-provisioning" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }} + 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: + app.kubernetes.io/component: minio-provisioning + policyTypes: + - Ingress + - Egress + {{- if .Values.provisioning.networkPolicy.allowExternalEgress }} + egress: + - {} + {{- else }} + egress: + # Allow dns resolution + - ports: + - port: 53 + protocol: UDP + # Allow outbound connections to other cluster pods + - ports: + - port: {{ .Values.containerPorts.api }} + - port: {{ .Values.containerPorts.console }} + - port: {{ .Values.service.ports.api }} + - port: {{ .Values.service.ports.console }} + to: + - podSelector: + matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 14 }} + {{- if .Values.provisioning.networkPolicy.extraEgress }} + {{- include "common.tplvalues.render" ( dict "value" .Values.dataCoord.networkPolicy.extraEgress "context" $ ) | nindent 4 }} + {{- end }} + {{- end }} + ingress: + {{- if .Values.provisioning.networkPolicy.extraIngress }} + {{- include "common.tplvalues.render" ( dict "value" .Values.initJob.networkPolicy.extraIngress "context" $ ) | nindent 4 }} + {{- end }} +{{- end }} diff --git a/charts/thanos/charts/minio/templates/pvc.yaml b/charts/thanos/charts/minio/templates/pvc.yaml new file mode 100644 index 0000000000..33e6727674 --- /dev/null +++ b/charts/thanos/charts/minio/templates/pvc.yaml @@ -0,0 +1,26 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if (include "minio.createPVC" .) }} +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: + accessModes: + {{- range .Values.persistence.accessModes }} + - {{ . | quote }} + {{- end }} + resources: + requests: + storage: {{ .Values.persistence.size | quote }} + {{- include "common.storage.class" (dict "persistence" .Values.persistence "global" .Values.global) | nindent 2 }} +{{- end }} diff --git a/charts/thanos/charts/minio/templates/secrets.yaml b/charts/thanos/charts/minio/templates/secrets.yaml new file mode 100644 index 0000000000..aed9e97716 --- /dev/null +++ b/charts/thanos/charts/minio/templates/secrets.yaml @@ -0,0 +1,20 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if (include "minio.createSecret" .) }} +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: + root-user: {{ include "minio.secret.userValue" . }} + root-password: {{ include "minio.secret.passwordValue" . }} +{{- end }} diff --git a/charts/thanos/charts/minio/templates/service.yaml b/charts/thanos/charts/minio/templates/service.yaml new file mode 100644 index 0000000000..1230a2bd40 --- /dev/null +++ b/charts/thanos/charts/minio/templates/service.yaml @@ -0,0 +1,51 @@ +{{- /* +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.service.annotations .Values.commonAnnotations }} + {{- $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 and (eq .Values.service.type "ClusterIP") .Values.service.clusterIP }} + clusterIP: {{ .Values.service.clusterIP }} + {{- end }} + {{- if or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort") }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} + {{- end }} + {{- if and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerSourceRanges }} + loadBalancerSourceRanges: {{- toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }} + {{- end }} + {{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP)) }} + loadBalancerIP: {{ .Values.service.loadBalancerIP }} + {{- end }} + ports: + - name: minio-api + port: {{ .Values.service.ports.api }} + targetPort: minio-api + {{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.api)) }} + nodePort: {{ .Values.service.nodePorts.api }} + {{- else if eq .Values.service.type "ClusterIP" }} + nodePort: null + {{- end }} + - name: minio-console + port: {{ .Values.service.ports.console }} + targetPort: minio-console + {{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.console)) }} + nodePort: {{ .Values.service.nodePorts.console }} + {{- else if eq .Values.service.type "ClusterIP" }} + nodePort: null + {{- 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/charts/thanos/charts/minio/templates/serviceaccount.yaml b/charts/thanos/charts/minio/templates/serviceaccount.yaml new file mode 100644 index 0000000000..ac3f4637a6 --- /dev/null +++ b/charts/thanos/charts/minio/templates/serviceaccount.yaml @@ -0,0 +1,20 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if .Values.serviceAccount.create }} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ template "minio.serviceAccountName" . }} + namespace: {{ include "common.names.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 }} +secrets: + - name: {{ include "common.names.fullname" . }} +{{- end }} diff --git a/charts/thanos/charts/minio/templates/servicemonitor.yaml b/charts/thanos/charts/minio/templates/servicemonitor.yaml new file mode 100644 index 0000000000..1fa14e797e --- /dev/null +++ b/charts/thanos/charts/minio/templates/servicemonitor.yaml @@ -0,0 +1,66 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} +{{- /* TODO: On major version upgrade, add .Values.metrics.enabled to that check */}} +{{- if .Values.metrics.serviceMonitor.enabled }} +{{- $releaseNamespace := default (include "common.names.namespace" .) .Values.metrics.serviceMonitor.namespace }} +apiVersion: {{ default "monitoring.coreos.com/v1" .Values.metrics.serviceMonitor.apiVersion }} +kind: ServiceMonitor +metadata: + name: {{ include "common.names.fullname" . }} + namespace: {{ $releaseNamespace | quote }} + {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.metrics.serviceMonitor.labels .Values.commonLabels ) "context" . ) }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }} + {{- if .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +spec: + endpoints: + {{- /* Backward Compatibility for .Values.metrics.serviceMonitor.path */}} + {{- $paths := list }} + {{- if (.Values.metrics.serviceMonitor.paths | empty | not) }} + {{- $paths = .Values.metrics.serviceMonitor.paths }} + {{- end }} + {{- if (.Values.metrics.serviceMonitor.path | empty | not) }} + {{- $paths = prepend $paths .Values.metrics.serviceMonitor.path }} + {{- end }} + {{- range $idx, $path := ($paths | uniq) }} + {{- with $ }} + - port: minio-api + path: {{ $path }} + {{- if .Values.metrics.serviceMonitor.interval }} + interval: {{ .Values.metrics.serviceMonitor.interval }} + {{- end }} + {{- if .Values.metrics.serviceMonitor.scrapeTimeout }} + scrapeTimeout: {{ .Values.metrics.serviceMonitor.scrapeTimeout }} + {{- end }} + {{- if .Values.metrics.serviceMonitor.honorLabels }} + honorLabels: {{ .Values.metrics.serviceMonitor.honorLabels }} + {{- end }} + {{- if .Values.metrics.serviceMonitor.metricRelabelings }} + metricRelabelings: {{- toYaml .Values.metrics.serviceMonitor.metricRelabelings | nindent 8 }} + {{- end }} + {{- if .Values.metrics.serviceMonitor.relabelings }} + relabelings: {{- toYaml .Values.metrics.serviceMonitor.relabelings | nindent 8 }} + {{- end }} + {{- if .Values.tls.enabled }} + scheme: https + {{- end }} + {{- if .Values.metrics.serviceMonitor.tlsConfig }} + tlsConfig: {{- toYaml .Values.metrics.serviceMonitor.tlsConfig | nindent 8 }} + {{- end }} + {{- end }} + {{- end }} + {{- if .Values.metrics.serviceMonitor.jobLabel }} + jobLabel: {{ .Values.metrics.serviceMonitor.jobLabel }} + {{- end }} + namespaceSelector: + matchNames: + - {{ include "common.names.namespace" . | quote }} + selector: + matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 6 }} + {{- if .Values.metrics.serviceMonitor.selector }} + {{- include "common.tplvalues.render" (dict "value" .Values.metrics.serviceMonitor.selector "context" $) | nindent 6 }} + {{- end }} +{{- end }} diff --git a/charts/thanos/charts/minio/templates/standalone/deployment.yaml b/charts/thanos/charts/minio/templates/standalone/deployment.yaml new file mode 100644 index 0000000000..7a33bf3cdd --- /dev/null +++ b/charts/thanos/charts/minio/templates/standalone/deployment.yaml @@ -0,0 +1,280 @@ +{{- /* +Copyright Broadcom, Inc. All Rights Reserved. +SPDX-License-Identifier: APACHE-2.0 +*/}} + +{{- if (eq .Values.mode "standalone") }} +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.deployment.updateStrategy }} + strategy: {{- toYaml .Values.deployment.updateStrategy | nindent 4 }} + {{- end }} + template: + metadata: + labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} + {{- if or .Values.podAnnotations (include "minio.createSecret" .) }} + annotations: + {{- if (include "minio.createSecret" .) }} + checksum/credentials-secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }} + {{- end }} + {{- if .Values.podAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.podAnnotations "context" $) | nindent 8 }} + {{- end }} + {{- end }} + spec: + {{- include "minio.imagePullSecrets" . | nindent 6 }} + {{- if .Values.schedulerName }} + schedulerName: {{ .Values.schedulerName }} + {{- end }} + serviceAccountName: {{ template "minio.serviceAccountName" . }} + {{- 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.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 }} + {{- if .Values.topologySpreadConstraints }} + topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.topologySpreadConstraints "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName | quote }} + {{- end }} + {{- if .Values.runtimeClassName }} + runtimeClassName: {{ .Values.runtimeClassName | quote }} + {{- end}} + automountServiceAccountToken: {{ .Values.automountServiceAccountToken }} + {{- if .Values.hostAliases }} + hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.podSecurityContext.enabled }} + securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.podSecurityContext "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.terminationGracePeriodSeconds }} + terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} + {{- end }} + {{- if or .Values.initContainers (and .Values.volumePermissions.enabled .Values.persistence.enabled) }} + 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: {{ template "minio.volumePermissions.image" . }} + imagePullPolicy: {{ default "" .Values.volumePermissions.image.pullPolicy | quote }} + command: + - /bin/bash + - -ec + - | + chown -R {{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }} {{ .Values.persistence.mountPath }} + securityContext: {{- .Values.volumePermissions.containerSecurityContext | toYaml | nindent 12 }} + {{- 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: empty-dir + mountPath: /tmp + subPath: tmp-dir + - name: data + mountPath: {{ .Values.persistence.mountPath }} + {{- end }} + {{- end }} + containers: + - name: minio + image: {{ include "minio.image" . }} + imagePullPolicy: {{ .Values.image.pullPolicy | quote }} + {{- if .Values.containerSecurityContext.enabled }} + securityContext: {{- include "common.compatibility.renderSecurityContext" (dict "secContext" .Values.containerSecurityContext "context" $) | nindent 12 }} + {{- end }} + {{- 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 }} + env: + - name: BITNAMI_DEBUG + value: {{ ternary "true" "false" .Values.image.debug | quote }} + - name: MINIO_SCHEME + value: {{ ternary "https" "http" .Values.tls.enabled | quote }} + - name: MINIO_FORCE_NEW_KEYS + value: {{ ternary "yes" "no" .Values.auth.forceNewKeys | quote }} + - name: MINIO_API_PORT_NUMBER + value: {{ .Values.containerPorts.api | quote }} + {{- if .Values.auth.useCredentialsFiles }} + - name: MINIO_ROOT_USER_FILE + value: "/opt/bitnami/minio/secrets/root-user" + - name: MINIO_ROOT_PASSWORD_FILE + value: "/opt/bitnami/minio/secrets/root-password" + {{- else }} + - name: MINIO_ROOT_USER + valueFrom: + secretKeyRef: + name: {{ include "minio.secretName" . }} + key: {{ include "minio.rootUserKey" . }} + - name: MINIO_ROOT_PASSWORD + valueFrom: + secretKeyRef: + name: {{ include "minio.secretName" . }} + key: {{ include "minio.rootPasswordKey" . }} + {{- end }} + {{- if .Values.defaultBuckets }} + - name: MINIO_DEFAULT_BUCKETS + value: {{ .Values.defaultBuckets }} + {{- end }} + - name: MINIO_BROWSER + value: {{ ternary "off" "on" .Values.disableWebUI | quote }} + - name: MINIO_PROMETHEUS_AUTH_TYPE + value: {{ .Values.metrics.prometheusAuthType | quote }} + - name: MINIO_CONSOLE_PORT_NUMBER + value: {{ .Values.containerPorts.console | quote }} + {{- if .Values.tls.mountPath }} + - name: MINIO_CERTS_DIR + value: {{ .Values.tls.mountPath | quote }} + {{- end }} + {{- if .Values.persistence.mountPath }} + - name: MINIO_DATA_DIR + value: {{ .Values.persistence.mountPath | quote }} + {{- end }} + {{- 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 }} + ports: + - name: minio-api + containerPort: {{ .Values.containerPorts.api }} + protocol: TCP + - name: minio-console + containerPort: {{ .Values.containerPorts.console }} + protocol: TCP + {{- if .Values.customLivenessProbe }} + livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }} + {{- else if .Values.livenessProbe.enabled }} + livenessProbe: + httpGet: + path: /minio/health/live + port: minio-api + scheme: {{ ternary "HTTPS" "HTTP" .Values.tls.enabled | quote }} + 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: + tcpSocket: + port: minio-api + initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.readinessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} + successThreshold: {{ .Values.readinessProbe.successThreshold }} + failureThreshold: {{ .Values.readinessProbe.failureThreshold }} + {{- end }} + {{- if .Values.customStartupProbe }} + startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customStartupProbe "context" $) | nindent 12 }} + {{- else if .Values.startupProbe.enabled }} + startupProbe: + tcpSocket: + port: minio-console + initialDelaySeconds: {{ .Values.startupProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.startupProbe.periodSeconds }} + timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }} + successThreshold: {{ .Values.startupProbe.successThreshold }} + failureThreshold: {{ .Values.startupProbe.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 }} + {{- if .Values.lifecycleHooks }} + lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleHooks "context" $) | nindent 12 }} + {{- end }} + volumeMounts: + - name: empty-dir + mountPath: /tmp + subPath: tmp-dir + - name: empty-dir + mountPath: /opt/bitnami/minio/tmp + subPath: app-tmp-dir + - name: empty-dir + mountPath: /.mc + subPath: app-mc-dir + {{- if and .Values.auth.useSecret .Values.auth.useCredentialsFiles }} + - name: minio-credentials + mountPath: /opt/bitnami/minio/secrets/ + {{- end }} + - name: data + mountPath: {{ .Values.persistence.mountPath }} + {{- if .Values.tls.enabled }} + - name: minio-certs + mountPath: {{ default "/certs" .Values.tls.mountPath }} + {{- end }} + {{- 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: {} + {{- if and .Values.auth.useSecret .Values.auth.useCredentialsFiles }} + - name: minio-credentials + secret: + secretName: {{ include "minio.secretName" . }} + {{- end }} + - name: data + {{- if .Values.persistence.enabled }} + persistentVolumeClaim: + claimName: {{ include "minio.claimName" . }} + {{- else }} + emptyDir: {} + {{- end }} + {{- if .Values.tls.enabled }} + - name: minio-certs + secret: + secretName: {{ include "minio.tlsSecretName" . }} + items: + - key: tls.crt + path: public.crt + - key: tls.key + path: private.key + - key: ca.crt + path: CAs/public.crt + {{- end }} + {{- if .Values.extraVolumes }} + {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }} + {{- end }} +{{- end }} diff --git a/charts/thanos/charts/minio/templates/tls-secrets.yaml b/charts/thanos/charts/minio/templates/tls-secrets.yaml new file mode 100644 index 0000000000..765664a103 --- /dev/null +++ b/charts/thanos/charts/minio/templates/tls-secrets.yaml @@ -0,0 +1,69 @@ +{{- /* +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 "minio-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 }} +{{- if (include "minio.createTlsSecret" .) }} +{{- $secretName := printf "%s-crt" (include "common.names.fullname" .) }} +{{- $ca := genCA "minio-ca" 365 }} +{{- $releaseNamespace := include "common.names.namespace" . }} +{{- $clusterDomain := .Values.clusterDomain }} +{{- $fullname := include "common.names.fullname" . }} +{{- $serviceName := include "common.names.fullname" . }} +{{- $headlessServiceName := printf "%s-headless" (include "common.names.fullname" .) }} +{{- $altNames := list (printf "*.%s.%s.svc.%s" $serviceName $releaseNamespace $clusterDomain) (printf "%s.%s.svc.%s" $serviceName $releaseNamespace $clusterDomain) (printf "*.%s.%s.svc.%s" $headlessServiceName $releaseNamespace $clusterDomain) (printf "%s.%s.svc.%s" $headlessServiceName $releaseNamespace $clusterDomain) "127.0.0.1" "localhost" $fullname }} +{{- $cert := genSignedCert $fullname nil $altNames 365 $ca }} +--- +apiVersion: v1 +kind: Secret +metadata: + name: {{ $secretName }} + 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 }} diff --git a/charts/thanos/charts/minio/values.yaml b/charts/thanos/charts/minio/values.yaml new file mode 100644 index 0000000000..58711bee8d --- /dev/null +++ b/charts/thanos/charts/minio/values.yaml @@ -0,0 +1,1278 @@ +# 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.defaultStorageClass Global default StorageClass for Persistent Volume(s) +## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead +## +global: + imageRegistry: "" + ## e.g. + ## imagePullSecrets: + ## - myRegistryKeySecretName + ## + imagePullSecrets: [] + defaultStorageClass: "" + storageClass: "" + ## Security parameters + ## + security: + ## @param global.security.allowInsecureImages Allows skipping image verification + allowInsecureImages: false + ## 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 nameOverride String to partially override common.names.fullname template (will maintain the release name) +## +nameOverride: "" +## @param namespaceOverride String to fully override common.names.namespace +## +namespaceOverride: "" +## @param fullnameOverride String to fully override common.names.fullname template +## +fullnameOverride: "" +## @param commonLabels Labels to add to all deployed objects +## +commonLabels: {} +## @param commonAnnotations Annotations to add to all deployed objects +## +commonAnnotations: {} +## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set) +## +kubeVersion: "" +## @param clusterDomain Default Kubernetes cluster domain +## +clusterDomain: cluster.local +## @param extraDeploy Array of extra objects to deploy with the release +## +extraDeploy: [] +## @section MinIO® parameters + +## Bitnami MinIO® image version +## ref: https://hub.docker.com/r/bitnami/minio/tags/ +## @param image.registry [default: REGISTRY_NAME] MinIO® image registry +## @param image.repository [default: REPOSITORY_NAME/minio] MinIO® image repository +## @skip image.tag MinIO® image tag (immutable tags are recommended) +## @param image.digest MinIO® image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag +## @param image.pullPolicy 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/minio + tag: 2025.3.12-debian-12-r0 + digest: "" + ## Specify a imagePullPolicy + ## 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 +## Bitnami MinIO® Client image version +## ref: https://hub.docker.com/r/bitnami/minio-client/tags/ +## @param clientImage.registry [default: REGISTRY_NAME] MinIO® Client image registry +## @param clientImage.repository [default: REPOSITORY_NAME/minio-client] MinIO® Client image repository +## @skip clientImage.tag MinIO® Client image tag (immutable tags are recommended) +## @param clientImage.digest MinIO® Client image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag +## +clientImage: + registry: docker.io + repository: bitnami/minio-client + tag: 2025.3.12-debian-12-r0 + digest: "" +## @param mode MinIO® server mode (`standalone` or `distributed`) +## ref: https://docs.minio.io/docs/distributed-minio-quickstart-guide +## +mode: standalone +## MinIO® authentication parameters +## +auth: + ## @param auth.rootUser MinIO® root username + ## + rootUser: admin + ## @param auth.rootPassword Password for MinIO® root user + ## + rootPassword: "" + ## @param auth.existingSecret Use existing secret for credentials details (`auth.rootUser` and `auth.rootPassword` will be ignored and picked up from this secret). + ## + existingSecret: "" + ## @param auth.rootUserSecretKey Key where the MINIO_ROOT_USER username is being stored inside the existing secret `auth.existingSecret` + ## + rootUserSecretKey: "" + ## @param auth.rootPasswordSecretKey Key where the MINIO_ROOT_USER password is being stored inside the existing secret `auth.existingSecret` + ## + rootPasswordSecretKey: "" + ## @param auth.forcePassword Force users to specify required passwords + ## + forcePassword: false + ## @param auth.useCredentialsFiles Mount credentials as a files instead of using an environment variable + ## + useCredentialsFiles: false + ## @param auth.useSecret Uses a secret to mount the credential files. + ## + useSecret: true + ## @param auth.forceNewKeys Force root credentials (user and password) to be reconfigured every time they change in the secrets + ## + forceNewKeys: false +## @param defaultBuckets Comma, semi-colon or space separated list of buckets to create at initialization (only in standalone mode) +## e.g: +## defaultBuckets: "my-bucket, my-second-bucket" +## +defaultBuckets: "" +## @param disableWebUI Disable MinIO® Web UI +## ref: https://github.com/minio/minio/tree/master/docs/config/#browser +## +disableWebUI: false +## Enable tls in front of MinIO® containers. +## +tls: + ## @param tls.enabled Enable tls in front of the container + ## + enabled: false + ## @param tls.autoGenerated Generate automatically self-signed TLS certificates + ## + autoGenerated: false + ## @param tls.existingSecret Name of an existing secret holding the certificate information + ## + existingSecret: "" + ## @param tls.mountPath The mount path where the secret will be located + ## Custom mount path where the certificates will be located, if empty will default to /certs + mountPath: "" +## @param extraEnvVars Extra environment variables to be set on MinIO® container +## e.g: +## extraEnvVars: +## - name: FOO +## value: "bar" +## +extraEnvVars: [] +## @param extraEnvVarsCM ConfigMap with extra environment variables +## +extraEnvVarsCM: "" +## @param extraEnvVarsSecret Secret with extra environment variables +## +extraEnvVarsSecret: "" +## @param command Default container command (useful when using custom images). Use array form +## +command: [] +## @param args Default container args (useful when using custom images). Use array form +## +args: [] +## @section MinIO® deployment/statefulset parameters + +## @param schedulerName Specifies the schedulerName, if it's nil uses kube-scheduler +## https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ +## +schedulerName: "" +## @param terminationGracePeriodSeconds In seconds, time the given to the MinIO pod needs to terminate gracefully +## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods +## +terminationGracePeriodSeconds: "" +## MinIO® deployment parameters +## Only when 'mode' is 'standalone' +## +deployment: + ## @param deployment.updateStrategy.type Deployment strategy type + ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies + ## e.g: + ## updateStrategy: + ## type: RollingUpdate + ## rollingUpdate: + ## maxSurge: 25% + ## maxUnavailable: 25% + ## + updateStrategy: + type: Recreate +## MinIO® statefulset parameters +## Only when mode is 'distributed' +## +statefulset: + ## @param statefulset.updateStrategy.type StatefulSet strategy type + ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies + ## e.g: + ## updateStrategy: + ## type: RollingUpdate + ## rollingUpdate: + ## maxSurge: 25% + ## maxUnavailable: 25% + ## + updateStrategy: + type: RollingUpdate + ## @param statefulset.podManagementPolicy StatefulSet controller supports relax its ordering guarantees while preserving its uniqueness and identity guarantees. There are two valid pod management policies: OrderedReady and Parallel + ## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#pod-management-policy + ## + podManagementPolicy: Parallel + ## @param statefulset.replicaCount Number of pods per zone (only for MinIO® distributed mode). Should be even and `>= 4` + ## + replicaCount: 4 + ## @param statefulset.zones Number of zones (only for MinIO® distributed mode) + ## + zones: 1 + ## @param statefulset.drivesPerNode Number of drives attached to every node (only for MinIO® distributed mode) + ## + drivesPerNode: 1 +## MinIO® provisioning +## +provisioning: + ## @param provisioning.enabled Enable MinIO® provisioning Job + ## + enabled: false + ## @param provisioning.sleepTime Sleep time before checking Minio availability + ## + sleepTime: 5 + ## @param provisioning.schedulerName Name of the k8s scheduler (other than default) for MinIO® provisioning + ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ + ## + schedulerName: "" + ## @param provisioning.nodeSelector Node labels for pod assignment. Evaluated as a template. + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes/ + ## + nodeSelector: {} + ## @param provisioning.podLabels Extra labels for provisioning pods + ## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + ## + podLabels: {} + ## @param provisioning.podAnnotations Provisioning Pod annotations. + ## + podAnnotations: {} + ## @param provisioning.command Default provisioning container command (useful when using custom images). Use array form + ## + command: [] + ## @param provisioning.args Default provisioning container args (useful when using custom images). Use array form + ## + args: [] + ## @param provisioning.extraCommands Optionally specify extra list of additional commands for MinIO® provisioning pod + ## + extraCommands: [] + ## @param provisioning.extraVolumes Optionally specify extra list of additional volumes for MinIO® provisioning pod + ## + extraVolumes: [] + ## @param provisioning.extraVolumeMounts Optionally specify extra list of additional volumeMounts for MinIO® provisioning container + ## + extraVolumeMounts: [] + ## 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 provisioning.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if provisioning.resources is set (provisioning.resources is recommended for production). + ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15 + ## + resourcesPreset: "nano" + ## @param provisioning.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: {} + ## @param provisioning.policies MinIO® policies provisioning + ## https://docs.min.io/docs/minio-admin-complete-guide.html#policy + ## e.g. + ## policies: + ## - name: custom-bucket-specific-policy + ## statements: + ## - resources: + ## - "arn:aws:s3:::my-bucket" + ## actions: + ## - "s3:GetBucketLocation" + ## - "s3:ListBucket" + ## - "s3:ListBucketMultipartUploads" + ## - resources: + ## - "arn:aws:s3:::my-bucket/*" + ## # Allowed values: "Allow" | "Deny" + ## # Defaults to "Deny" if not specified + ## effect: "Allow" + ## actions: + ## - "s3:AbortMultipartUpload" + ## - "s3:DeleteObject" + ## - "s3:GetObject" + ## - "s3:ListMultipartUploadParts" + ## - "s3:PutObject" + ## condition: + ## StringLike: + ## "s3:prefix": + ## - "${aws:username}/*" + policies: [] + ## @param provisioning.users MinIO® users provisioning. Can be used in addition to provisioning.usersExistingSecrets. + ## https://docs.min.io/docs/minio-admin-complete-guide.html#user + ## e.g. + ## users: + ## - username: test-username + ## password: test-password + ## disabled: false + ## policies: + ## - readwrite + ## - consoleAdmin + ## - diagnostics + ## # When set to true, it will replace all policies with the specified. + ## # When false, the policies will be added to the existing. + ## setPolicies: false + users: [] + ## @param provisioning.usersExistingSecrets Array if existing secrets containing MinIO® users to be provisioned. Can be used in addition to provisioning.users. + ## https://docs.min.io/docs/minio-admin-complete-guide.html#user + ## + ## Instead of configuring users inside values.yaml, referring to existing Kubernetes secrets containing user + ## configurations is possible. + ## e.g. + ## usersExistingSecrets: + ## - centralized-minio-users + ## + ## All provided Kubernetes secrets require a specific data structure. The same data from the provisioning.users example above + ## can be defined via secrets with the following data structure. The secret keys have no meaning to the provisioning job except that + ## they are used as filenames. + ## ## apiVersion: v1 + ## ## kind: Secret + ## ## metadata: + ## ## name: centralized-minio-users + ## ## type: Opaque + ## ## stringData: + ## ## username1: | + ## ## username=test-username + ## ## password=test-password + ## ## disabled=false + ## ## policies=readwrite,consoleAdmin,diagnostics + ## ## setPolicies=false + usersExistingSecrets: [] + ## @param provisioning.groups MinIO® groups provisioning + ## https://docs.min.io/docs/minio-admin-complete-guide.html#group + ## e.g. + ## groups + ## - name: test-group + ## disabled: false + ## members: + ## - test-username + ## policies: + ## - readwrite + ## # When set to true, it will replace all policies with the specified. + ## # When false, the policies will be added to the existing. + ## setPolicies: false + groups: [] + ## @param provisioning.buckets MinIO® buckets, versioning, lifecycle, quota and tags provisioning + ## Buckets https://docs.min.io/docs/minio-client-complete-guide.html#mb + ## Lifecycle https://docs.min.io/docs/minio-client-complete-guide.html#ilm + ## Quotas https://docs.min.io/docs/minio-admin-complete-guide.html#bucket + ## Tags https://docs.min.io/docs/minio-client-complete-guide.html#tag + ## Versioning https://docs.min.io/docs/minio-client-complete-guide.html#version + ## e.g. + ## buckets: + ## - name: test-bucket + ## region: us-east-1 + ## # Only when mode is 'distributed' + ## # Allowed values: "Versioned" | "Suspended" | "Unchanged" + ## # Defaults to "Suspended" if not specified. + ## # For compatibility, accepts boolean values as well, where true maps + ## # to "Versioned" and false to "Suspended". + ## # ref: https://docs.minio.io/docs/distributed-minio-quickstart-guide + ## versioning: Suspended + ## # Versioning is automatically enabled if withLock is true + ## # ref: https://docs.min.io/docs/minio-bucket-versioning-guide.html + ## withLock: true + ## # Only when mode is 'distributed' + ## # ref: https://docs.minio.io/docs/distributed-minio-quickstart-guide + ## lifecycle: + ## - id: TestPrefix7dRetention + ## prefix: test-prefix + ## disabled: false + ## expiry: + ## days: 7 + ## # Days !OR! date + ## # date: "2021-11-11T00:00:00Z" + ## nonconcurrentDays: 3 + ## # Only when mode is 'distributed' + ## # ref: https://docs.minio.io/docs/distributed-minio-quickstart-guide + ## quota: + ## # set (hard still works as an alias but is deprecated) or clear(+ omit size) + ## type: set + ## size: 10GiB + ## tags: + ## key1: value1 + buckets: [] + ## @param provisioning.config MinIO® config provisioning + ## https://docs.min.io/docs/minio-server-configuration-guide.html + ## e.g. + ## config: + ## - name: region + ## options: + ## name: us-east-1 + config: [] + ## MinIO® pod Security Context + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod + ## @param provisioning.podSecurityContext.enabled Enable pod Security Context + ## @param provisioning.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy + ## @param provisioning.podSecurityContext.sysctls Set kernel settings using the sysctl interface + ## @param provisioning.podSecurityContext.supplementalGroups Set filesystem extra groups + ## @param provisioning.podSecurityContext.fsGroup Group ID for the container + ## + podSecurityContext: + enabled: true + fsGroupChangePolicy: Always + sysctls: [] + supplementalGroups: [] + fsGroup: 1001 + ## MinIO® container Security Context + ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container + ## @param provisioning.containerSecurityContext.enabled Enabled containers' Security Context + ## @param provisioning.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container + ## @param provisioning.containerSecurityContext.runAsUser Set containers' Security Context runAsUser + ## @param provisioning.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup + ## @param provisioning.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot + ## @param provisioning.containerSecurityContext.privileged Set container's Security Context privileged + ## @param provisioning.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem + ## @param provisioning.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation + ## @param provisioning.containerSecurityContext.capabilities.drop List of capabilities to be dropped + ## @param provisioning.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" + ## Automatic Cleanup for Finished Jobs + ## @param provisioning.cleanupAfterFinished.enabled Enables Cleanup for Finished Jobs + ## @param provisioning.cleanupAfterFinished.seconds Sets the value of ttlSecondsAfterFinished + ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ + ## + cleanupAfterFinished: + enabled: false + seconds: 600 + ## Network Policy configuration + ## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/ + ## + networkPolicy: + ## @param provisioning.networkPolicy.enabled Enable creation of NetworkPolicy resources + ## + enabled: true + ## @param provisioning.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations. + ## + allowExternalEgress: true + ## @param provisioning.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 provisioning.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 automountServiceAccountToken Mount Service Account token in pod +## +automountServiceAccountToken: false +## @param hostAliases MinIO® pod host aliases +## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ +## +hostAliases: [] +## @param containerPorts.api MinIO® container port to open for MinIO® API +## @param containerPorts.console MinIO® container port to open for MinIO® Console +## +containerPorts: + api: 9000 + console: 9001 +## MinIO® pod Security Context +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod +## @param podSecurityContext.enabled Enable pod Security Context +## @param podSecurityContext.sysctls Set kernel settings using the sysctl interface +## @param podSecurityContext.supplementalGroups Set filesystem extra groups +## @param podSecurityContext.fsGroup Group ID for the container +## @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.fsGroupChangePolicy When K8s should preform chown on attached volumes +## +podSecurityContext: + enabled: true + sysctls: [] + supplementalGroups: [] + fsGroup: 1001 + fsGroupChangePolicy: "OnRootMismatch" +## MinIO® container Security Context +## 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" +## @param podLabels Extra labels for MinIO® pods +## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +## +podLabels: {} +## @param podAnnotations Annotations for MinIO® pods +## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +## +podAnnotations: {} +## @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 +## +nodeAffinityPreset: + ## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` + ## + type: "" + ## @param nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set. + ## E.g. + ## key: "kubernetes.io/e2e-az-name" + ## + key: "" + ## @param nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set. + ## E.g. + ## values: + ## - e2e-az1 + ## - e2e-az2 + ## + values: [] +## @param affinity Affinity for pod assignment. Evaluated as a template. +## 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: {} +## @param tolerations Tolerations for pod assignment. Evaluated as a template. +## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ +## +tolerations: [] +## @param topologySpreadConstraints Topology Spread Constraints for MinIO® pods assignment spread across your cluster among failure-domains +## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods +## +topologySpreadConstraints: [] +## @param priorityClassName MinIO® pods' priorityClassName +## +priorityClassName: "" +## @param runtimeClassName Name of the runtime class to be used by MinIO® pods' +## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/ +## +runtimeClassName: "" +## MinIO® 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 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 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: 5 + periodSeconds: 5 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 5 +## Configure extra options for readiness probe +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes +## @param readinessProbe.enabled Enable 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 + initialDelaySeconds: 5 + periodSeconds: 5 + timeoutSeconds: 1 + successThreshold: 1 + failureThreshold: 5 +## Configure extra options for startupProbe probe +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes +## @param startupProbe.enabled Enable 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 + initialDelaySeconds: 0 + periodSeconds: 10 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 60 +## @param customLivenessProbe Override default liveness probe +## +customLivenessProbe: {} +## @param customReadinessProbe Override default readiness probe +## +customReadinessProbe: {} +## @param customStartupProbe Override default startup probe +## +customStartupProbe: {} +## @param lifecycleHooks for the MinIO® container(s) to automate configuration before or after startup +## +lifecycleHooks: {} +## @param extraVolumes Optionally specify extra list of additional volumes for MinIO® pods +## +extraVolumes: [] +## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for MinIO® container(s) +## +extraVolumeMounts: [] +## @param initContainers Add additional init containers to the MinIO® pods +## e.g: +## initContainers: +## - name: your-image-name +## image: your-image +## imagePullPolicy: Always +## ports: +## - name: portname +## containerPort: 1234 +## +initContainers: [] +## @param sidecars Add additional sidecar containers to the MinIO® pods +## e.g: +## sidecars: +## - name: your-image-name +## image: your-image +## imagePullPolicy: Always +## ports: +## - name: portname +## containerPort: 1234 +## +sidecars: [] +## @section Traffic exposure parameters + +## MinIO® Service properties +## +service: + ## @param service.type MinIO® service type + ## + type: ClusterIP + ## @param service.ports.api MinIO® API service port + ## @param service.ports.console MinIO® Console service port + ## + ports: + api: 9000 + console: 9001 + ## @param service.nodePorts.api Specify the MinIO® API nodePort value for the LoadBalancer and NodePort service types + ## @param service.nodePorts.console Specify the MinIO® Console nodePort value for the LoadBalancer and NodePort service types + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + ## + nodePorts: + api: "" + console: "" + ## @param service.clusterIP Service Cluster IP + ## e.g.: + ## clusterIP: None + ## + clusterIP: "" + ## @param service.loadBalancerIP loadBalancerIP if service type is `LoadBalancer` (optional, cloud specific) + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer + ## + loadBalancerIP: "" + ## @param service.loadBalancerSourceRanges Addresses that are allowed when service is LoadBalancer + ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service + ## e.g: + ## loadBalancerSourceRanges: + ## - 10.10.10.0/24 + ## + loadBalancerSourceRanges: [] + ## @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.extraPorts Extra ports to expose in the service (normally used with the `sidecar` value) + ## + extraPorts: [] + ## @param service.annotations Annotations for MinIO® service + ## This can be used to set the LoadBalancer service type to internal only. + ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer + ## + annotations: {} + ## Headless service properties + ## + headless: + ## @param service.headless.annotations Annotations for the headless service. + ## + annotations: {} +## Configure the ingress resource that allows you to access the +## MinIO® Console. Set up the URL +## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/ +## +ingress: + ## @param ingress.enabled Enable ingress controller resource for MinIO Console + ## + enabled: false + ## @param ingress.apiVersion Force Ingress 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: minio.local + ## @param ingress.path The Path to MinIO®. You may need to set this to '/*' in order to use this with ALB ingress controllers. + ## + path: / + ## @param ingress.pathType Ingress path type + ## + pathType: ImplementationSpecific + ## @param ingress.servicePort Service port to be used + ## Default is http. Alternative is https. + ## + servicePort: minio-console + ## @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 + ## - Rely on cert-manager to create it by setting the corresponding annotations + ## - Rely on Helm to create self-signed certificates by setting `ingress.selfSigned=true` + ## + 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 + ## e.g: + ## extraHosts: + ## - name: minio.local + ## path: / + ## + extraHosts: [] + ## @param ingress.extraPaths Any additional 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 + ## e.g: + ## extraTls: + ## - hosts: + ## - minio.local + ## secretName: minio.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 are expected in PEM format + ## name should line up with a secretName set further up + ## + ## If it is not set and you're using cert-manager, this is unneeded, as it will create a secret for you with valid certificates + ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days + ## It is also possible to create and manage the certificates outside of this helm chart + ## Please see README.md for more information + ## + ## Example + ## secrets: + ## - name: minio.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: [] +## Configure the ingress resource that allows you to access the +## MinIO® API. Set up the URL +## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/ +## +apiIngress: + ## @param apiIngress.enabled Enable ingress controller resource for MinIO API + ## + enabled: false + ## @param apiIngress.apiVersion Force Ingress API version (automatically detected if not set) + ## + apiVersion: "" + ## @param apiIngress.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 apiIngress.hostname Default host for the ingress resource + ## + hostname: minio.local + ## @param apiIngress.path The Path to MinIO®. You may need to set this to '/*' in order to use this with ALB ingress controllers. + ## + path: / + ## @param apiIngress.pathType Ingress path type + ## + pathType: ImplementationSpecific + ## @param apiIngress.servicePort Service port to be used + ## Default is http. Alternative is https. + ## + servicePort: minio-api + ## @param apiIngress.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 apiIngress.tls Enable TLS configuration for the hostname defined at `apiIngress.hostname` parameter + ## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.apiIngress.hostname }}` + ## You can: + ## - Use the `ingress.secrets` parameter to create this TLS secret + ## - Rely on cert-manager to create it by setting the corresponding annotations + ## - Rely on Helm to create self-signed certificates by setting `ingress.selfSigned=true` + ## + tls: false + ## @param apiIngress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm + ## + selfSigned: false + ## @param apiIngress.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 + ## e.g: + ## extraHosts: + ## - name: minio.local + ## path: / + ## + extraHosts: [] + ## @param apiIngress.extraPaths Any additional 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 apiIngress.extraTls The tls configuration for additional hostnames to be covered with this ingress record. + ## see: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls + ## e.g: + ## extraTls: + ## - hosts: + ## - minio.local + ## secretName: minio.local-tls + ## + extraTls: [] + ## @param apiIngress.secrets If you're providing your own certificates, please use this to add the certificates as secrets + ## key and certificate are expected in PEM format + ## name should line up with a secretName set further up + ## + ## If it is not set and you're using cert-manager, this is unneeded, as it will create a secret for you with valid certificates + ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days + ## It is also possible to create and manage the certificates outside of this helm chart + ## Please see README.md for more information + ## + ## Example + ## secrets: + ## - name: minio.local-tls + ## key: "" + ## certificate: "" + ## + secrets: [] + ## @param apiIngress.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: [] +## Network Policy configuration +## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/ +## +networkPolicy: + ## @param networkPolicy.enabled Enable creation of NetworkPolicy resources + ## + enabled: true + ## @param networkPolicy.allowExternal The Policy model to apply + ## When set to false, only pods with the correct client label will have network access to the ports MinIO is + ## listening on. When true, MinIO 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: {} +## @section Persistence parameters + +## Enable persistence using Persistent Volume Claims +## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/ +## +persistence: + ## @param persistence.enabled Enable MinIO® data persistence using PVC. If false, use emptyDir + ## + enabled: true + ## @param persistence.storageClass PVC Storage Class for MinIO® data 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.mountPath Data volume mount path + ## + mountPath: /bitnami/minio/data + ## @param persistence.accessModes PVC Access Modes for MinIO® data volume + ## + accessModes: + - ReadWriteOnce + ## @param persistence.size PVC Storage Request for MinIO® data volume + ## + size: 8Gi + ## @param persistence.annotations Annotations for the PVC + ## + annotations: {} + ## @param persistence.existingClaim Name of an existing PVC to use (only in `standalone` mode) + ## + existingClaim: "" + ## @param persistence.selector Configure custom selector for existing Persistent Volume. (only in `distributed` mode) + ## selector: + ## matchLabels: + ## volume: + ## + selector: {} +## @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 the owner and group of the persistent volume(s) mountpoint to `runAsUser:fsGroup` + ## + 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 repository + ## @skip volumePermissions.image.tag Init container volume-permissions image tag (immutable tags are recommended) + ## @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-r39 + 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 container' 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: {} + ## Init container' Security Context + ## Note: the chown of the data folder is done to containerSecurityContext.runAsUser + ## and not the below volumePermissions.containerSecurityContext.runAsUser + ## @param volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container + ## @param volumePermissions.containerSecurityContext.runAsUser User ID for the init container + ## + containerSecurityContext: + seLinuxOptions: {} + runAsUser: 0 +## @section RBAC parameters + +## Specifies whether a ServiceAccount should be created +## +serviceAccount: + ## @param serviceAccount.create Enable the creation of a ServiceAccount for MinIO® pods + ## + create: true + ## @param serviceAccount.name Name of the created ServiceAccount + ## If not set and create is true, a name is generated using the common.names.fullname template + ## + name: "" + ## @param serviceAccount.automountServiceAccountToken Enable/disable auto mounting of the service account token + ## + automountServiceAccountToken: false + ## @param serviceAccount.annotations Custom annotations for MinIO® ServiceAccount + ## + annotations: {} +## @section Other parameters + +## MinIO® Pod Disruption Budget configuration in distributed mode. +## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/ +## +pdb: + ## @param pdb.create Enable/disable a Pod Disruption Budget creation + ## + create: true + ## @param pdb.minAvailable Minimum number/percentage of pods that must still be available after the eviction + ## + minAvailable: "" + ## @param pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable after the eviction + ## + maxUnavailable: "" +## @section Metrics parameters +metrics: + ## @param metrics.prometheusAuthType Authentication mode for Prometheus (`jwt` or `public`) + ## To allow public access without authentication for prometheus metrics set environment as follows. + ## + prometheusAuthType: public + ## @param metrics.enabled Enable the export of Prometheus metrics + ## + enabled: false + ## Prometheus Operator ServiceMonitor configuration + ## + serviceMonitor: + ## @param metrics.serviceMonitor.enabled If the operator is installed in your cluster, set to true to create a Service Monitor Entry + ## + enabled: false + ## @param metrics.serviceMonitor.namespace Namespace which Prometheus is running in + ## + namespace: "" + ## @param metrics.serviceMonitor.labels Extra labels for the ServiceMonitor + ## + labels: {} + ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in Prometheus + ## + jobLabel: "" + ## DEPRECATED metrics.serviceMonitor.path - please use `metrics.serviceMonitor.paths` instead + ## + ## path: /minio/v2/metrics/cluster + ## @param metrics.serviceMonitor.paths HTTP paths to scrape for metrics + ## + paths: + - /minio/v2/metrics/cluster + - /minio/v2/metrics/node + ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped + ## + interval: 30s + ## @param metrics.serviceMonitor.scrapeTimeout Specify the timeout after which the scrape is ended + ## e.g: + ## scrapeTimeout: 30s + scrapeTimeout: "" + ## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion + ## + metricRelabelings: [] + ## @param metrics.serviceMonitor.relabelings Metrics relabelings to add to the scrape endpoint, applied before scraping + ## + relabelings: [] + ## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint + ## + honorLabels: false + ## @param metrics.serviceMonitor.selector Prometheus instance selector labels + ## ref: https://github.com/bitnami/charts/tree/main/bitnami/prometheus-operator#prometheus-configuration + ## + selector: {} + ## @param metrics.serviceMonitor.apiVersion ApiVersion for the serviceMonitor Resource (defaults to "monitoring.coreos.com/v1") + apiVersion: "" + ## @param metrics.serviceMonitor.tlsConfig Additional TLS configuration for metrics endpoint with "https" scheme + ## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.TLSConfig + tlsConfig: {} + ## Prometheus Operator PrometheusRule configuration + ## + prometheusRule: + ## @param metrics.prometheusRule.enabled Create a Prometheus Operator PrometheusRule (also requires `metrics.enabled` to be `true` and `metrics.prometheusRule.rules`) + ## + enabled: false + ## @param metrics.prometheusRule.namespace Namespace for the PrometheusRule Resource (defaults to the Release Namespace) + ## + namespace: "" + ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so PrometheusRule will be discovered by Prometheus + ## + additionalLabels: {} + ## @param metrics.prometheusRule.rules Prometheus Rule definitions + # - alert: minio cluster nodes offline + # annotations: + # summary: "minio cluster nodes offline" + # description: "minio cluster nodes offline, pod {{`{{`}} $labels.pod {{`}}`}} service {{`{{`}} $labels.job {{`}}`}} offline" + # for: 10m + # expr: minio_cluster_nodes_offline_total > 0 + # labels: + # severity: critical + # group: PaaS + ## + rules: [] diff --git a/charts/thanos/templates/NOTES.txt b/charts/thanos/templates/NOTES.txt index 66f7128d75..06b230f1f4 100644 --- a/charts/thanos/templates/NOTES.txt +++ b/charts/thanos/templates/NOTES.txt @@ -2,6 +2,8 @@ CHART NAME: {{ .Chart.Name }} CHART VERSION: {{ .Chart.Version }} APP VERSION: {{ .Chart.AppVersion }} +Did you know there are enterprise versions of the Bitnami catalog? For enhanced secure software supply chain features, unlimited pulls from Docker, LTS support, or application customization, see Bitnami Premium or Tanzu Application Catalog. See https://www.arrow.com/globalecs/na/vendors/bitnami for more information. + ** Please be patient while the chart is being deployed ** Thanos chart was deployed enabling the following components: @@ -77,4 +79,5 @@ WARNING: You deployed Thanos without enabling Thanos Query!! {{- include "thanos.validateValues" . }} {{- include "thanos.checkRollingTags" . }} {{- include "common.warnings.resources" (dict "sections" (list "bucketweb" "compactor" "query" "queryFrontend" "receive" "receiveDistributor" "ruler" "storegateway") "context" $) }} -{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.image .Values.volumePermissions.image) "context" $) }} \ No newline at end of file +{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.image .Values.volumePermissions.image) "context" $) }} +{{- include "common.errors.insecureImages" (dict "images" (list .Values.image .Values.volumePermissions.image) "context" $) }} diff --git a/charts/thanos/templates/_helpers.tpl b/charts/thanos/templates/_helpers.tpl index fd1524864b..d996237539 100644 --- a/charts/thanos/templates/_helpers.tpl +++ b/charts/thanos/templates/_helpers.tpl @@ -468,7 +468,7 @@ thanos: objstore configuration {{- if and .Values.receive.enabled .Values.receive.autoscaling.enabled (eq .Values.receive.mode "standalone") -}} thanos: receive configuration Thanos receive component cannot be enabled with autoscaling and standalone mode at the same time or the receive hashring will not be properly configured. - To achieve autoscaling, + To achieve autoscaling, 1) Set the 'receive.mode' to 'dual-mode' (see ref: https://github.com/thanos-io/thanos/blob/release-0.22/docs/proposals-accepted/202012-receive-split.md) 2) Set the 'receive.existingConfigMap' the same as here https://github.com/observatorium/thanos-receive-controller/blob/7140e9476289b57b815692c3ec2dfd95b5fb4b6b/examples/manifests/deployment.yaml#L29 3) Set the 'receive.statefulsetLabels' to: @@ -540,11 +540,15 @@ thanos: storegateway.sharded.service.grpc.nodePorts {{- define "thanos.validateValues.storegateway.sharded.length" -}} {{/* Get number of shards */}} {{- $shards := int 0 }} +{{- $hashShards := int 1 }} +{{- $timeShards := int 1 }} {{- if .context.Values.storegateway.sharded.hashPartitioning.shards }} - {{- $shards = int .context.Values.storegateway.sharded.hashPartitioning.shards }} -{{- else }} - {{- $shards = len .context.Values.storegateway.sharded.timePartitioning }} + {{- $hashShards = int .context.Values.storegateway.sharded.hashPartitioning.shards }} {{- end }} +{{- if not (empty .context.Values.storegateway.sharded.timePartitioning) }} + {{- $timeShards = len .context.Values.storegateway.sharded.timePartitioning }} +{{- end }} +{{- $shards = mul $hashShards $timeShards }} {{- $propertyLength := (len .property) -}} {{/* Validate property */}} {{- if ne $shards $propertyLength -}} @@ -578,7 +582,7 @@ Usage: {{ include "thanos.receive.podFqdn" (dict "root" . "extra" $suffix ) }} */}} {{- define "thanos.receive.podFqdn" -}} -{{- printf "\"%s-receive-%d.%s-receive-headless.%s.svc.%s:10901\"" (include "common.names.fullname" .root ) .extra (include "common.names.fullname" .root ) .root.Release.Namespace .root.Values.clusterDomain -}} +{{- printf "%s-receive-%d.%s-receive-headless.%s.svc.%s" (include "common.names.fullname" .root ) .extra (include "common.names.fullname" .root ) .root.Release.Namespace .root.Values.clusterDomain -}} {{- end -}} {{/* Returns a proper configuration when no config is specified @@ -588,30 +592,23 @@ Usage: {{- define "thanos.receive.config" -}} {{- if not .Values.receive.existingConfigmap }} {{- if not .Values.receive.config -}} +{{- $endpoints_list := list -}} +{{- $grpc_port := int .Values.receive.containerPorts.grpc -}} +{{- $capnproto_port := int .Values.receive.containerPorts.capnproto -}} {{- if .Values.receive.service.additionalHeadless -}} {{- $count := int .Values.receive.replicaCount -}} -{{- $endpoints_dict := dict "endpoints" (list) -}} {{- $root := . -}} {{- range $i := until $count -}} -{{- $data := dict "root" $root "extra" $i -}} -{{- $noop := (include "thanos.receive.podFqdn" $data) | append $endpoints_dict.endpoints | set $endpoints_dict "endpoints" -}} -{{- end -}} -[ - { - "endpoints": [ -{{ join ",\n" $endpoints_dict.endpoints | indent 6 }} - ] - } -] + {{- $podFqdn := (include "thanos.receive.podFqdn" (dict "root" $root "extra" $i)) -}} + {{- $endpoint := dict "address" (printf "%s:%d" $podFqdn $grpc_port) "capnproto_address" (printf "%s:%d" $podFqdn $capnproto_port) -}} + {{- $endpoints_list = append $endpoints_list $endpoint -}} +{{- end -}} {{- else -}} -[ - { - "endpoints": [ - "127.0.0.1:10901" - ] - } -] +{{- $endpoint := dict "address" (printf "127.0.0.1:%d" $grpc_port) "capnproto_address" (printf "127.0.0.1:%d" $capnproto_port) -}} +{{- $endpoints_list = append $endpoints_list $endpoint -}} {{- end -}} +{{- $config := list (dict "endpoints" $endpoints_list) -}} +{{- $config | toPrettyJson -}} {{- else -}} {{- if (typeIs "string" .Values.receive.config) }} {{- .Values.receive.config -}} diff --git a/charts/thanos/templates/alert-rule/query.yml b/charts/thanos/templates/alert-rule/query.yml index bbc13309d9..663bf372dd 100644 --- a/charts/thanos/templates/alert-rule/query.yml +++ b/charts/thanos/templates/alert-rule/query.yml @@ -184,7 +184,7 @@ spec: {{- if .Values.commonAnnotations }} {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 8 }} {{- end }} - description: Thanos Query {{`{{`}} $labels.job {{`}}`}} has been overloaded for more than 15 minutes. This may be a symptom of excessive simultanous complex requests, low performance of the Prometheus API, or failures within these components. Assess the health of the Thanos query instances, the connnected Prometheus instances, look for potential senders of these requests and then contact support. + description: Thanos Query {{`{{`}} $labels.job {{`}}`}} has been overloaded for more than 15 minutes. This may be a symptom of excessive simultaneous complex requests, low performance of the Prometheus API, or failures within these components. Assess the health of the Thanos query instances, the connected Prometheus instances, look for potential senders of these requests and then contact support. runbook_url: {{ .Values.metrics.prometheusRule.runbookUrl }}thanosqueryoverload summary: Thanos query reaches its maximum capacity serving concurrent requests. expr: | diff --git a/charts/thanos/templates/bucketweb/deployment.yaml b/charts/thanos/templates/bucketweb/deployment.yaml index 130ebb722c..bc144326b4 100644 --- a/charts/thanos/templates/bucketweb/deployment.yaml +++ b/charts/thanos/templates/bucketweb/deployment.yaml @@ -30,8 +30,11 @@ spec: metadata: labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} app.kubernetes.io/component: bucketweb - {{- if or .Values.bucketweb.podAnnotations (include "thanos.createObjstoreSecret" .) }} + {{- if or .Values.commonAnnotations .Values.bucketweb.podAnnotations (include "thanos.createObjstoreSecret" .) }} annotations: + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 8 }} + {{- end }} {{- if (include "thanos.createObjstoreSecret" .) }} checksum/objstore-configuration: {{ include "thanos.objstoreConfig" . | sha256sum }} {{- end }} diff --git a/charts/thanos/templates/bucketweb/ingress.yaml b/charts/thanos/templates/bucketweb/ingress.yaml index 4dc2a9e5ba..f8e61cf0e2 100644 --- a/charts/thanos/templates/bucketweb/ingress.yaml +++ b/charts/thanos/templates/bucketweb/ingress.yaml @@ -9,7 +9,8 @@ kind: Ingress metadata: name: {{ include "thanos.bucketweb.fullname" . }} namespace: {{ include "common.names.namespace" . }} - labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.bucketweb.ingress.labels .Values.commonLabels ) "context" . ) }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }} app.kubernetes.io/component: bucketweb {{- if or .Values.bucketweb.ingress.annotations .Values.commonAnnotations }} {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.bucketweb.ingress.annotations .Values.commonAnnotations ) "context" . ) }} diff --git a/charts/thanos/templates/compactor/_pod-template.tpl b/charts/thanos/templates/compactor/_pod-template.tpl index dacbe0b647..d9db2361c0 100644 --- a/charts/thanos/templates/compactor/_pod-template.tpl +++ b/charts/thanos/templates/compactor/_pod-template.tpl @@ -13,8 +13,11 @@ metadata: {{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.compactor.podLabels .Values.commonLabels ) "context" . ) }} labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }} app.kubernetes.io/component: compactor - {{- if or .Values.compactor.podAnnotations (include "thanos.createObjstoreSecret" .) }} + {{- if or .Values.commonAnnotations .Values.compactor.podAnnotations (include "thanos.createObjstoreSecret" .) }} annotations: + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} {{- if (include "thanos.createObjstoreSecret" .) }} checksum/objstore-configuration: {{ include "thanos.objstoreConfig" . | sha256sum }} {{- end }} @@ -109,11 +112,12 @@ spec: - --log.level={{ .Values.compactor.logLevel }} - --log.format={{ .Values.compactor.logFormat }} - --http-address=0.0.0.0:{{ .Values.compactor.containerPorts.http }} - - --data-dir=/data + - --data-dir={{ .Values.compactor.dataDir }} - --retention.resolution-raw={{ .Values.compactor.retentionResolutionRaw }} - --retention.resolution-5m={{ .Values.compactor.retentionResolution5m }} - --retention.resolution-1h={{ .Values.compactor.retentionResolution1h }} - --consistency-delay={{ .Values.compactor.consistencyDelay }} + - --compact.concurrency={{ .Values.compactor.concurrency }} - --objstore.config-file=/conf/objstore.yml {{- if (include "thanos.httpConfigEnabled" .) }} - --http.config=/conf/http/http-config.yml diff --git a/charts/thanos/templates/compactor/ingress.yaml b/charts/thanos/templates/compactor/ingress.yaml index 2d50ff9b84..bcd2f34ec6 100644 --- a/charts/thanos/templates/compactor/ingress.yaml +++ b/charts/thanos/templates/compactor/ingress.yaml @@ -9,7 +9,8 @@ kind: Ingress metadata: name: {{ include "thanos.compactor.fullname" . }} namespace: {{ include "common.names.namespace" . }} - labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.compactor.ingress.labels .Values.commonLabels ) "context" . ) }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }} app.kubernetes.io/component: compactor {{- if or .Values.compactor.ingress.annotations .Values.commonAnnotations }} {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.compactor.ingress.annotations .Values.commonAnnotations ) "context" . ) }} diff --git a/charts/thanos/templates/query-frontend/deployment.yaml b/charts/thanos/templates/query-frontend/deployment.yaml index 495a49beae..d816da7093 100644 --- a/charts/thanos/templates/query-frontend/deployment.yaml +++ b/charts/thanos/templates/query-frontend/deployment.yaml @@ -30,8 +30,11 @@ spec: metadata: labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} app.kubernetes.io/component: query-frontend - {{- if or .Values.queryFrontend.podAnnotations (include "thanos.queryFrontend.createConfigmap" .) }} + {{- if or .Values.commonAnnotations .Values.queryFrontend.podAnnotations (include "thanos.queryFrontend.createConfigmap" .) }} annotations: + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 8 }} + {{- end }} {{- if (include "thanos.queryFrontend.createConfigmap" .) }} checksum/query-frontend-configuration: {{ include "thanos.queryFrontendConfigMap" . | sha256sum }} {{- end }} diff --git a/charts/thanos/templates/query-frontend/ingress.yaml b/charts/thanos/templates/query-frontend/ingress.yaml index 67e970b37e..0dde2ea9eb 100644 --- a/charts/thanos/templates/query-frontend/ingress.yaml +++ b/charts/thanos/templates/query-frontend/ingress.yaml @@ -9,7 +9,8 @@ kind: Ingress metadata: name: {{ include "thanos.query-frontend.fullname" . }} namespace: {{ include "common.names.namespace" . }} - labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.queryFrontend.ingress.labels .Values.commonLabels ) "context" . ) }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }} app.kubernetes.io/component: query-frontend {{- if or .Values.queryFrontend.ingress.annotations .Values.commonAnnotations }} {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.queryFrontend.ingress.annotations .Values.commonAnnotations ) "context" . ) }} diff --git a/charts/thanos/templates/query/deployment.yaml b/charts/thanos/templates/query/deployment.yaml index ccec7d58bb..0d72d1eb41 100644 --- a/charts/thanos/templates/query/deployment.yaml +++ b/charts/thanos/templates/query/deployment.yaml @@ -30,8 +30,11 @@ spec: metadata: labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} app.kubernetes.io/component: query - {{- if or .Values.query.podAnnotations (include "thanos.query.createSDConfigmap" .) }} + {{- if or .Values.commonAnnotations .Values.query.podAnnotations (include "thanos.query.createSDConfigmap" .) }} annotations: + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 8 }} + {{- end }} {{- if (include "thanos.query.createSDConfigmap" .) }} checksum/query-sd-configuration: {{ include "thanos.querySDConfigMap" . | sha256sum }} {{- end }} @@ -121,11 +124,15 @@ spec: {{- end }} {{- if and .Values.storegateway.enabled .Values.storegateway.sharded.enabled }} {{- $shards := int 0 }} + {{- $hashShards := int 1 }} + {{- $timeShards := int 1 }} {{- if .Values.storegateway.sharded.hashPartitioning.shards }} - {{- $shards = int .Values.storegateway.sharded.hashPartitioning.shards }} - {{- else }} - {{- $shards = len .Values.storegateway.sharded.timePartitioning }} + {{- $hashShards = int .Values.storegateway.sharded.hashPartitioning.shards }} + {{- end }} + {{- if not (empty .Values.storegateway.sharded.timePartitioning) }} + {{- $timeShards = len .Values.storegateway.sharded.timePartitioning }} {{- end }} + {{- $shards = mul $hashShards $timeShards | int }} {{- range $index, $_ := until $shards }} {{- if $.Values.storegateway.useEndpointGroup }} - --endpoint-group={{ include "common.names.fullname" $ }}-storegateway-{{ toString $index }}.{{ $.Release.Namespace }}.svc.{{ $.Values.clusterDomain }}:{{ $.Values.storegateway.service.ports.grpc }} diff --git a/charts/thanos/templates/query/hpa.yaml b/charts/thanos/templates/query/hpa.yaml index 75db94fc1f..11c776bf64 100644 --- a/charts/thanos/templates/query/hpa.yaml +++ b/charts/thanos/templates/query/hpa.yaml @@ -46,4 +46,13 @@ spec: averageUtilization: {{ .Values.query.autoscaling.targetCPU }} {{- end }} {{- end }} + {{- range $targetPodMetric := .Values.query.autoscaling.targetPodMetrics }} + - type: Pods + pods: + metric: + name: {{ $targetPodMetric.name }} + target: + type: AverageValue + averageValue: {{ $targetPodMetric.averageValue }} + {{- end }} {{- end }} diff --git a/charts/thanos/templates/query/ingress.yaml b/charts/thanos/templates/query/ingress.yaml index 258e493eb1..c5ae641ac1 100644 --- a/charts/thanos/templates/query/ingress.yaml +++ b/charts/thanos/templates/query/ingress.yaml @@ -9,7 +9,8 @@ kind: Ingress metadata: name: {{ include "thanos.query.fullname" . }} namespace: {{ include "common.names.namespace" . }} - labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.query.ingress.labels .Values.commonLabels ) "context" . ) }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }} app.kubernetes.io/component: query {{- if or .Values.query.ingress.annotations .Values.commonAnnotations }} {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.query.ingress.annotations .Values.commonAnnotations ) "context" . ) }} diff --git a/charts/thanos/templates/receive-distributor/deployment.yaml b/charts/thanos/templates/receive-distributor/deployment.yaml index 815a74af21..cb93e7fe7c 100644 --- a/charts/thanos/templates/receive-distributor/deployment.yaml +++ b/charts/thanos/templates/receive-distributor/deployment.yaml @@ -30,8 +30,11 @@ spec: metadata: labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} app.kubernetes.io/component: receive-distributor - {{- if or .Values.receiveDistributor.podAnnotations (include "thanos.receive.createConfigmap" .) (include "thanos.createObjstoreSecret" .) }} + {{- if or .Values.commonAnnotations .Values.receiveDistributor.podAnnotations (include "thanos.receive.createConfigmap" .) (include "thanos.createObjstoreSecret" .) }} annotations: + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 8 }} + {{- end }} {{- if (include "thanos.createObjstoreSecret" .) }} checksum/objstore-configuration: {{ include "thanos.objstoreConfig" . | sha256sum }} {{- end }} @@ -110,9 +113,11 @@ spec: - --grpc-address=0.0.0.0:{{ .Values.receive.containerPorts.grpc }} - --http-address=0.0.0.0:{{ .Values.receive.containerPorts.http }} - --remote-write.address=0.0.0.0:{{ .Values.receive.containerPorts.remote }} + - --receive.capnproto-address=0.0.0.0:{{ .Values.receive.containerPorts.capnproto }} - --label={{ .Values.receiveDistributor.replicaLabel }}="$(NAME)" - --label=receive="true" - --receive.hashrings-file=/var/lib/thanos-receive/hashrings.json + - --receive.replication-protocol={{ .Values.receiveDistributor.replicationProtocol }} - --receive.replication-factor={{ .Values.receiveDistributor.replicationFactor }} {{- if (include "thanos.httpConfigEnabled" .) }} - --http.config=/conf/http/http-config.yml @@ -159,6 +164,9 @@ spec: - containerPort: {{ .Values.receive.service.ports.remote }} name: remote-write protocol: TCP + - containerPort: {{ .Values.receive.containerPorts.capnproto }} + name: capnproto + protocol: TCP {{- if .Values.receiveDistributor.customLivenessProbe }} livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.receiveDistributor.customLivenessProbe "context" $) | nindent 12 }} {{- else if .Values.receiveDistributor.livenessProbe.enabled }} diff --git a/charts/thanos/templates/receive/ingress.yaml b/charts/thanos/templates/receive/ingress.yaml index c1ed2536b7..6b2001198a 100644 --- a/charts/thanos/templates/receive/ingress.yaml +++ b/charts/thanos/templates/receive/ingress.yaml @@ -9,7 +9,8 @@ kind: Ingress metadata: name: {{ include "thanos.receive.fullname" . }} namespace: {{ include "common.names.namespace" . }} - labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.receive.ingress.labels .Values.commonLabels ) "context" . ) }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }} app.kubernetes.io/component: receive {{- if or .Values.receive.ingress.annotations .Values.commonAnnotations }} {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.receive.ingress.annotations .Values.commonAnnotations ) "context" . ) }} diff --git a/charts/thanos/templates/receive/networkpolicy.yaml b/charts/thanos/templates/receive/networkpolicy.yaml index ef0bb6cc74..d63801b31c 100644 --- a/charts/thanos/templates/receive/networkpolicy.yaml +++ b/charts/thanos/templates/receive/networkpolicy.yaml @@ -38,11 +38,14 @@ spec: - port: {{ .Values.receive.service.ports.http }} - port: {{ .Values.receive.containerPorts.grpc }} - port: {{ .Values.receive.service.ports.grpc }} + - port: {{ .Values.receive.containerPorts.capnproto }} + - port: {{ .Values.receive.service.ports.capnproto }} # Communicate with other receive instances via headless service - ports: - port: {{ .Values.receive.containerPorts.http }} - port: {{ .Values.receive.containerPorts.grpc }} - port: {{ .Values.receive.containerPorts.remote }} + - port: {{ .Values.receive.containerPorts.capnproto }} to: - podSelector: matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 14 }} @@ -60,7 +63,7 @@ spec: - podSelector: matchLabels: app.kubernetes.io/name: minio - app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/instance: {{ .Release.Name }} {{- end }} {{- if .Values.queryFrontend.enabled }} # Communicate with query-frontend @@ -98,6 +101,8 @@ spec: - port: {{ .Values.receive.service.ports.grpc }} - port: {{ .Values.receive.containerPorts.remote }} - port: {{ .Values.receive.service.ports.remote }} + - port: {{ .Values.receive.containerPorts.capnproto }} + - port: {{ .Values.receive.service.ports.capnproto }} {{- if not .Values.receive.networkPolicy.allowExternal }} from: - podSelector: diff --git a/charts/thanos/templates/receive/service-headless.yaml b/charts/thanos/templates/receive/service-headless.yaml index 53ac932f4a..f13124378f 100644 --- a/charts/thanos/templates/receive/service-headless.yaml +++ b/charts/thanos/templates/receive/service-headless.yaml @@ -30,6 +30,10 @@ spec: targetPort: grpc protocol: TCP name: grpc + - port: {{ .Values.receive.service.ports.capnproto }} + targetPort: capnproto + protocol: TCP + name: capnproto {{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.receive.podLabels .Values.commonLabels ) "context" . ) }} selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }} app.kubernetes.io/component: receive diff --git a/charts/thanos/templates/receive/service.yaml b/charts/thanos/templates/receive/service.yaml index 39c3a13f13..c2d1b2267d 100644 --- a/charts/thanos/templates/receive/service.yaml +++ b/charts/thanos/templates/receive/service.yaml @@ -63,6 +63,15 @@ spec: {{- else if eq .Values.receive.service.type "ClusterIP" }} nodePort: null {{- end }} + - port: {{ .Values.receive.service.ports.capnproto }} + targetPort: capnproto + protocol: TCP + name: capnproto + {{- if and (or (eq .Values.receive.service.type "NodePort") (eq .Values.receive.service.type "LoadBalancer")) .Values.receive.service.nodePorts.capnproto }} + nodePort: {{ .Values.receive.service.nodePorts.capnproto }} + {{- else if eq .Values.receive.service.type "ClusterIP" }} + nodePort: null + {{- end }} {{- if .Values.receive.service.extraPorts }} {{- include "common.tplvalues.render" (dict "value" .Values.receive.service.extraPorts "context" $) | nindent 4 }} {{- end }} diff --git a/charts/thanos/templates/receive/statefulset.yaml b/charts/thanos/templates/receive/statefulset.yaml index 07b9ace611..6ccd2aa1c1 100644 --- a/charts/thanos/templates/receive/statefulset.yaml +++ b/charts/thanos/templates/receive/statefulset.yaml @@ -36,8 +36,11 @@ spec: metadata: labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} app.kubernetes.io/component: receive - {{- if or .Values.receive.podAnnotations (include "thanos.receive.createConfigmap" $) (include "thanos.createObjstoreSecret" $) }} + {{- if or .Values.commonAnnotations .Values.receive.podAnnotations (include "thanos.receive.createConfigmap" $) (include "thanos.createObjstoreSecret" $) }} annotations: + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 8 }} + {{- end }} {{- if (include "thanos.createObjstoreSecret" .) }} checksum/objstore-configuration: {{ include "thanos.objstoreConfig" . | sha256sum }} {{- end }} @@ -135,6 +138,7 @@ spec: - --grpc-address=0.0.0.0:{{ .Values.receive.containerPorts.grpc }} - --http-address=0.0.0.0:{{ .Values.receive.containerPorts.http }} - --remote-write.address=0.0.0.0:{{ .Values.receive.containerPorts.remote }} + - --receive.capnproto-address=0.0.0.0:{{ .Values.receive.containerPorts.capnproto }} {{- if or .Values.objstoreConfig .Values.existingObjstoreSecret }} - --objstore.config=$(OBJSTORE_CONFIG) {{- end }} @@ -152,10 +156,11 @@ spec: {{- if not .Values.receive.service.additionalHeadless }} - --receive.local-endpoint=127.0.0.1:{{ .Values.receive.containerPorts.grpc }} {{- else }} - - --receive.local-endpoint=$(NAME).{{ include "thanos.receive.fullname" . }}-headless.$(NAMESPACE).svc.{{ .Values.clusterDomain }}:10901 + - --receive.local-endpoint=$(NAME).{{ include "thanos.receive.fullname" . }}-headless.$(NAMESPACE).svc.{{ .Values.clusterDomain }}:{{ .Values.receive.containerPorts.grpc }} {{- end }} {{- if eq .Values.receive.mode "standalone" }} - --receive.hashrings-file=/var/lib/thanos-receive/hashrings.json + - --receive.replication-protocol={{ .Values.receive.replicationProtocol }} - --receive.replication-factor={{ .Values.receive.replicationFactor }} {{- end }} {{- if .Values.receive.grpc.server.tls.enabled }} @@ -209,6 +214,9 @@ spec: - containerPort: {{ .Values.receive.containerPorts.remote }} name: remote-write protocol: TCP + - containerPort: {{ .Values.receive.containerPorts.capnproto }} + name: capnproto + protocol: TCP {{- if .Values.receive.customLivenessProbe }} livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.receive.customLivenessProbe "context" $) | nindent 12 }} {{- else if .Values.receive.livenessProbe.enabled }} diff --git a/charts/thanos/templates/ruler/ingress.yaml b/charts/thanos/templates/ruler/ingress.yaml index fc9d589711..d0ac09c101 100644 --- a/charts/thanos/templates/ruler/ingress.yaml +++ b/charts/thanos/templates/ruler/ingress.yaml @@ -9,7 +9,8 @@ kind: Ingress metadata: name: {{ include "thanos.ruler.fullname" . }} namespace: {{ include "common.names.namespace" . }} - labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.ruler.ingress.labels .Values.commonLabels ) "context" . ) }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }} app.kubernetes.io/component: ruler {{- if or .Values.ruler.ingress.annotations .Values.commonAnnotations }} {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.ruler.ingress.annotations .Values.commonAnnotations ) "context" . ) }} diff --git a/charts/thanos/templates/ruler/statefulset.yaml b/charts/thanos/templates/ruler/statefulset.yaml index 4dfa55bb1b..2e9b1162ff 100644 --- a/charts/thanos/templates/ruler/statefulset.yaml +++ b/charts/thanos/templates/ruler/statefulset.yaml @@ -32,8 +32,11 @@ spec: metadata: labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} app.kubernetes.io/component: ruler - {{- if or .Values.ruler.podAnnotations (include "thanos.ruler.createConfigmap" .) (include "thanos.createObjstoreSecret" .) }} + {{- if or .Values.commonAnnotations .Values.ruler.podAnnotations (include "thanos.ruler.createConfigmap" .) (include "thanos.createObjstoreSecret" .) }} annotations: + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 8 }} + {{- end }} {{- if (include "thanos.createObjstoreSecret" .) }} checksum/objstore-configuration: {{ include "thanos.objstoreConfig" . | sha256sum }} {{- end }} @@ -150,7 +153,7 @@ spec: - --label=ruler_cluster="{{ .Values.ruler.clusterName }}" - --alert.label-drop={{ .Values.ruler.replicaLabel }} - --objstore.config-file=/conf/objstore/objstore.yml - - --rule-file=/conf/rules/*.yml + - --rule-file={{ .Values.ruler.ruleFile }} {{- range .Values.ruler.queries }} - --query={{ . }} {{- end }} diff --git a/charts/thanos/templates/storegateway/hpa-sharded.yaml b/charts/thanos/templates/storegateway/hpa-sharded.yaml index bf86de7740..bab96acee9 100644 --- a/charts/thanos/templates/storegateway/hpa-sharded.yaml +++ b/charts/thanos/templates/storegateway/hpa-sharded.yaml @@ -6,11 +6,15 @@ SPDX-License-Identifier: APACHE-2.0 {{- if and .Values.storegateway.enabled .Values.storegateway.autoscaling.enabled .Values.storegateway.sharded.enabled }} {{- $shards := int 0 }} +{{- $hashShards := int 1 }} +{{- $timeShards := int 1 }} {{- if .Values.storegateway.sharded.hashPartitioning.shards }} - {{- $shards = int .Values.storegateway.sharded.hashPartitioning.shards }} -{{- else }} - {{- $shards = len .Values.storegateway.sharded.timePartitioning }} + {{- $hashShards = int .Values.storegateway.sharded.hashPartitioning.shards }} {{- end }} +{{- if not (empty .Values.storegateway.sharded.timePartitioning) }} + {{- $timeShards = len .Values.storegateway.sharded.timePartitioning }} +{{- end }} +{{- $shards = mul $hashShards $timeShards | int }} {{- range $index, $_ := until $shards }} apiVersion: {{ include "common.capabilities.hpa.apiVersion" ( dict "context" $ ) }} diff --git a/charts/thanos/templates/storegateway/ingress.yaml b/charts/thanos/templates/storegateway/ingress.yaml index 661e808e27..738ae9d2a6 100644 --- a/charts/thanos/templates/storegateway/ingress.yaml +++ b/charts/thanos/templates/storegateway/ingress.yaml @@ -9,7 +9,8 @@ kind: Ingress metadata: name: {{ include "thanos.storegateway.fullname" . }} namespace: {{ include "common.names.namespace" . }} - labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.storegateway.ingress.labels .Values.commonLabels ) "context" . ) }} + labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }} app.kubernetes.io/component: storegateway {{- if or .Values.storegateway.ingress.annotations .Values.commonAnnotations }} {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.storegateway.ingress.annotations .Values.commonAnnotations ) "context" . ) }} diff --git a/charts/thanos/templates/storegateway/pdb-sharded.yaml b/charts/thanos/templates/storegateway/pdb-sharded.yaml index 757e747507..a86d3e374e 100644 --- a/charts/thanos/templates/storegateway/pdb-sharded.yaml +++ b/charts/thanos/templates/storegateway/pdb-sharded.yaml @@ -6,11 +6,15 @@ SPDX-License-Identifier: APACHE-2.0 {{- if and .Values.storegateway.enabled .Values.storegateway.pdb.create .Values.storegateway.sharded.enabled }} {{- $shards := int 0 }} +{{- $hashShards := int 1 }} +{{- $timeShards := int 1 }} {{- if .Values.storegateway.sharded.hashPartitioning.shards }} - {{- $shards = int .Values.storegateway.sharded.hashPartitioning.shards }} -{{- else }} - {{- $shards = len .Values.storegateway.sharded.timePartitioning }} + {{- $hashShards = int .Values.storegateway.sharded.hashPartitioning.shards }} {{- end }} +{{- if not (empty .Values.storegateway.sharded.timePartitioning) }} + {{- $timeShards = len .Values.storegateway.sharded.timePartitioning }} +{{- end }} +{{- $shards = mul $hashShards $timeShards | int }} {{- range $index, $_ := until $shards }} apiVersion: {{ include "common.capabilities.policy.apiVersion" $ }} diff --git a/charts/thanos/templates/storegateway/service-sharded.yaml b/charts/thanos/templates/storegateway/service-sharded.yaml index e5ef3807b6..4138cb90a2 100644 --- a/charts/thanos/templates/storegateway/service-sharded.yaml +++ b/charts/thanos/templates/storegateway/service-sharded.yaml @@ -6,11 +6,15 @@ SPDX-License-Identifier: APACHE-2.0 {{- if and .Values.storegateway.enabled .Values.storegateway.sharded.enabled }} {{- $shards := int 0 }} +{{- $hashShards := int 1 }} +{{- $timeShards := int 1 }} {{- if .Values.storegateway.sharded.hashPartitioning.shards }} - {{- $shards = int .Values.storegateway.sharded.hashPartitioning.shards }} -{{- else }} - {{- $shards = len .Values.storegateway.sharded.timePartitioning }} + {{- $hashShards = int .Values.storegateway.sharded.hashPartitioning.shards }} {{- end }} +{{- if not (empty .Values.storegateway.sharded.timePartitioning) }} + {{- $timeShards = len .Values.storegateway.sharded.timePartitioning }} +{{- end }} +{{- $shards = mul $hashShards $timeShards | int }} {{- range $index, $_ := until $shards }} apiVersion: v1 diff --git a/charts/thanos/templates/storegateway/statefulset-sharded.yaml b/charts/thanos/templates/storegateway/statefulset-sharded.yaml index 2472fb6d19..eda03d3d1b 100644 --- a/charts/thanos/templates/storegateway/statefulset-sharded.yaml +++ b/charts/thanos/templates/storegateway/statefulset-sharded.yaml @@ -7,16 +7,22 @@ SPDX-License-Identifier: APACHE-2.0 {{- $shards := int 0 }} {{- $hashPartitioning := false }} +{{- $hashShards := int 1 }} {{- $timePartitioning := false }} +{{- $timeShards := int 1 }} {{- if .Values.storegateway.sharded.hashPartitioning.shards }} - {{- $shards = int .Values.storegateway.sharded.hashPartitioning.shards }} + {{- $hashShards = int .Values.storegateway.sharded.hashPartitioning.shards }} {{- $hashPartitioning = true }} -{{- else }} - {{- $shards = len .Values.storegateway.sharded.timePartitioning }} +{{- end }} +{{- if not (empty .Values.storegateway.sharded.timePartitioning) }} + {{- $timeShards = len .Values.storegateway.sharded.timePartitioning }} {{- $timePartitioning = true }} {{- end }} +{{- $shards = mul $hashShards $timeShards }} -{{- range $index, $_ := until $shards }} +{{- range $hashIndex, $_ := until $hashShards }} +{{- range $timeIndex, $_ := until $timeShards }} +{{- $index := add (mul $hashIndex $timeShards) $timeIndex }} apiVersion: {{ include "common.capabilities.statefulset.apiVersion" $ }} kind: StatefulSet metadata: @@ -49,8 +55,11 @@ spec: labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} app.kubernetes.io/component: storegateway shard: {{ $index | quote }} - {{- if or $.Values.storegateway.podAnnotations (include "thanos.storegateway.createConfigmap" $) (include "thanos.createObjstoreSecret" $) }} + {{- if or $.Values.commonAnnotations $.Values.storegateway.podAnnotations (include "thanos.storegateway.createConfigmap" $) (include "thanos.createObjstoreSecret" $) }} annotations: + {{- if $.Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" $.Values.commonAnnotations "context" $ ) | nindent 8 }} + {{- end }} {{- if (include "thanos.createObjstoreSecret" $) }} checksum/objstore-configuration: {{ include "thanos.objstoreConfig" $ | sha256sum }} {{- end }} @@ -168,21 +177,21 @@ spec: - action: hashmod source_labels: ["__block_id"] target_label: shard - modulus: {{ $shards }} + modulus: {{ $hashShards }} - action: keep source_labels: ["shard"] - regex: {{ $index }} + regex: {{ $hashIndex }} {{- if $.Values.storegateway.sharded.hashPartitioning.extraRelabelingConfigs }} {{- $.Values.storegateway.sharded.hashPartitioning.extraRelabelingConfigs | toYaml | nindent 16 }} {{- end }} {{- end }} {{- if $timePartitioning }} - {{- $partion := (slice $.Values.storegateway.sharded.timePartitioning $index) | first }} - {{- if $partion.max }} - - --max-time={{ $partion.max }} + {{- $partition := (slice $.Values.storegateway.sharded.timePartitioning $timeIndex) | first }} + {{- if $partition.max }} + - --max-time={{ $partition.max }} {{- end }} - {{- if $partion.min }} - - --min-time={{ $partion.min }} + {{- if $partition.min }} + - --min-time={{ $partition.min }} {{- end }} {{- end }} {{- if $.Values.storegateway.extraFlags }} @@ -256,9 +265,9 @@ spec: lifecycle: {{- include "common.tplvalues.render" (dict "value" $.Values.storegateway.lifecycleHooks "context" $) | nindent 12 }} {{- end }} {{- if $timePartitioning }} - {{- $partion := (slice $.Values.storegateway.sharded.timePartitioning $index) | first }} - {{- if $partion.resources }} - resources: {{- toYaml $partion.resources | nindent 12 }} + {{- $partition := (slice $.Values.storegateway.sharded.timePartitioning $timeIndex) | first }} + {{- if $partition.resources }} + resources: {{- toYaml $partition.resources | nindent 12 }} {{- else if $.Values.storegateway.resources }} resources: {{- toYaml $.Values.storegateway.resources | nindent 12 }} {{- else if ne $.Values.storegateway.resourcesPreset "none" }} @@ -364,3 +373,4 @@ spec: --- {{- end }} {{- end }} +{{- end }} diff --git a/charts/thanos/templates/storegateway/statefulset.yaml b/charts/thanos/templates/storegateway/statefulset.yaml index e006b8e0bd..ef988bee68 100644 --- a/charts/thanos/templates/storegateway/statefulset.yaml +++ b/charts/thanos/templates/storegateway/statefulset.yaml @@ -32,8 +32,11 @@ spec: metadata: labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }} app.kubernetes.io/component: storegateway - {{- if or .Values.storegateway.podAnnotations (include "thanos.storegateway.createConfigmap" $) (include "thanos.createObjstoreSecret" $) }} + {{- if or .Values.commonAnnotations .Values.storegateway.podAnnotations (include "thanos.storegateway.createConfigmap" $) (include "thanos.createObjstoreSecret" $) }} annotations: + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 8 }} + {{- end }} {{- if (include "thanos.createObjstoreSecret" .) }} checksum/objstore-configuration: {{ include "thanos.objstoreConfig" . | sha256sum }} {{- end }} diff --git a/charts/thanos/values.yaml b/charts/thanos/values.yaml index f940d86a3b..6ba705bf46 100644 --- a/charts/thanos/values.yaml +++ b/charts/thanos/values.yaml @@ -20,6 +20,11 @@ global: imagePullSecrets: [] defaultStorageClass: "" storageClass: "" + ## Security parameters + ## + security: + ## @param global.security.allowInsecureImages Allows skipping image verification + allowInsecureImages: false ## Compatibility adaptations for Kubernetes platforms ## compatibility: @@ -66,9 +71,8 @@ extraDeploy: [] image: registry: docker.io repository: bitnami/thanos - tag: 0.36.1-debian-12-r2 + tag: 0.37.2-debian-12-r9 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 @@ -714,6 +718,13 @@ query: ## @param query.autoscaling.maxReplicas Maximum number of Thanos Query replicas ## @param query.autoscaling.targetCPU Target CPU utilization percentage ## @param query.autoscaling.targetMemory Target Memory utilization percentage + ## @param query.autoscaling.targetPodMetrics [array] List of custom pod metrics name and averageValue to evaluate for scaling + ## e.g. + ## targetPodMetrics: + ## - name: thanos_query_range_query_duration + ## averageValue: 2 + ## - name: thanos_query_promql_duration_metric + ## averageValue: 0.5 ## autoscaling: enabled: false @@ -721,6 +732,7 @@ query: maxReplicas: "" targetCPU: "" targetMemory: "" + targetPodMetrics: [] ## Thanos Query Pod Disruption Budget configuration ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb ## @param query.pdb.create Enable/disable a Pod Disruption Budget creation for Thanos Query @@ -749,6 +761,13 @@ query: ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/ ## ingressClassName: "" + ## @param query.ingress.labels Additional label for the Ingress resource. + ## Use this parameter to set the required labels for your needs + ## e.g: + ## labels: + ## dns-managed-by-external-dns: 'true' + ## + labels: {} ## @param query.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 @@ -1383,6 +1402,13 @@ queryFrontend: ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/ ## ingressClassName: "" + ## @param queryFrontend.ingress.labels Additional label for the Ingress resource. + ## Use this parameter to set the required labels for your needs + ## e.g: + ## labels: + ## dns-managed-by-external-dns: 'true' + ## + labels: {} ## @param queryFrontend.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 @@ -1887,6 +1913,13 @@ bucketweb: ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/ ## ingressClassName: "" + ## @param bucketweb.ingress.labels Additional label for the Ingress resource. + ## Use this parameter to set the required labels for your needs + ## e.g: + ## labels: + ## dns-managed-by-external-dns: 'true' + ## + labels: {} ## @param bucketweb.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 @@ -1975,6 +2008,9 @@ compactor: ## @param compactor.logFormat Thanos Compactor log format ## logFormat: logfmt + ## @param compactor.dataDir Thanos Compactor data directory + ## + dataDir: /data ## Resolution and Retention flags ## @param compactor.retentionResolutionRaw Resolution and Retention flag ## @param compactor.retentionResolution5m Resolution and Retention flag @@ -1983,6 +2019,8 @@ compactor: retentionResolutionRaw: 30d retentionResolution5m: 30d retentionResolution1h: 10y + ## @param compactor.concurrency Number of goroutines to use when compacting groups. + concurrency: 1 ## @param compactor.consistencyDelay Minimum age of fresh (non-compacted) blocks before they are being processed ## consistencyDelay: 30m @@ -2399,6 +2437,13 @@ compactor: ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/ ## ingressClassName: "" + ## @param compactor.ingress.labels Additional label for the Ingress resource. + ## Use this parameter to set the required labels for your needs + ## e.g: + ## labels: + ## dns-managed-by-external-dns: 'true' + ## + labels: {} ## @param compactor.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 @@ -3040,6 +3085,13 @@ storegateway: ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/ ## ingressClassName: "" + ## @param storegateway.ingress.labels Additional label for the Ingress resource. + ## Use this parameter to set the required labels for your needs + ## e.g: + ## labels: + ## dns-managed-by-external-dns: 'true' + ## + labels: {} ## @param storegateway.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 @@ -3219,7 +3271,7 @@ storegateway: ## @param storegateway.sharded.hashPartitioning.shards Setting hashPartitioning will create multiple store statefulsets based on the number of shards specified using the hashmod of the blocks ## @param storegateway.sharded.hashPartitioning.extraRelabelingConfigs Setting extra relabel config ## e,g: - ## extraRelabelingConfigs: + ## extraRelabelingConfigs: ## - action: keep ## source_labels: ["region"] ## regex: cn-zhangjiakou @@ -3308,6 +3360,9 @@ ruler: ## @param ruler.clusterName Used to set the 'ruler_cluster' label ## clusterName: "" + ## @param ruler.ruleFile Change the location Thanos checks for rule files + ## + ruleFile: "/conf/rules/*.yml" ## @param ruler.config Ruler configuration ## Specify content for ruler.yml ## @@ -3791,6 +3846,13 @@ ruler: ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/ ## ingressClassName: "" + ## @param ruler.ingress.labels Additional label for the Ingress resource. + ## Use this parameter to set the required labels for your needs + ## e.g: + ## labels: + ## dns-managed-by-external-dns: 'true' + ## + labels: {} ## @param ruler.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 @@ -3876,6 +3938,10 @@ receive: ## @param receive.tsdbRetention Thanos Receive TSDB retention period ## tsdbRetention: 15d + ## @param receive.replicationProtocol Thanos Receive replication-protocol + ## ref: https://thanos.io/tip/components/receive.md/#replication-protocols + ## + replicationProtocol: capnproto ## @param receive.replicationFactor Thanos Receive replication-factor ## replicationFactor: 1 @@ -3971,12 +4037,14 @@ receive: minReadySeconds: 0 ## @param receive.containerPorts.http HTTP container port ## @param receive.containerPorts.grpc GRPC container port - ## @param receive.containerPorts.remote remote-write container port + ## @param receive.containerPorts.remote Remote-write container port + ## @param receive.containerPorts.capnproto Cap'n'Proto container port ## containerPorts: http: 10902 grpc: 10901 remote: 19291 + capnproto: 19391 ## K8s Pod Security Context for Thanos Receive pods ## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ ## @param receive.podSecurityContext.enabled Enable security context for the Thanos Receive pods @@ -4266,24 +4334,28 @@ receive: ## @param receive.service.type Kubernetes service type ## type: ClusterIP - ## @param receive.service.ports.http Thanos Ruler service HTTP port - ## @param receive.service.ports.grpc Thanos Ruler service GRPC port - ## @param receive.service.ports.remote Thanos Ruler service remote port + ## @param receive.service.ports.http Thanos Receive service HTTP port + ## @param receive.service.ports.grpc Thanos Receive service GRPC port + ## @param receive.service.ports.remote Thanos Receive service Remote-write port + ## @param receive.service.ports.capnproto Thanos Receive service Cap'n'Proto port ## ports: http: 10902 grpc: 10901 remote: 19291 - ## @param receive.service.nodePorts.http Specify the Thanos Ruler HTTP nodePort value for the LoadBalancer and NodePort service types - ## @param receive.service.nodePorts.grpc Specify the Thanos Ruler GRPC nodePort value for the LoadBalancer and NodePort service types - ## @param receive.service.nodePorts.remote Specify the Thanos Ruler remote nodePort value for the LoadBalancer and NodePort service types + capnproto: 19391 + ## @param receive.service.nodePorts.http Specify the Thanos Receive HTTP nodePort value for the LoadBalancer and NodePort service types + ## @param receive.service.nodePorts.grpc Specify the Thanos Receive GRPC nodePort value for the LoadBalancer and NodePort service types + ## @param receive.service.nodePorts.remote Specify the Thanos Receive Remote-write nodePort value for the LoadBalancer and NodePort service types + ## @param receive.service.nodePorts.capnproto Specify the Thanos Receive Cap'n'Proto nodePort value for the LoadBalancer and NodePort service types ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport ## nodePorts: http: "" grpc: "" remote: "" - ## @param receive.service.clusterIP Thanos Ruler service clusterIP IP + capnproto: "" + ## @param receive.service.clusterIP Thanos Receive service clusterIP IP ## e.g: ## clusterIP: None ## @@ -4299,7 +4371,7 @@ receive: ## - 10.10.10.0/24 ## loadBalancerSourceRanges: [] - ## @param receive.service.externalTrafficPolicy Thanos Ruler service externalTrafficPolicy + ## @param receive.service.externalTrafficPolicy Thanos Receive service externalTrafficPolicy ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints ## externalTrafficPolicy: Cluster @@ -4420,6 +4492,13 @@ receive: ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/ ## ingressClassName: "" + ## @param receive.ingress.labels Additional label for the Ingress resource. + ## Use this parameter to set the required labels for your needs + ## e.g: + ## labels: + ## dns-managed-by-external-dns: 'true' + ## + labels: {} ## @param receive.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 @@ -4512,6 +4591,10 @@ receiveDistributor: ## @param receiveDistributor.replicaLabel Label to treat as a replica indicator along which data is de-duplicated ## replicaLabel: replica + ## @param receiveDistributor.replicationProtocol Thanos Receive Distributor replication-protocol + ## ref: https://thanos.io/tip/components/receive.md/#replication-protocols + ## + replicationProtocol: capnproto ## @param receiveDistributor.replicationFactor Thanos Receive Distributor replication-factor ## replicationFactor: 1 @@ -4973,9 +5056,8 @@ volumePermissions: image: registry: docker.io repository: bitnami/os-shell - tag: 12-debian-12-r29 + tag: 12-debian-12-r40 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 @@ -4988,7 +5070,7 @@ volumePermissions: ## pullSecrets: [] ## @section MinIO® chart parameters -## @extra minio For full list of MinIO® values configurations please refere [here](https://github.com/bitnami/charts/tree/main/bitnami/minio) +## @extra minio For full list of MinIO® values configurations please refer [here](https://github.com/bitnami/charts/tree/main/bitnami/minio) minio: ## @param minio.enabled Enable/disable MinIO® chart installation ## to be used as an objstore for Thanos