From 7feaadf7f8830d8d0d5df752733c9b8f47315df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Mon, 4 Sep 2023 11:41:55 +0200 Subject: [PATCH] fix(helmfile): Deinstall components if disabled --- helmfile/apps/collabora/helmfile.yaml | 2 +- helmfile/apps/element/helmfile.yaml | 22 ++++++++--------- helmfile/apps/intercom-service/helmfile.yaml | 2 +- helmfile/apps/jitsi/helmfile.yaml | 2 +- .../apps/keycloak-bootstrap/helmfile.yaml | 2 +- helmfile/apps/keycloak/helmfile.yaml | 6 ++--- helmfile/apps/nextcloud/helmfile.yaml | 4 ++-- helmfile/apps/open-xchange/helmfile.yaml | 6 ++--- helmfile/apps/openproject/helmfile.yaml | 2 +- helmfile/apps/provisioning/helmfile.yaml | 2 +- helmfile/apps/services/helmfile.yaml | 18 +++++++------- .../helmfile.yaml | 2 +- .../univention-management-stack/helmfile.yaml | 24 +++++++++---------- helmfile/apps/xwiki/helmfile.yaml | 2 +- 14 files changed, 48 insertions(+), 48 deletions(-) diff --git a/helmfile/apps/collabora/helmfile.yaml b/helmfile/apps/collabora/helmfile.yaml index a4885a94..59b1e09e 100644 --- a/helmfile/apps/collabora/helmfile.yaml +++ b/helmfile/apps/collabora/helmfile.yaml @@ -16,7 +16,7 @@ releases: values: - "values.yaml" - "values.gotmpl" - condition: "collabora.enabled" + installed: {{ .Values.collabora.enabled }} commonLabels: deploy-stage: "component-1" diff --git a/helmfile/apps/element/helmfile.yaml b/helmfile/apps/element/helmfile.yaml index 70bb17c5..f219b239 100644 --- a/helmfile/apps/element/helmfile.yaml +++ b/helmfile/apps/element/helmfile.yaml @@ -33,7 +33,7 @@ releases: values: - "values-element.yaml" - "values-element.gotmpl" - condition: "element.enabled" + installed: {{ .Values.element.enabled }} timeout: 900 - name: "opendesk-well-known" @@ -42,7 +42,7 @@ releases: values: - "values-well-known.yaml" - "values-well-known.gotmpl" - condition: "element.enabled" + installed: {{ .Values.element.enabled }} timeout: 900 - name: "opendesk-synapse-web" @@ -51,7 +51,7 @@ releases: values: - "values-synapse-web.yaml" - "values-synapse-web.gotmpl" - condition: "element.enabled" + installed: {{ .Values.element.enabled }} timeout: 900 - name: "opendesk-synapse" @@ -60,7 +60,7 @@ releases: values: - "values-synapse.yaml" - "values-synapse.gotmpl" - condition: "element.enabled" + installed: {{ .Values.element.enabled }} timeout: 900 - name: "opendesk-matrix-user-verification-service-bootstrap" @@ -69,7 +69,7 @@ releases: values: - "values-matrix-user-verification-service-bootstrap.yaml" - "values-matrix-user-verification-service-bootstrap.gotmpl" - condition: "element.enabled" + installed: {{ .Values.element.enabled }} timeout: 900 - name: "opendesk-matrix-user-verification-service" @@ -78,7 +78,7 @@ releases: values: - "values-matrix-user-verification-service.yaml" - "values-matrix-user-verification-service.gotmpl" - condition: "element.enabled" + installed: {{ .Values.element.enabled }} timeout: 900 - name: "matrix-neoboard-widget" @@ -87,7 +87,7 @@ releases: values: - "values-matrix-neoboard-widget.yaml" - "values-matrix-neoboard-widget.gotmpl" - condition: "element.enabled" + installed: {{ .Values.element.enabled }} timeout: 900 - name: "matrix-neochoice-widget" @@ -96,7 +96,7 @@ releases: values: - "values-matrix-neochoice-widget.yaml" - "values-matrix-neochoice-widget.gotmpl" - condition: "element.enabled" + installed: {{ .Values.element.enabled }} timeout: 900 - name: "matrix-neodatefix-widget" @@ -105,7 +105,7 @@ releases: values: - "values-matrix-neodatefix-widget.yaml" - "values-matrix-neodatefix-widget.gotmpl" - condition: "element.enabled" + installed: {{ .Values.element.enabled }} timeout: 900 - name: "matrix-neodatefix-bot-bootstrap" @@ -114,7 +114,7 @@ releases: values: - "values-matrix-neodatefix-bot-bootstrap.yaml" - "values-matrix-neodatefix-bot-bootstrap.gotmpl" - condition: "element.enabled" + installed: {{ .Values.element.enabled }} timeout: 900 - name: "matrix-neodatefix-bot" @@ -123,7 +123,7 @@ releases: values: - "values-matrix-neodatefix-bot.yaml" - "values-matrix-neodatefix-bot.gotmpl" - condition: "element.enabled" + installed: {{ .Values.element.enabled }} timeout: 900 commonLabels: diff --git a/helmfile/apps/intercom-service/helmfile.yaml b/helmfile/apps/intercom-service/helmfile.yaml index 13a9e75a..ca3ba03b 100644 --- a/helmfile/apps/intercom-service/helmfile.yaml +++ b/helmfile/apps/intercom-service/helmfile.yaml @@ -18,7 +18,7 @@ releases: version: "2.0.0" values: - "values.gotmpl" - condition: "intercom.enabled" + installed: {{ .Values.intercom.enabled }} commonLabels: deploy-stage: "component-1" diff --git a/helmfile/apps/jitsi/helmfile.yaml b/helmfile/apps/jitsi/helmfile.yaml index 044d3317..33d541a4 100644 --- a/helmfile/apps/jitsi/helmfile.yaml +++ b/helmfile/apps/jitsi/helmfile.yaml @@ -18,7 +18,7 @@ releases: version: "1.7.1" values: - "values-jitsi.gotmpl" - condition: "jitsi.enabled" + installed: {{ .Values.jitsi.enabled }} timeout: 900 commonLabels: diff --git a/helmfile/apps/keycloak-bootstrap/helmfile.yaml b/helmfile/apps/keycloak-bootstrap/helmfile.yaml index c3236feb..910a27e8 100644 --- a/helmfile/apps/keycloak-bootstrap/helmfile.yaml +++ b/helmfile/apps/keycloak-bootstrap/helmfile.yaml @@ -21,7 +21,7 @@ releases: values: - "values-bootstrap.gotmpl" - "values-bootstrap.yaml" - condition: "keycloak.enabled" + installed: {{ .Values.keycloak.enabled }} # as we have seen some slow clusters we want to ensure we not just fail due to a timeout. timeout: 1800 diff --git a/helmfile/apps/keycloak/helmfile.yaml b/helmfile/apps/keycloak/helmfile.yaml index bae37610..9487b903 100644 --- a/helmfile/apps/keycloak/helmfile.yaml +++ b/helmfile/apps/keycloak/helmfile.yaml @@ -32,7 +32,7 @@ releases: version: "2.0.0" values: - "values-theme.gotmpl" - condition: "keycloak.enabled" + installed: {{ .Values.keycloak.enabled }} - name: "keycloak" chart: "bitnami-repo/keycloak" version: "12.1.5" @@ -41,7 +41,7 @@ releases: - "values-keycloak.yaml" - "values-keycloak-idp.yaml" wait: true - condition: "keycloak.enabled" + installed: {{ .Values.keycloak.enabled }} - name: "keycloak-extensions" chart: "keycloak-extensions-repo/keycloak-extensions" version: "0.1.0" @@ -50,7 +50,7 @@ releases: values: - "values-extensions.yaml" - "values-extensions.gotmpl" - condition: "keycloak.enabled" + installed: {{ .Values.keycloak.enabled }} commonLabels: deploy-stage: "component-1" diff --git a/helmfile/apps/nextcloud/helmfile.yaml b/helmfile/apps/nextcloud/helmfile.yaml index 9331a3e7..11e407fa 100644 --- a/helmfile/apps/nextcloud/helmfile.yaml +++ b/helmfile/apps/nextcloud/helmfile.yaml @@ -30,7 +30,7 @@ releases: values: - "values-bootstrap.gotmpl" - "values-bootstrap.yaml" - condition: "nextcloud.enabled" + installed: {{ .Values.nextcloud.enabled }} timeout: 900 - name: "nextcloud" @@ -41,7 +41,7 @@ releases: values: - "values-nextcloud.gotmpl" - "values-nextcloud.yaml" - condition: "nextcloud.enabled" + installed: {{ .Values.nextcloud.enabled }} timeout: 900 commonLabels: diff --git a/helmfile/apps/open-xchange/helmfile.yaml b/helmfile/apps/open-xchange/helmfile.yaml index 6dadc54b..d894d6af 100644 --- a/helmfile/apps/open-xchange/helmfile.yaml +++ b/helmfile/apps/open-xchange/helmfile.yaml @@ -35,7 +35,7 @@ releases: values: - "values-dovecot.yaml" - "values-dovecot.gotmpl" - condition: "dovecot.enabled" + installed: {{ .Values.dovecot.enabled }} timeout: 900 - name: "open-xchange" @@ -46,7 +46,7 @@ releases: - "values-openxchange.gotmpl" - "values-openxchange-enterprise-contact-picker.yaml" - "values-openxchange-enterprise-contact-picker.gotmpl" - condition: "oxAppsuite.enabled" + installed: {{ .Values.oxAppsuite.enabled }} timeout: 900 - name: "opendesk-open-xchange-bootstrap" @@ -54,7 +54,7 @@ releases: version: "1.3.1" values: - "values-openxchange-bootstrap.gotmpl" - condition: "oxAppsuite.enabled" + installed: {{ .Values.oxAppsuite.enabled }} timeout: 900 commonLabels: diff --git a/helmfile/apps/openproject/helmfile.yaml b/helmfile/apps/openproject/helmfile.yaml index a771d9e4..9ba10dc0 100644 --- a/helmfile/apps/openproject/helmfile.yaml +++ b/helmfile/apps/openproject/helmfile.yaml @@ -18,7 +18,7 @@ releases: values: - "values.yaml" - "values.gotmpl" - condition: "openproject.enabled" + installed: {{ .Values.openproject.enabled }} timeout: 900 commonLabels: diff --git a/helmfile/apps/provisioning/helmfile.yaml b/helmfile/apps/provisioning/helmfile.yaml index 771d4ad3..19f667bb 100644 --- a/helmfile/apps/provisioning/helmfile.yaml +++ b/helmfile/apps/provisioning/helmfile.yaml @@ -15,7 +15,7 @@ releases: values: - "values-oxconnector.yaml" - "values-oxconnector.gotmpl" - condition: "oxConnector.enabled" + installed: {{ .Values.oxConnector.enabled }} commonLabels: deploy-stage: "component-2" diff --git a/helmfile/apps/services/helmfile.yaml b/helmfile/apps/services/helmfile.yaml index 8d8811dd..4125822b 100644 --- a/helmfile/apps/services/helmfile.yaml +++ b/helmfile/apps/services/helmfile.yaml @@ -74,28 +74,28 @@ releases: version: "2.1.0" values: - "values-certificates.gotmpl" - condition: "certificates.enabled" + installed: {{ .Values.certificates.enabled }} - name: "redis" chart: "bitnami-repo/redis" version: "18.1.2" values: - "values-redis.gotmpl" - "values-redis.yaml" - condition: "redis.enabled" + installed: {{ .Values.redis.enabled }} - name: "memcached" chart: "bitnami-repo/memcached" version: "6.6.2" values: - "values-memcached.yaml" - "values-memcached.gotmpl" - condition: "memcached.enabled" + installed: {{ .Values.memcached.enabled }} - name: "postgresql" chart: "postgresql-repo/postgresql" version: "2.0.2" values: - "values-postgresql.yaml" - "values-postgresql.gotmpl" - condition: "postgresql.enabled" + installed: {{ .Values.postgresql.enabled }} timeout: 900 - name: "mariadb" chart: "mariadb-repo/mariadb" @@ -103,7 +103,7 @@ releases: values: - "values-mariadb.yaml" - "values-mariadb.gotmpl" - condition: "mariadb.enabled" + installed: {{ .Values.mariadb.enabled }} timeout: 900 - name: "postfix" chart: "postfix-repo/postfix" @@ -111,28 +111,28 @@ releases: values: - "values-postfix.yaml" - "values-postfix.gotmpl" - condition: "postfix.enabled" + installed: {{ .Values.postfix.enabled }} - name: "clamav" chart: "clamav-repo/opendesk-clamav" version: "4.0.0" values: - "values-clamav-distributed.yaml" - "values-clamav-distributed.gotmpl" - condition: "clamavDistributed.enabled" + installed: {{ .Values.clamavDistributed.enabled }} - name: "clamav-simple" chart: "clamav-repo/clamav-simple" version: "4.0.0" values: - "values-clamav-simple.yaml" - "values-clamav-simple.gotmpl" - condition: "clamavSimple.enabled" + installed: {{ .Values.clamavSimple.enabled }} - name: "opendesk-gateway" chart: "istio-resources-repo/istio-gateway" version: "2.0.0" values: - "values-istio-gateway.yaml" - "values-istio-gateway.gotmpl" - condition: "istio.enabled" + installed: {{ .Values.istio.enabled }} commonLabels: deploy-stage: "services" diff --git a/helmfile/apps/univention-corporate-container/helmfile.yaml b/helmfile/apps/univention-corporate-container/helmfile.yaml index 3a9621e5..39e23d8e 100644 --- a/helmfile/apps/univention-corporate-container/helmfile.yaml +++ b/helmfile/apps/univention-corporate-container/helmfile.yaml @@ -20,7 +20,7 @@ releases: values: - "values.yaml" - "values.gotmpl" - condition: "univentionCorporateServer.enabled" + installed: {{ .Values.univentionCorporateServer.enabled }} commonLabels: deploy-stage: "component-1" diff --git a/helmfile/apps/univention-management-stack/helmfile.yaml b/helmfile/apps/univention-management-stack/helmfile.yaml index 0e389cde..8db8b38c 100644 --- a/helmfile/apps/univention-management-stack/helmfile.yaml +++ b/helmfile/apps/univention-management-stack/helmfile.yaml @@ -19,7 +19,7 @@ releases: - "values-common.gotmpl" - "values-common.yaml" - "values-store-dav.gotmpl" - condition: "univentionManagementStack.enabled" + installed: {{ .Values.univentionManagementStack.enabled }} - name: "ums-ldap-server" chart: "ums-repo/ldap-server" version: "0.1.0" @@ -27,7 +27,7 @@ releases: - "values-common.gotmpl" - "values-common.yaml" - "values-ldap-server.gotmpl" - condition: "univentionManagementStack.enabled" + installed: {{ .Values.univentionManagementStack.enabled }} - name: "ums-ldap-notifier" chart: "ums-repo/ldap-notifier" version: "0.1.0" @@ -36,7 +36,7 @@ releases: - "values-common.yaml" - "values-ldap-notifier.gotmpl" - "values-ldap-notifier.yaml" - condition: "univentionManagementStack.enabled" + installed: {{ .Values.univentionManagementStack.enabled }} - name: "ums-udm-rest-api" chart: "ums-repo/udm-rest-api" version: "0.1.0" @@ -44,7 +44,7 @@ releases: - "values-common.gotmpl" - "values-common.yaml" - "values-udm-rest-api.gotmpl" - condition: "univentionManagementStack.enabled" + installed: {{ .Values.univentionManagementStack.enabled }} - name: "ums-stack-data-ums" chart: "ums-repo/stack-data-ums" version: "0.1.0" @@ -52,7 +52,7 @@ releases: - "values-common.gotmpl" - "values-common.yaml" - "values-stack-data-ums.gotmpl" - condition: "univentionManagementStack.enabled" + installed: {{ .Values.univentionManagementStack.enabled }} - name: "ums-stack-data-swp" chart: "ums-repo/stack-data-swp" version: "0.1.0" @@ -60,7 +60,7 @@ releases: - "values-common.gotmpl" - "values-common.yaml" - "values-stack-data-swp.gotmpl" - condition: "univentionManagementStack.enabled" + installed: {{ .Values.univentionManagementStack.enabled }} - name: "ums-portal-server" chart: "ums-repo/portal-server" version: "0.1.0" @@ -68,7 +68,7 @@ releases: - "values-common.gotmpl" - "values-common.yaml" - "values-portal-server.gotmpl" - condition: "univentionManagementStack.enabled" + installed: {{ .Values.univentionManagementStack.enabled }} - name: "ums-notifications-api" chart: "ums-repo/notifications-api" version: "0.1.0" @@ -77,7 +77,7 @@ releases: - "values-common.yaml" - "values-notifications-api.gotmpl" - "values-notifications-api.yaml" - condition: "univentionManagementStack.enabled" + installed: {{ .Values.univentionManagementStack.enabled }} - name: "ums-portal-listener" chart: "ums-repo/portal-listener" version: "0.1.0" @@ -86,7 +86,7 @@ releases: - "values-common.yaml" - "values-portal-listener.gotmpl" - "values-portal-listener.yaml" - condition: "univentionManagementStack.enabled" + installed: {{ .Values.univentionManagementStack.enabled }} - name: "ums-portal-frontend" chart: "ums-repo/portal-frontend" version: "0.1.0" @@ -94,7 +94,7 @@ releases: - "values-common.gotmpl" - "values-common.yaml" - "values-portal-frontend.gotmpl" - condition: "univentionManagementStack.enabled" + installed: {{ .Values.univentionManagementStack.enabled }} - name: "ums-umc-gateway" chart: "ums-repo/umc-gateway" version: "0.1.0" @@ -103,7 +103,7 @@ releases: - "values-common.yaml" - "values-umc-gateway.gotmpl" - "values-umc-gateway.yaml" - condition: "univentionManagementStack.enabled" + installed: {{ .Values.univentionManagementStack.enabled }} - name: "ums-umc-server" chart: "ums-repo/umc-server" version: "0.1.0" @@ -111,7 +111,7 @@ releases: - "values-common.gotmpl" - "values-common.yaml" - "values-umc-server.gotmpl" - condition: "univentionManagementStack.enabled" + installed: {{ .Values.univentionManagementStack.enabled }} commonLabels: deploy-stage: "component-1" diff --git a/helmfile/apps/xwiki/helmfile.yaml b/helmfile/apps/xwiki/helmfile.yaml index 003e31a7..9cd4dbeb 100644 --- a/helmfile/apps/xwiki/helmfile.yaml +++ b/helmfile/apps/xwiki/helmfile.yaml @@ -17,7 +17,7 @@ releases: values: - "values.yaml" - "values.gotmpl" - condition: "xwiki.enabled" + installed: {{ .Values.xwiki.enabled }} timeout: 900 commonLabels: