fluxcd / terraform-provider-flux

Terraform and OpenTofu provider for bootstrapping Flux
https://registry.terraform.io/providers/fluxcd/flux/latest
Apache License 2.0
336 stars 89 forks source link

Validate kubeconfig during provider configuration. #658

Closed swade1987 closed 1 month ago

swade1987 commented 1 month ago

Description

Validate kubernetes connectivity during provider configuration to reduce errors later on.

Motivation and Context

Fixes #656

How has this been tested?

Types of changes

Documentation

Checklist:

Community Note

networkhermit commented 1 month ago

I notice that the validate logic triggers a ServiceAccountList request in default namespace. I don't know, but is it possible for it to get reported and marked by some audit framework? If that's the case, ServiceList or else would be more harmless candidate. (Correct me if it's just me being over cautious.)