Skip to content

Commit

Permalink
correct HPO e2e paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Oct 11, 2024
1 parent 792a149 commit ddc6d11
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
set -e

source $(dirname $0)/../entry
source $(dirname $0)/entry

cd $(dirname $0)/../../../../..
cd $(dirname $0)/../../../..

USE_RANCHER=${USE_RANCHER:-"false"}
if [ "$USE_RANCHER" = "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
set -e

source $(dirname $0)/../entry
source $(dirname $0)/entry

cd $(dirname $0)/../../../../..
cd $(dirname $0)/../../../..

kubectl apply -f ./examples/helm-project-operator/ci/project-helm-chart.yaml
sleep ${DEFAULT_SLEEP_TIMEOUT_SECONDS};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
set -e

source $(dirname $0)/../entry
source $(dirname $0)/entry

cd $(dirname $0)/../../../../..
cd $(dirname $0)/../../../..

kubectl delete -f ./examples/helm-project-operator/ci/project-helm-chart.yaml
if kubectl get -n cattle-helm-system job/helm-delete-project-operator-example-chart-dummy --ignore-not-found; then
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
set -e

source $(dirname $0)/../entry
source $(dirname $0)/entry

cd $(dirname $0)/../../../../..
cd $(dirname $0)/../../../..

latest_chart=./charts/helm-project-operator
latest_chart=./packages/helm-project-operator/charts

case "${KUBERNETES_DISTRIBUTION_TYPE}" in
"k3s")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
set -e

source $(dirname $0)/../entry
source $(dirname $0)/entry

cd $(dirname $0)/../../../../..
cd $(dirname $0)/../../../..

helm uninstall --wait -n cattle-helm-system helm-project-operator

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
set -e

source $(dirname $0)/../entry
source $(dirname $0)/entry

cd $(dirname $0)/../../../../..
cd $(dirname $0)/../../../..

if ! kubectl -n cattle-helm-system rollout status deployment helm-project-operator --timeout="${KUBECTL_WAIT_TIMEOUT}"; then
echo "ERROR: Helm Project Operator did not roll out"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/hpo-e2e-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,22 @@ jobs:
with:
limit-access-to-actor: true
- name: Install Helm Project Operator
run: ./.github/workflows/e2e/scripts/hpo/install-helm-project-operator.sh;
run: ./.github/workflows/e2e/scripts/hpo-install-helm-project-operator.sh;

- name: Check if Helm Project Operator is up
run: ./.github/workflows/e2e/scripts/hpo/validate-helm-project-operator.sh;
run: ./.github/workflows/e2e/scripts/hpo-validate-helm-project-operator.sh;

- name: Check if Project Registration Namespace is auto-created on namespace detection
run: ./.github/workflows/e2e/scripts/hpo/create-project-namespace.sh;
run: ./.github/workflows/e2e/scripts/hpo-create-project-namespace.sh;

- name: Deploy Example Chart via ProjectHelmChart CR
run: ./.github/workflows/e2e/scripts/hpo/create-projecthelmchart.sh;
run: ./.github/workflows/e2e/scripts/hpo-create-projecthelmchart.sh;

- name: Delete Example Chart
run: ./.github/workflows/e2e/scripts/hpo/delete-projecthelmchart.sh;
run: ./.github/workflows/e2e/scripts/hpo-delete-projecthelmchart.sh;

- name: Uninstall Helm Project Operator
run: ./.github/workflows/e2e/scripts/hpo/uninstall-helm-project-operator.sh;
run: ./.github/workflows/e2e/scripts/hpo-uninstall-helm-project-operator.sh;

- name: Delete k3d cluster
if: always()
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prom-fed-e2e-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ jobs:
run: ./.github/workflows/e2e/scripts/validate-federator.sh;
-
name: Check if Project Registration Namespace is auto-created on namespace detection
run: ./.github/workflows/e2e/scripts/create-project-namespace.sh;
run: ./.github/workflows/e2e/scripts/hpo-create-project-namespace.sh;
-
name: Create Project Monitoring Stack via ProjectHelmChart CR
run: DEFAULT_SLEEP_TIMEOUT_SECONDS=20 ./.github/workflows/e2e/scripts/create-projecthelmchart.sh;
run: DEFAULT_SLEEP_TIMEOUT_SECONDS=20 ./.github/workflows/e2e/scripts/hpo-create-projecthelmchart.sh;
-
name: Check if the Project Prometheus Stack is up
run: ./.github/workflows/e2e/scripts/validate-project-monitoring.sh;
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
run: ./.github/workflows/e2e/scripts/validate-project-alertmanager.sh;
-
name: Delete Project Prometheus Stack
run: ./.github/workflows/e2e/scripts/delete-projecthelmchart.sh;
run: ./.github/workflows/e2e/scripts/hpo-delete-projecthelmchart.sh;
-
name: Uninstall Prometheus Federator
run: ./.github/workflows/e2e/scripts/uninstall-federator.sh;
Expand Down

0 comments on commit ddc6d11

Please sign in to comment.