cisco-open / cluster-registry-controller

An operator that automatically synchronizes Kubernetes resources across multiple clusters
Apache License 2.0
22 stars 8 forks source link

[Fix] Refactor reader secret method to get CAData from KubeConfig file #31

Closed shanchunyang0919 closed 2 years ago

shanchunyang0919 commented 2 years ago

Description

Adding these lines back as there will be cases where kubeConfig.CAData is not empty

if !bytes.Contains(caData, kubeConfig.CAData) {
        caData = append(append(caData, []byte("\n")...), kubeConfig.CAData...)
    }
shanchunyang0919 commented 2 years ago

Smoke tests v1.24+ and version earlier than v1.24 pass.

shanchunyang0919 commented 2 years ago

Thanks for reviews @Laci21 @waynz0r