#!/bin/bash # Prepares the namespace the end-to-end experiments run in: a # ServiceAccount the profiles allow, the test card, and the profiles # themselves. 4242 4242 4242 4242 is Stripe's public test number, which # moves no money. set -euo pipefail cd "$(dirname "$0")" K="kubectl ${CONTEXT:+--context "$CONTEXT"}" NS=${NS:-errands} $K create namespace $NS --dry-run=client -o yaml | $K apply -f - >/dev/null $K -n $NS create serviceaccount agent --dry-run=client -o yaml | $K apply -f - >/dev/null $K -n $NS create secret generic test-card --from-literal=number=4242424242424242 --dry-run=client -o yaml | $K apply -f - >/dev/null $K -n $NS apply -f profiles.yaml