Skip to content
Snippets Groups Projects

Undeploy

Getting Started

First, edit the env.txt file with your values and create a secret using:

kubectl create secret generic undeployer-env -n nemo-kernel --from-env-file=./manifests/env.txt 

Deploy the deployment-controller:

kubectl apply -f deployment.yaml

Local testing

For testing purposes, the code in the folder /test/trigger-undeployment.go can be used to simulate the triggering of a deployment. This code will deletethe workload associated with the instance_id specified in the deletemsg.json file:

go run trigger-undeployment.go