Skip to content

Commit

Permalink
feat: 🔨 Here i created a Makefile step to execute the injected script…
Browse files Browse the repository at this point in the history
… within server pod and check if ServiceAccount its working by veryfying the CURL results
  • Loading branch information
kevencript committed Mar 21, 2023
1 parent 4fcfd79 commit 5d44a2e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,11 @@ stress-test-fortio:
-c 70 \
"http://go-http-app-service/healthz"

# Testing
test-serviceaccount-pod-list: # This tests the ServiceAccount from namespace "server" (via injected script)
$(MAKE) server-context
kubectl exec -it \
$$(kubectl get po -o name | head -n 1) \
-- bash test-serviceaccount/test-k8s-api-access.sh


0 comments on commit 5d44a2e

Please sign in to comment.