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

generate bazel targets to be executed as create_gitops_pr #6

Open
apesternikov opened this issue Aug 21, 2023 · 0 comments
Open

generate bazel targets to be executed as create_gitops_pr #6

apesternikov opened this issue Aug 21, 2023 · 0 comments

Comments

@apesternikov
Copy link
Contributor

Currently targets to deploy during create_gitops_prs run must be built just before the create_gitops_prs execution. This could be error prone and cause deploying of stale versions if targets parameter to create_gitops_prs is not synchronized exactly with targets to build.
Also, there is currently impossible to investigate dependency tree of the deployment using bazel query.
It would be useful to extract the initial step of targets discovery into a gazelle-like generator that would generate a target like this:

create_gitops_pr(
   name = "prod",
   deps = [
       "//package1:prod.gitops",
       "//package2:all.gitops",
   ]
)

running such target would be equivalent of building all dependencies and running create_gitops_prs on them.

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

1 participant