Skip to content

generate bazel targets to be executed as create_gitops_pr #6

Description

@apesternikov

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions