mirror of
https://gitlab.opencode.de/bmi/opendesk/deployment/opendesk.git
synced 2025-12-08 16:28:36 +01:00
feat(helmfile): Remove environments and replace with generic one
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
# SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS"
|
# SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS"
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
---
|
---
|
||||||
|
include:
|
||||||
|
- project: "souvap/devops/sovereign-workplace-env"
|
||||||
|
file: "gitlab/environments.yaml"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- "env-cleanup"
|
- "env-cleanup"
|
||||||
- "env"
|
- "env"
|
||||||
@@ -118,6 +122,7 @@ variables:
|
|||||||
.deploy-common:
|
.deploy-common:
|
||||||
cache: {}
|
cache: {}
|
||||||
dependencies: []
|
dependencies: []
|
||||||
|
extends: ".environments"
|
||||||
image: "registry.souvap-univention.de/souvap/tooling/images/helm:latest"
|
image: "registry.souvap-univention.de/souvap/tooling/images/helm:latest"
|
||||||
secrets:
|
secrets:
|
||||||
SMTP_PASSWORD:
|
SMTP_PASSWORD:
|
||||||
@@ -138,23 +143,8 @@ variables:
|
|||||||
file: false
|
file: false
|
||||||
script:
|
script:
|
||||||
- cd "${CI_PROJECT_DIR}/helmfile/apps/${COMPONENT}"
|
- cd "${CI_PROJECT_DIR}/helmfile/apps/${COMPONENT}"
|
||||||
- |
|
|
||||||
# Match Cluster to helmfile environments
|
|
||||||
if [ "${CLUSTER}" = "develop" ]; then
|
|
||||||
export HELMFILE_ENVIRONMENT=uv-develop
|
|
||||||
elif [ "${CLUSTER}" = "prototype" ]; then
|
|
||||||
export HELMFILE_ENVIRONMENT=uv-develop
|
|
||||||
elif [ "${CLUSTER}" = "hubble" ]; then
|
|
||||||
export HELMFILE_ENVIRONMENT=default
|
|
||||||
elif [ "${CLUSTER}" = "dev" ]; then
|
|
||||||
export HELMFILE_ENVIRONMENT=ionos
|
|
||||||
elif [ "${CLUSTER}" = "qa" ]; then
|
|
||||||
export HELMFILE_ENVIRONMENT=ionos
|
|
||||||
else
|
|
||||||
echo "Unsupported cluster chosen: ${CLUSTER}"
|
|
||||||
exit 1
|
|
||||||
fi;
|
|
||||||
# MASTER_PASSWORD_WEB_VAR as precedence for MASTER_PASSWORD
|
# MASTER_PASSWORD_WEB_VAR as precedence for MASTER_PASSWORD
|
||||||
|
- |
|
||||||
if ! [ -z "${MASTER_PASSWORD_WEB_VAR}" ]; then
|
if ! [ -z "${MASTER_PASSWORD_WEB_VAR}" ]; then
|
||||||
export MASTER_PASSWORD="${MASTER_PASSWORD_WEB_VAR}"
|
export MASTER_PASSWORD="${MASTER_PASSWORD_WEB_VAR}"
|
||||||
fi;
|
fi;
|
||||||
@@ -164,6 +154,8 @@ variables:
|
|||||||
- "docker"
|
- "docker"
|
||||||
- "kubernetes"
|
- "kubernetes"
|
||||||
- "${CLUSTER}"
|
- "${CLUSTER}"
|
||||||
|
variables:
|
||||||
|
HELMFILE_ENVIRONMENT: "dev"
|
||||||
|
|
||||||
env-cleanup:
|
env-cleanup:
|
||||||
extends: ".deploy-common"
|
extends: ".deploy-common"
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ environments:
|
|||||||
default:
|
default:
|
||||||
values:
|
values:
|
||||||
- "../../environments/default/*.gotmpl"
|
- "../../environments/default/*.gotmpl"
|
||||||
ionos:
|
dev:
|
||||||
values:
|
values:
|
||||||
- "../../environments/default/*.gotmpl"
|
- "../../environments/default/*.gotmpl"
|
||||||
- "../../environments/ionos/values.yaml"
|
- "../../environments/dev/values.yaml"
|
||||||
uv-develop:
|
prod:
|
||||||
values:
|
values:
|
||||||
- "../../environments/default/*.gotmpl"
|
- "../../environments/default/*.gotmpl"
|
||||||
- "../../environments/uv-develop/values.yaml"
|
- "../../environments/prod/values.yaml"
|
||||||
...
|
...
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS"
|
# SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS"
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
---
|
---
|
||||||
ingress:
|
# This a sample file and could be filled with proper variable overload.
|
||||||
ingressClassName: "nginx"
|
sample: true
|
||||||
|
|
||||||
...
|
...
|
||||||
@@ -1,11 +1,6 @@
|
|||||||
# SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS"
|
# SPDX-FileCopyrightText: 2023 Bundesministerium des Innern und für Heimat, PG ZenDiS "Projektgruppe für Aufbau ZenDiS"
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
---
|
---
|
||||||
ingress:
|
# This a sample file and could be filled with proper variable overload.
|
||||||
ingressClassName: "dedicated-haproxy-external"
|
sample: true
|
||||||
|
|
||||||
persistence:
|
|
||||||
storageClassNames:
|
|
||||||
RWX: "nfs-client"
|
|
||||||
RWO: "ionos-enterprise-ssd"
|
|
||||||
...
|
...
|
||||||
Reference in New Issue
Block a user