shoebill-operator/tests/test.pl
Nikolai Rodionov 439e735203
Refactor the reconciler and add Woodpecker CI
Now controller looks a bit better and its parts can be tested with
integration tests, that are going to be implemented later.
2024-01-06 09:02:23 +01:00

15 lines
458 B
Bash
Executable File

#!/bin/env sh
# Run shoebill generate and apply
TAG=$(git rev-parse HEAD)
IMAGE="git.badhouseplants.net/allanger/shoebill-operator"
NAMESPACE="test-shoebill-operator"
kubectl create namespace $NAMESPACE
shoebill manifests -i $IMAGE -t $TAG -n $NAMESPACE > /tmp/manifests.yaml
kubectl apply -f /tmp/manifests.yaml
kubectl rollout status -n $NAMESPACE deployment shoebill-controller
kubectl delete -f /tmp/manifests.yaml
kubectl delete namespace $NAMESPACE