Within the current implementation of hooks 0.4.0 in combination with ARC 0.6.1 running in mode=kubernetes and the lastest runner 2.311.0 on an Enterprise instance, the handover of args towards the k8s job container is buggy. The args will be forwarded to the job pod in a escaped way, which will be disrespected by some tools like mkdocs:
Usage: mkdocs [OPTIONS] COMMAND [ARGS]...
MkDocs - Project documentation with Markdown.
Options:
-V, --version Show the version and exit.
-q, --quiet Silence warnings
-v, --verbose Enable verbose output
-h, --help Show this message and exit.
Commands:
build Build the MkDocs documentation
gh-deploy Deploy your documentation to GitHub Pages
new Create a new MkDocs project
serve Run the builtin development server
This fix will remove the leading and ending quotes from the args before handing over to the k8s pod creation.
Example 1
The args as an array with all parameters as a space separated string
Issue
Within the current implementation of
hooks 0.4.0
in combination withARC 0.6.1
running inmode=kubernetes
and the lastestrunner 2.311.0
on an Enterprise instance, the handover ofargs
towards the k8s job container is buggy. Theargs
will be forwarded to thejob pod
in a escaped way, which will be disrespected by some tools likemkdocs
:This fix will remove the leading and ending quotes from the
args
before handing over to the k8s pod creation.Example 1
The
args
as an array with all parameters as a space separated stringaction.yml
Runner to Hooks
Pod config without fix
Pod config with fix
Example 2
The
args
as an array with each parameter as a separate stringaction.yml
Runner to Hooks
Pod config without fix
Pod config with fix