Skip to content
Snippets Groups Projects
Verified Commit a1de5e38 authored by Arie Peterson's avatar Arie Peterson
Browse files

Check kustomization app readiness in separate jobs

parent 7741dfcf
Branches
Tags
No related merge requests found
......@@ -182,6 +182,7 @@ stages:
- setup-cluster
- kustomization
- install-apps
- apps-kustomizations-ready
- certs
- health-test
- integration-test
......@@ -432,6 +433,66 @@ enable-wordpress:
- .enable_app_template
- .wordpress_rules
# Stage: apps-kustomizations-ready
# ================
#
# Check that the kustomizations of all installed apps are ready.
.app-kustomization-ready:
stage: apps-kustomizations-ready
extends:
- .kustomization-ready
monitoring-kustomization-ready:
needs:
- job: setup-openappstack
- job: enable-monitoring
variables:
RESOURCE: "monitoring"
extends:
- .app-kustomization-ready
- .monitoring_rules
nextcloud-kustomization-ready:
needs:
- job: setup-openappstack
- job: enable-nextcloud
variables:
RESOURCE: "nextcloud"
extends:
- .app-kustomization-ready
- .nextcloud_rules
rocketchat-kustomization-ready:
needs:
- job: setup-openappstack
- job: enable-rocketchat
variables:
RESOURCE: "rocketchat"
extends:
- .app-kustomization-ready
- .rocketchat_rules
wekan-kustomization-ready:
needs:
- job: setup-openappstack
- job: enable-wekan
variables:
RESOURCE: "wekan"
extends:
- .app-kustomization-ready
- .wekan_rules
wordpress-kustomization-ready:
needs:
- job: setup-openappstack
- job: enable-wordpress
variables:
RESOURCE: "wordpress"
extends:
- .app-kustomization-ready
- .wordpress_rules
# Stage: certs
# ================
#
......
......@@ -11,18 +11,6 @@ app=$1
# generate them and add them to the cluster.
python "$(dirname "$0")/generate_secrets.py" "$app"
case "$app" in
monitoring)
namespace="oas"
;;
velero)
namespace="velero"
;;
*)
namespace="oas-apps"
;;
esac
# This kustomization's only purpose is to add the kustomization that is in the
# flux2/cluster/optional/$app folder. After this kustomization is applied
# an `add-$app` kustomization will be present on the cluster, as well as a
......@@ -31,7 +19,4 @@ flux create kustomization "add-${app}" \
--source=GitRepository/openappstack \
--path="./flux2/cluster/optional/${app}" \
--prune=true \
--interval=1h \
--health-check="HelmRelease/${app}.${namespace}" \
--health-check-timeout=20m \
--timeout=20m
--interval=1h
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment