Skip to content

Commit

Permalink
[ci] Wait for helm before next steps
Browse files Browse the repository at this point in the history
  • Loading branch information
barroco committed Jan 26, 2024
1 parent 80d53d5 commit 5bdf9c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ resource "helm_release" "aws-load-balancer-controller" {

namespace = "kube-system"

wait = true

set {
name = "clusterName"
value = var.cluster_name
Expand Down
12 changes: 7 additions & 5 deletions deploy/operations/ci/aws-1/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ kubectl apply -f "aws_auth_config_map.yml"
cd "$BASEDIR/../../../services/helm-charts/dss"
RELEASE_NAME="dss"
helm dep update --kube-context="$KUBE_CONTEXT"
helm upgrade --install --kube-context="$KUBE_CONTEXT" -f "${WORKSPACE_LOCATION}/helm_values.yml" "$RELEASE_NAME" .
helm upgrade --install --debug --kube-context="$KUBE_CONTEXT" -f "${WORKSPACE_LOCATION}/helm_values.yml" "$RELEASE_NAME" .
kubectl wait --for=condition=complete --timeout=3m job/rid-schema-manager-1

# TODO: Test the deployment of the DSS

Expand All @@ -48,11 +49,12 @@ fi

# Cleanup
# Delete workloads
helm uninstall --kube-context="$KUBE_CONTEXT" "$RELEASE_NAME"
helm uninstall --debug --kube-context="$KUBE_CONTEXT" --wait --timeout 5m "$RELEASE_NAME"

# Delete PVC to delete persistant volumes
kubectl delete pvc --all=true
# TODO: Check completness
# Delete PVC to delete persistent volumes
kubectl delete pvc --wait --all=true
kubectl delete pv --wait --all=true
# TODO: Check completeness

# Delete cluster
cd "$BASEDIR"
Expand Down

0 comments on commit 5bdf9c5

Please sign in to comment.