You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
A new expression for injecting values imported from/via Python like so ${__PY__:alviss.__version__}
This uses the ccptools.tpu.strimp.get_any(...) to import whatever the
expression key points to and inject into the parsed config
The use case here is mainly to inject dynamic Python values into Alviss
files "on-demand" like when using ccp-stencil
templates in a CI/CD pipe so you can have the ever-changing version of the
package you're working on injected automatically into the Alviss config file
used as Context for rendering Docker files, Kube manifests and so on
(similar to how it can be done in pyproject.toml)
This expression also adheres to the normal format of "defaults" (e.g. ${__PY__:alviss.__version__=Unknown}) and "required" (e.g. ${__PY__:alviss.__version__!=})