liquibade-update test not compatible with new runners
Pipeline failed with multiple errors due to new kubernetes version behaving slightly differently: https://gitlab.cern.ch/cta/CTA/-/jobs/30795899
Some complains from dbupdatetest definition:
The Pod "dbupdatetest" is invalid:
* spec.volumes[0].hostPath.path: Invalid value: "/home/cirunner/builds/72od_ioJ/0/cta/CTA/continuousintegration/orchestration/tests/../../docker/ctafrontend/cc7/etc/yum.repos.d": must not contain '..'
* spec.volumes[1].hostPath.path: Invalid value: "/home/cirunner/builds/72od_ioJ/0/cta/CTA/continuousintegration/orchestration/tests/../../docker/ctafrontend/cc7/opt/run/bin": must not contain '..'
* spec.containers[0].volumeMounts[1].name: Not found: "repos"
* spec.containers[0].volumeMounts[2].name: Not found: "scripts"
Most severe error is the following:
Waiting for dbupdatetest.error: unknown shorthand flag: 'a' in -a
See 'kubectl get --help' for usage.
.error: unknown shorthand flag: 'a' in -a
Looks like this is using something like get pod -a
that is not supported anymore.
This has been replaced in all other scripts using kubectl
json output and jq
should be the way.