kuberntes migration job sidecar is not being terminated

6/13/2019

I have a yaml file that runs migration on my kubernetes deployment. There is a block of script in the yaml file that terminates the sidecar container for the database. When this migration file is run on circleci using ansible, the script works, however, when it is run with jenkins using kubectl, the termination fails.

After I check the yaml file on GCP, I discover that the whole block of code has been wrapped in quotes.

The script for terminating the sidecar

-- David Essien
circleci
google-cloud-platform
jenkins
kubectl
kubernetes

0 Answers