Cleanup of customCAs spec (#527)

* cleanup spec from customCAs when omitted

* add enabled default for customCAs
This commit is contained in:
Enrico Candino
2025-10-23 22:11:44 +02:00
committed by GitHub
parent ee7eac89ce
commit 075d72df5d
9 changed files with 53 additions and 20 deletions

View File

@@ -211,7 +211,7 @@ func newCluster(name, namespace string, config *CreateConfig) *v1beta1.Cluster {
}
if config.customCertsPath != "" {
cluster.Spec.CustomCAs = v1beta1.CustomCAs{
cluster.Spec.CustomCAs = &v1beta1.CustomCAs{
Enabled: true,
Sources: v1beta1.CredentialSources{
ClientCA: v1beta1.CredentialSource{