terraform-provider-flux
terraform-provider-flux copied to clipboard
GPG keys for flux with terraform.
HI, i want to set up flux v2 with terraform but i don't find the variable to add the gpg key and do the same like this option :"--gpg-key-ring=/root/gpg-signing-key/"
i have ssh keys in this way and it's working:
data "flux_sync" "main" {
target_path = var.target_path
url = var.repo_url
branch = var.branch
}
resource "kubernetes_secret" "secret-ssh" {
depends_on = [kubectl_manifest.install]
metadata {
name = data.flux_sync.main.secret
namespace = data.flux_sync.main.namespace
}
data = {
identity = base64decode(var.private_key)
"identity.pub" = base64decode(var.public_key)
known_hosts = local.known_hosts
}
}
I dont see it in the data sync anything about it... Best regards
It would be nice to have an option in the terraform to use the verify spec of the GitRepository.