Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing vars/templates/data between git-included deployments #669

Open
14 tasks
senbax-admin opened this issue Jul 16, 2023 · 1 comment
Open
14 tasks

Passing vars/templates/data between git-included deployments #669

senbax-admin opened this issue Jul 16, 2023 · 1 comment

Comments

@senbax-admin
Copy link

senbax-admin commented Jul 16, 2023

Command

  • check-image-updates
  • delete
  • deploy
  • diff
  • helm-pull
  • helm-update
  • list-images
  • list-targets
  • poke-images
  • prune
  • render
  • seal
  • validate
  • version

Who are you?

No response

What do you want to do?

I could not find any way to pass any data between git included deployments.

I tried multiple approaches:

  • Using variables from sub-deployments included via git -> Does not work. Maybe we could add smth like expose: true to expose vars to the parent deployment?
  • Using templates with onlyRender: true from sub-deployments included via git f.e. with load_template() -> I could not find a path to load any templates from sub-deployments. However this does work fine with include: instead of git:. The docs only mention that you cannot use templates from the parent deployment. Maybe dynamic path/tag variables #372 could help getting the path of git-included deployments?
  • Using ConfigMaps or Secrets with clusterConfigMap / clusterSecret variable sources -> does not work as noted in the docs.

I included barrier: true between all deployment items and added waitReadiness: true to all kustomize deployments.
Am i missing something or is there currently no way to pass any data?

Why do you need that?

There are many use cases where passing data between deployments is necessary.

@codablock
Copy link
Collaborator

@senbax-admin Sorry for the late response, I somehow missed this issue. Is this still relevant?

Generally, all git included sub-deployment inherit the templating context from the parent, meaning that all variables should be available. Files can currently not be shared between projects, as I implement some strict protections to avoid leaving a git project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants