diff --git a/scripts/cleanup.sh b/scripts/cleanup.sh new file mode 100755 index 00000000..547cbbf7 --- /dev/null +++ b/scripts/cleanup.sh @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2023 Authors of Nimbus + +#!/bin/bash + +# Delete all SecurityIntent resources +kubectl delete securityintents --all --all-namespaces + +# Delete all SecurityIntentBinding resources +kubectl delete securityintentbindings --all --all-namespaces + +# Delete all NimbusPolicy resources +kubectl delete nimbuspolicies --all --all-namespaces + +echo "All resources have been successfully deleted." \ No newline at end of file