devspace icon indicating copy to clipboard operation
devspace copied to clipboard

feat: add config & path runtime variables for dependencies and imports

Open lizardruss opened this issue 1 year ago • 1 comments

What issue type does this pull request address? (keep at least one, remove the others) /kind feature

What does this pull request do? Which issues does it resolve? Adds runtime variables with the devspace.yaml config location and the path it's in: runtime.imports[i].config runtime.imports[i].path runtime.dependencies.[name].config runtime.dependencies.[name].path

resolves #2581 fixes ENG-1062

Please provide a short message that should be published in the DevSpace release notes Added runtime variables to expose the location of dependencies and imports.

What else do we need to know? Nested dependencies work, but nested imports do not. This is because imports are erased at load time and cannot be referred to later.

TODO

  • [x] Add runtime.config and runtime.path
  • [x] Test runtime.config, runtime.path, runtime.dependencies.[name].config, and runtime.dependencies.[name].path
  • [x] Add runtime.imports[i].config and runtime.imports[i].path
  • [ ] Add documation (pending initial review)

lizardruss avatar Apr 03 '23 21:04 lizardruss

Deploy Preview for devspace-docs canceled.

Built without sensitive environment variables

Name Link
Latest commit 76a45446147470f1ff9f69955f10a6edef5c6b56
Latest deploy log https://app.netlify.com/sites/devspace-docs/deploys/642b4b6fd7f93600088abce3

netlify[bot] avatar Apr 03 '23 21:04 netlify[bot]