sudo87 opened a new pull request, #312:
URL: https://github.com/apache/cloudstack-terraform-provider/pull/312
## Summary
- Adds `cloudstack_kubernetes_cluster_config`, a data source that reads a
CKS cluster's kubeconfig
and exposes `endpoint`, `cluster_ca_certificate`, `client_certificate`,
`client_key`, and raw
`config_data`, so the `kubernetes`/`helm` providers can be wired to a CKS
cluster directly.
- Errors instead of guessing if a kubeconfig's current-context names a
cluster/user missing from a
multi-entry list, to avoid silently serving mismatched credentials.
- `config_data` and `client_key` are marked `Sensitive`.
## Test plan
- [x] `TestParseKubernetesClusterConfig` — 12 unit cases covering context
resolution, missing
sections, and malformed input
- [x] `make build`, `make test`, `make vet`, `gofmt -l` clean
- [x] `TestProvider`/`TestProvider_impl` confirm registration and schema
validity
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]