@zombienet/orchestrator
Version:
ZombieNet aim to be a testing framework for substrate based blockchains, providing a simple cli tool that allow users to spawn and test ephemeral Substrate based networks
23 lines (22 loc) • 566 B
YAML
apiVersion: batch/v1
kind: CronJob
metadata:
name: cleaner-{{namespace}}
spec:
schedule: "{{schedule}}"
successfulJobsHistoryLimit: 1
jobTemplate:
metadata:
name: namespace-cleaner
spec:
template:
spec:
serviceAccountName: zombie-internal-kubectl
containers:
- name: namespace-cleaner-job
image: bitnami/kubectl:1.17.3
command:
- "bin/bash"
- "-c"
- "kubectl delete namespace {{namespace}}"
restartPolicy: Never