mirror of
https://gitlab.opencode.de/bmi/opendesk/deployment/opendesk.git
synced 2025-12-06 15:31:38 +01:00
Compare commits
4 Commits
1.7+harbor
...
jconde/ox-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62a7461092 | ||
|
|
328bc9469f | ||
|
|
48c58c1e12 | ||
|
|
d4826f74a5 |
@@ -292,12 +292,16 @@ db-cleanup:
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
# First: Gather all files that contain the "database:" keyword in the default environment
|
||||||
- |
|
- |
|
||||||
export FILES=(
|
export FILES="$(grep -r 'databases:' "${CI_PROJECT_DIR}/helmfile/environments/default" |
|
||||||
"${CI_PROJECT_DIR}/helmfile/environments/default/database.yaml.gotmpl"
|
awk -F ':' '{print $1}')"
|
||||||
"${CI_PROJECT_DIR}/helmfile/environments/dev/values.yaml.gotmpl"
|
# Second: Gather all files that contain the "database:" keyword in the dev environment
|
||||||
"${CI_PROJECT_DIR}/helmfile/environments/dev/write-over-values-for-environment.yaml.gotmpl"
|
# where the adjustments from opendesk-env are placed
|
||||||
)
|
- |
|
||||||
|
export FILES="${FILES} $(grep -r 'databases:' "${CI_PROJECT_DIR}/helmfile/environments/dev" |
|
||||||
|
awk -F ':' '{print $1}')"
|
||||||
|
- "echo \"${FILES[@]}\""
|
||||||
# Cleanup MariaDB
|
# Cleanup MariaDB
|
||||||
- "export MARIADB_HOST=\"\""
|
- "export MARIADB_HOST=\"\""
|
||||||
- "export MARIADB_PORT=\"\""
|
- "export MARIADB_PORT=\"\""
|
||||||
@@ -305,11 +309,11 @@ db-cleanup:
|
|||||||
- "export MARIADB_PASSWORD=\"\""
|
- "export MARIADB_PASSWORD=\"\""
|
||||||
- "export ENV_DATABASE=\"oxAppSuite\""
|
- "export ENV_DATABASE=\"oxAppSuite\""
|
||||||
|
|
||||||
# Parse cluster values
|
# Parse cluster values
|
||||||
- |
|
- |
|
||||||
for FILE in ${FILES[@]}; do
|
for FILE in ${FILES[@]}; do
|
||||||
if [ -f ${FILE} ]; then
|
if [ -f "${FILE}" ]; then
|
||||||
if [[ $(tail -n +1 $FILE | grep -v '{{' | yq '.databases.[env(ENV_DATABASE)]') != "null" ]]; then
|
if [[ $(tail -n +1 "${FILE}" | grep -v '{{' | yq '.databases.[env(ENV_DATABASE)]') != "null" ]]; then
|
||||||
MARIADB_DATABASE=$(tail -n +1 $FILE | grep -v '{{' | yq '.databases.[env(ENV_DATABASE)].name')
|
MARIADB_DATABASE=$(tail -n +1 $FILE | grep -v '{{' | yq '.databases.[env(ENV_DATABASE)].name')
|
||||||
MARIADB_USERNAME=$(tail -n +1 $FILE | grep -v '{{' | yq '.databases.[env(ENV_DATABASE)].username')
|
MARIADB_USERNAME=$(tail -n +1 $FILE | grep -v '{{' | yq '.databases.[env(ENV_DATABASE)].username')
|
||||||
MARIADB_PASSWORD=$(tail -n +1 $FILE | grep -v '{{' | yq '.databases.[env(ENV_DATABASE)].password')
|
MARIADB_PASSWORD=$(tail -n +1 $FILE | grep -v '{{' | yq '.databases.[env(ENV_DATABASE)].password')
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ global:
|
|||||||
systemExtensions:
|
systemExtensions:
|
||||||
- name: "ox"
|
- name: "ox"
|
||||||
image:
|
image:
|
||||||
registry: {{ coalesce .Values.repositories.image.registryOpencodeDe .Values.global.imageRegistry .Values.images.nubusOxExtension.registry | quote }}
|
registry: {{ .Values.images.nubusOxExtension.registry | quote }}
|
||||||
repository: {{ .Values.images.nubusOxExtension.repository }}
|
repository: {{ .Values.images.nubusOxExtension.repository }}
|
||||||
tag: {{ .Values.images.nubusOxExtension.tag }}
|
tag: {{ .Values.images.nubusOxExtension.tag }}
|
||||||
- name: "opendesk"
|
- name: "opendesk"
|
||||||
@@ -1309,6 +1309,8 @@ nubusStackDataUms:
|
|||||||
portalLinkSupport: {{ .Values.functional.portal.linkSupport | quote }}
|
portalLinkSupport: {{ .Values.functional.portal.linkSupport | quote }}
|
||||||
portalLinkFeedback: {{ .Values.functional.portal.linkFeedback | quote }}
|
portalLinkFeedback: {{ .Values.functional.portal.linkFeedback | quote }}
|
||||||
oxDefaultContext: "1"
|
oxDefaultContext: "1"
|
||||||
|
portalOxLinkBase: {{ printf "https://%s.%s" .Values.global.hosts.openxchange .Values.global.domain }}
|
||||||
|
oxSystemUserPassword: {{ .Values.secrets.nubus.ldapSearch.ox | quote }}
|
||||||
oxContextHidden: true
|
oxContextHidden: true
|
||||||
ldapSearchUsers:
|
ldapSearchUsers:
|
||||||
{{- range $username, $password := .Values.secrets.nubus.ldapSearch }}
|
{{- range $username, $password := .Values.secrets.nubus.ldapSearch }}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ extraVolumeMounts:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
image:
|
image:
|
||||||
registry: {{ coalesce .Values.repositories.image.registryOpencodeDe .Values.global.imageRegistry .Values.images.oxConnector.registry | quote }}
|
registry: {{ .Values.images.oxConnector.registry | quote }}
|
||||||
repository: {{ .Values.images.oxConnector.repository | quote }}
|
repository: {{ .Values.images.oxConnector.repository | quote }}
|
||||||
pullPolicy: {{ .Values.global.imagePullPolicy | quote }}
|
pullPolicy: {{ .Values.global.imagePullPolicy | quote }}
|
||||||
tag: {{ .Values.images.oxConnector.tag | quote }}
|
tag: {{ .Values.images.oxConnector.tag | quote }}
|
||||||
|
|||||||
@@ -576,9 +576,9 @@ images:
|
|||||||
# upstreamRepository: "nubus/images/ox-extension"
|
# upstreamRepository: "nubus/images/ox-extension"
|
||||||
# upstreamMirrorTagFilterRegEx: '^(\d+)\.(\d+)\.(\d+)$'
|
# upstreamMirrorTagFilterRegEx: '^(\d+)\.(\d+)\.(\d+)$'
|
||||||
# upstreamMirrorStartFrom: ["0", "10", "0"]
|
# upstreamMirrorStartFrom: ["0", "10", "0"]
|
||||||
registry: "registry.opencode.de"
|
registry: "artifacts.software-univention.de"
|
||||||
repository: "bmi/opendesk/components/supplier/univention/images-mirror/ox-extension"
|
repository: "nubus-dev/images/ox-extension"
|
||||||
tag: "0.11.1@sha256:e57df5c02d0480ccf1d299964e3c676d92440d5e959b4f587945f08624da3ae9"
|
tag: "0.26.0-pre-jtorres-fix-ox-extensions"
|
||||||
nubusPortalConsumer:
|
nubusPortalConsumer:
|
||||||
# providerCategory: "Supplier"
|
# providerCategory: "Supplier"
|
||||||
# providerResponsible: "Univention"
|
# providerResponsible: "Univention"
|
||||||
@@ -894,9 +894,9 @@ images:
|
|||||||
# upstreamRepository: "nubus/images/ox-connector-standalone"
|
# upstreamRepository: "nubus/images/ox-connector-standalone"
|
||||||
# upstreamMirrorTagFilterRegEx: '^(\d+)\.(\d+)\.(\d+)$'
|
# upstreamMirrorTagFilterRegEx: '^(\d+)\.(\d+)\.(\d+)$'
|
||||||
# upstreamMirrorStartFrom: ["0", "4", "2"]
|
# upstreamMirrorStartFrom: ["0", "4", "2"]
|
||||||
registry: "registry.opencode.de"
|
registry: "artifacts.software-univention.de"
|
||||||
repository: "bmi/opendesk/components/supplier/univention/images-mirror/ox-connector-standalone"
|
repository: "nubus-dev/images/ox-connector-standalone"
|
||||||
tag: "0.19.0@sha256:447e3c3e0cdd8bf1f86004d2088c24fcf6141ff6fef78ade8dfe86f7f16ba40e"
|
tag: "0.26.0-pre-jtorres-fix-ox-extensions"
|
||||||
postfix:
|
postfix:
|
||||||
# providerCategory: "Platform"
|
# providerCategory: "Platform"
|
||||||
# providerResponsible: "openDesk"
|
# providerResponsible: "openDesk"
|
||||||
|
|||||||
Reference in New Issue
Block a user