Skip to content

Bump aws.sdk.version from 2.21.2 to 2.21.12 #3133

Bump aws.sdk.version from 2.21.2 to 2.21.12

Bump aws.sdk.version from 2.21.2 to 2.21.12 #3133

# This is a basic workflow to help you get started with Actions
name: Test minikube script (k8s)
# Controls when the workflow will run
on:
push:
branches:
- master
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test-minikube:
name: Test with minikube
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- name: Start minikube
uses: medyagh/setup-minikube@master
with:
minikube-version: 1.31.2
driver: docker
kubernetes-version: v1.28.1
- name: test script
run: |
kubectl apply -f k8s/workspace-psa.yml
kubectl apply -f k8s/secrets-config.yml
kubectl apply -f k8s/secrets-secret.yml
kubectl apply -f k8s/challenge33.yml
kubectl apply -f k8s/secret-challenge-deployment.yml
while [[ $(kubectl get pods -l app=secret-challenge -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "waiting for secret-challenge" && sleep 2; done
kubectl logs -l app=secret-challenge -f >> pod.log &
kubectl expose deployment secret-challenge --type=LoadBalancer --port=8080
kubectl port-forward \
$(kubectl get pod -l app=secret-challenge -o jsonpath="{.items[0].metadata.name}") \
8080:8080 \
&
echo "Do minikube delete to stop minikube from running and cleanup to start fresh again"
echo "wait 20 seconds so we can check if vault-k8s-container works"
sleep 20
if curl http://localhost:8080/spoil-5 -s | grep -q spoiler-answer
then
echo "spoil-5 works"
else
echo "error in spoil-5"
fi
if curl http://localhost:8080/spoil-6 -s | grep -q spoiler-answer
then
echo "spoil-6 works"
else
echo "error in spoil-6"
fi
if curl http://localhost:8080/spoil-7 -s | grep -q spoiler-answer
then
echo "spoil-7 works"
else
echo "error in spoil-7"
fi
if curl http://localhost:8080/spoil-33 -s | grep -q spoiler-answer
then
echo "spoil-33 works"
else
echo "error in spoil-33"
fi
echo "logs from pod to make sure:"
cat pod.log