v0.1.0-alpha.7
Pre-releasev0.1.0-alpha.7
This release introduces Unix-style variable expansion in Diagnostics.file script. The previous Go-style
templating has been deprecated
in favor of the more traditional variable expansion.
Variable Expansion
Now all directives that appear in the Diagnostic script file can support variable expansion. This provides a more familiar feel to those with experience writing shell script. For instance, the following shows how variable expansion can be used in a Diagnostics script:
ENV clogs=/var/log/containers
ENV klogroot=/var/log
COPY ${clogs}
COPY $klogroot/kubelet.log
COPY ${klogroot}/kube-proxy.log
COPY ${klogroot}/kube-apiserver.log
Diagnostics script files can also access any environment variables made available to the process at runtime:
FROM 127.0.0.1:22
AUTHCONFIG username:${USER} private-key:${HOME}/.ssh/id_rsa
CAPTURE /bin/echo "HELLO WORLD"
Changelog
e64ccca Merge pull request #18 from vladimirvivien/var-expansion-redo
43b2371 Documentation updates
0621e2c Executor updates with var expansion support
bfd2430 Parser update with variable expansion support