e2e: move from deprecated openebs charts to new registry (#4321)

This commit is contained in:
Nikola Jokic
2025-11-20 22:25:52 +01:00
committed by GitHub
parent 138b39bfcb
commit a50d8bfebc
3 changed files with 21 additions and 18 deletions

View File

@@ -15,10 +15,10 @@ ARC_NAME="arc"
ARC_NAMESPACE="arc-systems" ARC_NAMESPACE="arc-systems"
function install_arc() { function install_arc() {
echo "Install openebs/dynamic-localpv-provisioner" install_openebs || {
helm repo add openebs https://openebs.github.io/charts echo "OpenEBS installation failed"
helm repo update return 1
helm install openebs openebs/openebs -n openebs --create-namespace }
echo "Creating namespace ${ARC_NAMESPACE}" echo "Creating namespace ${ARC_NAMESPACE}"
kubectl create namespace "${SCALE_SET_NAMESPACE}" kubectl create namespace "${SCALE_SET_NAMESPACE}"

View File

@@ -14,7 +14,8 @@ export IMAGE_TAG="${VERSION}"
export IMAGE="${IMAGE_NAME}:${IMAGE_TAG}" export IMAGE="${IMAGE_NAME}:${IMAGE_TAG}"
export PLATFORMS="linux/amd64" export PLATFORMS="linux/amd64"
export COMMIT_SHA="$(git rev-parse HEAD)" COMMIT_SHA="$(git rev-parse HEAD)"
export COMMIT_SHA
function build_image() { function build_image() {
echo "Building ARC image ${IMAGE}" echo "Building ARC image ${IMAGE}"
@@ -111,13 +112,6 @@ function cleanup_scale_set() {
kubectl wait --timeout=40s --for=delete autoscalingrunnersets -n "${NAMESPACE}" -l app.kubernetes.io/instance="${INSTALLATION_NAME}" kubectl wait --timeout=40s --for=delete autoscalingrunnersets -n "${NAMESPACE}" -l app.kubernetes.io/instance="${INSTALLATION_NAME}"
} }
function install_openebs() {
echo "Install openebs/dynamic-localpv-provisioner"
helm repo add openebs https://openebs.github.io/charts
helm repo update
helm install openebs openebs/openebs --namespace openebs --create-namespace
}
function print_results() { function print_results() {
local failed=("$@") local failed=("$@")
@@ -138,7 +132,8 @@ function run_workflow() {
echo "Checking if the workflow file exists" echo "Checking if the workflow file exists"
gh workflow view -R "${TARGET_ORG}/${TARGET_REPO}" "${WORKFLOW_FILE}" || return 1 gh workflow view -R "${TARGET_ORG}/${TARGET_REPO}" "${WORKFLOW_FILE}" || return 1
local queue_time="$(date -u +%FT%TZ)" local queue_time
queue_time="$(date -u +%FT%TZ)"
echo "Running workflow ${WORKFLOW_FILE}" echo "Running workflow ${WORKFLOW_FILE}"
gh workflow run -R "${TARGET_ORG}/${TARGET_REPO}" "${WORKFLOW_FILE}" --ref main -f arc_name="${SCALE_SET_NAME}" || return 1 gh workflow run -R "${TARGET_ORG}/${TARGET_REPO}" "${WORKFLOW_FILE}" --ref main -f arc_name="${SCALE_SET_NAME}" || return 1
@@ -164,7 +159,8 @@ function run_workflow() {
done done
echo "Waiting for run to complete" echo "Waiting for run to complete"
local code=$(gh run watch "${run_id}" -R "${TARGET_ORG}/${TARGET_REPO}" --exit-status &>/dev/null) local code
code=$(gh run watch "${run_id}" -R "${TARGET_ORG}/${TARGET_REPO}" --exit-status &>/dev/null)
if [[ "${code}" -ne 0 ]]; then if [[ "${code}" -ne 0 ]]; then
echo "Run failed with exit code ${code}" echo "Run failed with exit code ${code}"
return 1 return 1
@@ -191,3 +187,10 @@ function retry() {
fi fi
done done
} }
function install_openebs() {
echo "Install openebs/dynamic-localpv-provisioner"
helm repo add openebs https://openebs.github.io/openebs
helm repo update
helm install openebs openebs/openebs -n openebs --create-namespace
}

View File

@@ -15,10 +15,10 @@ ARC_NAME="arc"
ARC_NAMESPACE="arc-systems" ARC_NAMESPACE="arc-systems"
function install_arc() { function install_arc() {
echo "Install openebs/dynamic-localpv-provisioner" install_openebs || {
helm repo add openebs https://openebs.github.io/charts echo "OpenEBS installation failed"
helm repo update return 1
helm install openebs openebs/openebs -n openebs --create-namespace }
echo "Creating namespace ${ARC_NAMESPACE}" echo "Creating namespace ${ARC_NAMESPACE}"
kubectl create namespace "${SCALE_SET_NAMESPACE}" kubectl create namespace "${SCALE_SET_NAMESPACE}"