Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
KubeCube
Commits
4ad0ba8f
Commit
4ad0ba8f
authored
3 years ago
by
weilaaa
Browse files
Options
Download
Email Patches
Plain Diff
enhance multi cluster manager pkg
parent
2f51411a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/multicluster/manager.go
+5
-1
pkg/multicluster/manager.go
with
5 additions
and
1 deletion
+5
-1
pkg/multicluster/manager.go
+
5
-
1
View file @
4ad0ba8f
...
...
@@ -134,7 +134,11 @@ func (m *MultiClustersMgr) Get(cluster string) (*InternalCluster, error) {
return
nil
,
fmt
.
Errorf
(
"get: internal cluster %s not found"
,
cluster
)
}
if
c
.
Scout
.
ClusterHealth
()
==
clusterv1
.
ClusterAbnormal
&&
cluster
!=
constants
.
LocalCluster
{
if
cluster
==
constants
.
LocalCluster
{
return
c
,
nil
}
if
c
.
Scout
.
ClusterHealth
()
==
clusterv1
.
ClusterAbnormal
{
return
c
,
fmt
.
Errorf
(
"internal cluster %v is abnormal, wait for recover"
,
cluster
)
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment