fluxcd / flux

Successor: https://github.com/fluxcd/flux2
https://fluxcd.io
Apache License 2.0
6.9k stars 1.08k forks source link

Question: Flux via Terraform with GCP Source Repository #3559

Closed sandrom closed 3 years ago

sandrom commented 3 years ago

I am using Terraform. I am creating a gcp source repo via terraform and a service account with access on that repository. I am also using the flux terraform provider.

What I am missing and fail to understand so far is how to wire it up so flux can actually access the git repository as the only really viable solution I can see is if flux could simply use the gcp auth to acquire credentials instead of ssh key or so. Is that somehow possible? I'd prefer not to have manual steps in between.

kingdonb commented 3 years ago

Hello, thank you for the report.

This is the repo for Flux v1, the legacy Flux. The flux-terraform-provider has its own repo, and general Flux issues are kept at fluxcd/flux2 for now.

I wonder if you have seen this doc already: https://fluxcd.io/docs/guides/image-update/#gcp-container-registry

Are you asking about a GCP git repository? I'm not sure I understood the question. I guess you are asking about support for this (https://cloud.google.com/source-repositories) which is a different thing. I'm not aware of any users who have tried this out before.

sandrom commented 3 years ago

ok i'll move the question. it is about cloud source repositories which is the gcp git repository