mirror of
https://github.com/rancher/k3k.git
synced 2026-04-22 02:26:40 +00:00
Cleanup of customCAs spec (#527)
* cleanup spec from customCAs when omitted * add enabled default for customCAs
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user