-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a39e35
commit 1e7c78a
Showing
1 changed file
with
14 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|