-
Notifications
You must be signed in to change notification settings - Fork 118
Migrate label sync from Prow to Tekton CronJob or Terraform #3180
Copy link
Copy link
Open
Labels
area/dogfoodingIndicates an issue on dogfooding (aka using Pipeline to test Pipeline)Indicates an issue on dogfooding (aka using Pipeline to test Pipeline)area/label_syncIssues or PRs related to code in /label_syncIssues or PRs related to code in /label_syncarea/prowIssues or PRs related to prowIssues or PRs related to prowkind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Metadata
Metadata
Assignees
Labels
area/dogfoodingIndicates an issue on dogfooding (aka using Pipeline to test Pipeline)Indicates an issue on dogfooding (aka using Pipeline to test Pipeline)area/label_syncIssues or PRs related to code in /label_syncIssues or PRs related to code in /label_syncarea/prowIssues or PRs related to prowIssues or PRs related to prowkind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Type
Projects
Status
No status
Summary
Prow's
label_synctool currently synchronizes labels defined inlabel_sync/labels.yaml(~520 lines) across alltektoncdandtektoncd-catalogrepositories. This needs to run independently of Prow.Proposed Replacement
A Tekton CronJob (or Kubernetes CronJob triggering a TaskRun) on the OCI
cluster:
labels.yaml(from the repo or a ConfigMap),uses
ghCLI or GitHub API to sync labels across all repos, and reportsdrift or errors.
label_sync/labels.yamlforimmediate sync (via PaC or EventListener).
Alternatives
would make it fully declarative and auditable. But the
labels.yamlformatis Prow-specific and would need conversion.
crazy-max/ghaction-github-labelerorlannonbr/issue-label-manager-action.gh labelcommands.Considerations
labels.yamlformat is Prow-specific — may need conversion dependingon the tool chosen.
tektoncdandtektoncd-catalogorgs.(declarative, auditable, PR-reviewable).
/cc @tektoncd/plumbing-maintainers