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
Which solution do you suggest?
Allow calling custom functions in the dependencies section of devspace.yaml.
Which alternative solutions exist?
None
Additional context
Expressions in the configuration appear to be resolved using ExecuteSimpleShellCommandhere, which doesn't look to support custom functions (they appear to be passed in via the handler, but ExecuteSimpleShellCommand uses the basic handler).
I'd like to use a function in the dependencies section to provide the ability to override a dependency with a local copy:
version: v2beta1functions:
get_dependency: | VAR_NAME=DEVSPACE_DEPENDENCY_${1^^} if [ -z "${!VAR_NAME}" ]; then echo "git: $2" if [ $# -gt 2 ]; then echo "subPath: $3" fi else if [ $# -gt 2 ]; then echo "path: ${!VAR_NAME}/$3" else echo "path: ${!VAR_NAME}" fi fidependencies:
example: $(get_dependency example https://github.com/example)
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
No
Which solution do you suggest?
Allow calling custom functions in the
dependencies
section ofdevspace.yaml
.Which alternative solutions exist?
None
Additional context
Expressions in the configuration appear to be resolved using
ExecuteSimpleShellCommand
here, which doesn't look to support custom functions (they appear to be passed in via the handler, butExecuteSimpleShellCommand
uses the basic handler).I'd like to use a function in the
dependencies
section to provide the ability to override a dependency with a local copy:The text was updated successfully, but these errors were encountered: