Skip to content

Commit

Permalink
udpated steps
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Jan 2, 2025
1 parent 6a39e35 commit 1e7c78a
Showing 1 changed file with 14 additions and 24 deletions.
38 changes: 14 additions & 24 deletions .github/workflows/ci-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,38 +40,28 @@ jobs:
key: docker-${{ runner.os }}-${{ hashFiles('.github/s3_and_iam_deployment/.env') }}
restore-keys: |
docker-${{ runner.os }}-
- name: Create k8s KIND Cluster
uses: helm/[email protected]
with:
version: v0.21.0
wait: 90s
cluster_name: object-storage-cluster

- name: Verify KIND cluster is running
run: |
kubectl cluster-info
kubectl get nodes
- name: Setup COSI, S3 and IAM environments
# By putting everything in one run script, we can
# start tasks in the background (&) and then wait.
run: |
# Make shell fail immediately if a non-backgrounded command fails
set -e -o pipefail
############################
# Group 1
# "Create KIND cluster" -> "Verify cluster" -> "Setup COSI resources"
############################
(
echo "=== [Group 1] Create k8s KIND Cluster ==="
# You can reuse your existing kind-action approach or just run the equivalent commands here.
# Example:
kind create cluster --name object-storage-cluster --image "kindest/node:v0.21.0" --wait 90s
echo "=== [Group 1] Verify KIND cluster is running ==="
kubectl cluster-info
kubectl get nodes
echo "=== [Group 1] Setup COSI Controller, CRDs and Driver ==="
echo "=== Setup COSI Controller, CRDs and Driver ==="
.github/scripts/setup_cosi_resources.sh
) &
############################
# Group 2
# "Load Cached Images"
############################
(
echo "=== [Group 2] Loading cached Docker images ==="
echo "=== Loading cached S3 and IAM Docker images ==="
if [ -d /tmp/.docker_cache ] && [ "$(ls -A /tmp/.docker_cache 2>/dev/null)" ]; then
for image in /tmp/.docker_cache/*.tar; do
docker load -i "$image" || true # continue on failure
Expand Down

0 comments on commit 1e7c78a

Please sign in to comment.