terraform-provider-flux icon indicating copy to clipboard operation
terraform-provider-flux copied to clipboard

Public path with manifests

Open jvkubjg opened this issue 11 months ago • 0 comments

Provider Version: 1.0.1

Since we are working on private network, I am setting up private docker registry like that:

resource "flux_bootstrap_git" "this" {
  path = "some-path"
  registry = private.registry.io/fluxcd/
}

We also proxy the provider localization with terraform proxy settings

provider_installation {
 network_mirror {
  url = "https://private.domain/repository/terraform-proxy/v1/providers/"
  }
}

But Flux still wants to download manifest from the github.com, and we are getting following error (since github.com is not white-listed on our env and will never be):

╷
│ Error: Bootstrap run error
│ 
│   with module.k8s_operations.flux_bootstrap_git.this,
│   on .terraform/modules/k8s_operations/flux-cd.tf line 1, in resource "flux_bootstrap_git" "this":
│    1: resource "flux_bootstrap_git" "this" {
│ 
│ component manifest generation failed: failed to download manifests.tar.gz
│ from
│ https://github.com/fluxcd/flux2/releases/download/v2.0.1/manifests.tar.gz,
│ error: Get
│ "https://github.com/fluxcd/flux2/releases/download/v2.0.1/manifests.tar.gz":
│ Forbidden

Expected behavior: Adding optional attribute like: manifest_url that will specify the path for the manifests

jvkubjg avatar Aug 01 '23 09:08 jvkubjg