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

Branch planner fails due to insufficient privileges to create GitRepository object #1516

Open
mrybson opened this issue Jan 31, 2025 · 0 comments

Comments

@mrybson
Copy link

mrybson commented Jan 31, 2025

Hello
I just created fresh installation of Flux + Tofu controller with Branch Planner enabled. I follow the guide: https://flux-iac.github.io/tofu-controller/branch-planner/branch-planner-getting-started/

Once I open PR, that's what I get in the planner controller logs:

{"level":"error","ts":"2025-01-31T10:11:14.172Z","logger":"polling-server","msg":"failed to reconcile Terraform object for PR","version":"","sha":"","terraform":"product-a-tf-config","namespace":"flux-system","source":"product-a-git-repo","PR ID":"2",
"error":"unable to reconcile Source for Terraform object product-a-tf-config-pr-2 in the namespace flux-system: reconcile failed for Source product-a-git-repo-274fa63f241dc5005619-pr-2 in the namespace flux-system: gitrepositories.source.toolkit.fluxcd.io is forbidden: User "system:serviceaccount:flux-system:tf-controller" cannot create resource "gitrepositories" in API group "source.toolkit.fluxcd.io" in the namespace "flux-system""}

Is there anything I am missing in my configuration?

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