From 60bb9ad37f2d576bbd519438994343223b4ca070 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Sun, 19 Mar 2023 18:21:22 +0100 Subject: [PATCH] feat(dependency): move solr, clickhouse and mongodb to deployment instead of statefullset (#7818) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** We're not planning to use HA deployments via the dependency train every and instead will opt for offloading HA to purpose build operators **โš™๏ธ Type of change** - [x] โš™๏ธ Feature/App addition - [x] ๐Ÿช› Bugfix - [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] ๐Ÿ”ƒ Refactor of current code **๐Ÿงช How Has This Been Tested?** **๐Ÿ“ƒ Notes:** **โœ”๏ธ Checklist:** - [ ] โš–๏ธ My code follows the style guidelines of this project - [ ] ๐Ÿ‘€ I have performed a self-review of my own code - [ ] #๏ธโƒฃ I have commented my code, particularly in hard-to-understand areas - [ ] ๐Ÿ“„ I have made corresponding changes to the documentation - [ ] โš ๏ธ My changes generate no new warnings - [ ] ๐Ÿงช I have added tests to this description that prove my fix is effective or that my feature works - [ ] โฌ†๏ธ I increased versions for any altered app according to semantic versioning **โž• App addition** If this PR is an app addition please make sure you have done the following. - [ ] ๐Ÿชž I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] ๐Ÿ–ผ๏ธ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --- charts/dependency/clickhouse/Chart.yaml | 4 ++-- charts/dependency/clickhouse/questions.yaml | 2 +- charts/dependency/clickhouse/values.yaml | 5 +---- charts/dependency/mariadb/Chart.yaml | 4 ++-- charts/dependency/memcached/Chart.yaml | 4 ++-- charts/dependency/mongodb/Chart.yaml | 4 ++-- charts/dependency/mongodb/questions.yaml | 2 +- charts/dependency/mongodb/values.yaml | 4 +--- charts/dependency/redis/Chart.yaml | 4 ++-- charts/dependency/solr/Chart.yaml | 4 ++-- charts/dependency/solr/questions.yaml | 2 +- charts/dependency/solr/values.yaml | 4 +--- 12 files changed, 18 insertions(+), 25 deletions(-) diff --git a/charts/dependency/clickhouse/Chart.yaml b/charts/dependency/clickhouse/Chart.yaml index 8ac567f8f27..51c5adf223d 100644 --- a/charts/dependency/clickhouse/Chart.yaml +++ b/charts/dependency/clickhouse/Chart.yaml @@ -3,7 +3,7 @@ appVersion: "23.2.1.253" dependencies: - name: common repository: https://library-charts.truecharts.org - version: 12.2.26 + version: 12.2.28 deprecated: false description: ClickHouse is a column-oriented database management system (DBMS) for online analytical processing of queries (OLAP). home: https://truecharts.org/charts/dependency/clickhouse @@ -23,7 +23,7 @@ sources: - https://hub.docker.com/r/clickhouse/clickhouse-server - https://clickhouse.com/ type: application -version: 4.0.10 +version: 5.0.0 annotations: truecharts.org/catagories: | - database diff --git a/charts/dependency/clickhouse/questions.yaml b/charts/dependency/clickhouse/questions.yaml index b1b42ff9527..d65edb38768 100644 --- a/charts/dependency/clickhouse/questions.yaml +++ b/charts/dependency/clickhouse/questions.yaml @@ -72,7 +72,7 @@ questions: default: false # Include{serviceExpert} # Include{serviceList} -# Include{vctRoot} +# Include{persistenceRoot} additional_attrs: true type: dict attrs: diff --git a/charts/dependency/clickhouse/values.yaml b/charts/dependency/clickhouse/values.yaml index 07c37cdb46f..2e71a3f105d 100644 --- a/charts/dependency/clickhouse/values.yaml +++ b/charts/dependency/clickhouse/values.yaml @@ -5,9 +5,7 @@ image: workload: main: - type: StatefulSet replicas: 1 - strategy: RollingUpdate podSpec: containers: main: @@ -20,7 +18,6 @@ workload: expandObjectName: "{{ if .Values.clickhousePassword }}true{{ else }}false{{ end }}" name: '{{ if .Values.clickhousePassword }}credentials{{ else if .Values.existingSecret }}{{ .Values.existingSecret }}{{ else }}{{ printf "%s-%s" .Release.Name "clickhousecreds" }}{{ end }}' key: "clickhouse-password" - probes: liveness: type: http @@ -53,7 +50,7 @@ service: protocol: http targetPort: 8123 -volumeClaimTemplates: +persistence: data: enabled: true mountPath: /var/lib/clickhouse diff --git a/charts/dependency/mariadb/Chart.yaml b/charts/dependency/mariadb/Chart.yaml index 2679c6a4b9d..fccd76ce757 100644 --- a/charts/dependency/mariadb/Chart.yaml +++ b/charts/dependency/mariadb/Chart.yaml @@ -3,7 +3,7 @@ appVersion: "10.11.2" dependencies: - name: common repository: https://library-charts.truecharts.org - version: 12.2.26 + version: 12.2.28 deprecated: false description: Fast, reliable, scalable, and easy to use open-source relational database system. home: https://truecharts.org/charts/dependency/mariadb @@ -26,7 +26,7 @@ sources: - https://github.com/prometheus/mysqld_exporter - https://mariadb.org type: application -version: 7.0.0 +version: 7.0.1 annotations: truecharts.org/catagories: | - database diff --git a/charts/dependency/memcached/Chart.yaml b/charts/dependency/memcached/Chart.yaml index 477126669f6..6cb42ebd763 100644 --- a/charts/dependency/memcached/Chart.yaml +++ b/charts/dependency/memcached/Chart.yaml @@ -3,7 +3,7 @@ appVersion: "1.6.18" dependencies: - name: common repository: https://library-charts.truecharts.org - version: 12.2.26 + version: 12.2.28 deprecated: false description: Memcached is a memory-backed database caching solution home: https://truecharts.org/charts/dependency/memcached @@ -24,7 +24,7 @@ sources: - https://github.com/bitnami/bitnami-docker-memcached - http://memcached.org/ type: application -version: 6.0.10 +version: 6.0.11 annotations: truecharts.org/catagories: | - database diff --git a/charts/dependency/mongodb/Chart.yaml b/charts/dependency/mongodb/Chart.yaml index 03fe2d22580..50faf9e96ba 100644 --- a/charts/dependency/mongodb/Chart.yaml +++ b/charts/dependency/mongodb/Chart.yaml @@ -3,7 +3,7 @@ appVersion: "6.0.4" dependencies: - name: common repository: https://library-charts.truecharts.org - version: 12.2.26 + version: 12.2.28 deprecated: false description: Fast, reliable, scalable, and easy to use open-source no-sql database system. home: https://truecharts.org/charts/dependency/mongodb @@ -24,7 +24,7 @@ sources: - https://github.com/bitnami/bitnami-docker-mongodb - https://www.mongodb.com type: application -version: 5.0.10 +version: 6.0.0 annotations: truecharts.org/catagories: | - database diff --git a/charts/dependency/mongodb/questions.yaml b/charts/dependency/mongodb/questions.yaml index 742776ba2c0..10fe9bb1d55 100644 --- a/charts/dependency/mongodb/questions.yaml +++ b/charts/dependency/mongodb/questions.yaml @@ -66,7 +66,7 @@ questions: default: false # Include{serviceExpert} # Include{serviceList} -# Include{vctRoot} +# Include{persistenceRoot} additional_attrs: true type: dict attrs: diff --git a/charts/dependency/mongodb/values.yaml b/charts/dependency/mongodb/values.yaml index 12820cc824f..0a7cfdb23d0 100644 --- a/charts/dependency/mongodb/values.yaml +++ b/charts/dependency/mongodb/values.yaml @@ -6,8 +6,6 @@ image: workload: main: replicas: 1 - type: StatefulSet - strategy: RollingUpdate podSpec: containers: main: @@ -90,7 +88,7 @@ securityContext: runAsGroup: 0 readOnlyRootFilesystem: false -volumeClaimTemplates: +persistence: data: enabled: true mountPath: "/bitnami/mongodb" diff --git a/charts/dependency/redis/Chart.yaml b/charts/dependency/redis/Chart.yaml index 46006acae8a..11ae7467a51 100644 --- a/charts/dependency/redis/Chart.yaml +++ b/charts/dependency/redis/Chart.yaml @@ -3,7 +3,7 @@ appVersion: "7.0.8" dependencies: - name: common repository: https://library-charts.truecharts.org - version: 12.2.26 + version: 12.2.28 deprecated: false description: Open source, advanced key-value store. home: https://truecharts.org/charts/dependency/redis @@ -24,7 +24,7 @@ sources: - https://github.com/bitnami/bitnami-docker-redis - http://redis.io/ type: application -version: 6.0.16 +version: 6.0.17 annotations: truecharts.org/catagories: | - database diff --git a/charts/dependency/solr/Chart.yaml b/charts/dependency/solr/Chart.yaml index 5e15a9a2123..9fe7a7211ca 100644 --- a/charts/dependency/solr/Chart.yaml +++ b/charts/dependency/solr/Chart.yaml @@ -3,7 +3,7 @@ appVersion: "9.1.1" dependencies: - name: common repository: https://library-charts.truecharts.org - version: 12.2.26 + version: 12.2.28 deprecated: false description: Apache Solr home: https://truecharts.org/charts/dependency/solr @@ -23,7 +23,7 @@ sources: - https://hub.docker.com/r/bitnami/solr - https://github.com/apache/solr type: application -version: 3.0.8 +version: 4.0.0 annotations: truecharts.org/catagories: | - search diff --git a/charts/dependency/solr/questions.yaml b/charts/dependency/solr/questions.yaml index 17099dcd29d..5ddee99deeb 100644 --- a/charts/dependency/solr/questions.yaml +++ b/charts/dependency/solr/questions.yaml @@ -68,7 +68,7 @@ questions: default: false # Include{serviceExpert} # Include{serviceList} -# Include{vctRoot} +# Include{persistenceRoot} additional_attrs: true type: dict attrs: diff --git a/charts/dependency/solr/values.yaml b/charts/dependency/solr/values.yaml index 91d3c3bcff8..ad8f5b01ba0 100644 --- a/charts/dependency/solr/values.yaml +++ b/charts/dependency/solr/values.yaml @@ -5,9 +5,7 @@ image: workload: main: - type: StatefulSet replicas: 1 - strategy: RollingUpdate podSpec: containers: main: @@ -104,7 +102,7 @@ service: port: 8983 targetPort: 8983 -volumeClaimTemplates: +persistence: db: enabled: true mountPath: "/bitnami/solr"