Merge "Fix config clusters index in CurrentContextCluster()"
This commit is contained in:
commit
3a3d0ae90c
@ -596,8 +596,10 @@ func (c *Config) CurrentContextCluster() (*Cluster, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
clusterName := NewClusterComplexName()
|
||||
clusterName.FromName(currentContext.KubeContext().Cluster)
|
||||
|
||||
return c.Clusters[currentContext.KubeContext().Cluster].ClusterTypes[currentContext.ClusterType()], nil
|
||||
return c.Clusters[clusterName.ClusterName()].ClusterTypes[currentContext.ClusterType()], nil
|
||||
}
|
||||
|
||||
func (c *Config) CurrentContextAuthInfo() (*AuthInfo, error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user