Skip to content

Commit 7223a22

Browse files
kavya498hkantare
authored andcommitted
sdk cluster config changes
1 parent 0d5220c commit 7223a22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

api/container/containerv1/clusters.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,8 @@ func (r *clusters) StoreConfigDetail(name, dir string, admin, createCalicoConfig
773773
if err != nil {
774774
// Assuming an error means that this is a vpc cluster, and we're returning existing kubeconfig
775775
// When we add support for vpcs on openshift clusters, we may want revisit this
776-
clusterkey.FilePath = calicoConfig
777-
return kubeconfigFileName, clusterkey, nil
776+
clusterkey.FilePath = kubeconfigFileName
777+
return calicoConfig, clusterkey, nil
778778
}
779779

780780
if clusterInfo.Type == "openshift" {
@@ -809,8 +809,8 @@ func (r *clusters) StoreConfigDetail(name, dir string, admin, createCalicoConfig
809809
clusterkey.ClusterCACertificate = ""
810810

811811
}
812-
clusterkey.FilePath = calicoConfig
813-
return kubeconfigFileName, clusterkey, nil
812+
clusterkey.FilePath = kubeconfigFileName
813+
return calicoConfig, clusterkey, nil
814814
}
815815

816816
func kubeConfigDir(baseDir string) (string, error) {

0 commit comments

Comments
 (0)