Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaadc1bb

Browse files
mikesmithghMike Smith
authored and
Mike Smith
committed
fix(discovery): Do not fail if missing a subset of resources during API discover
Signed-off-by: Mike Smith <10135646+mjsmith1028@users.noreply.github.com>
1 parentc93fb62 commitaadc1bb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎pkg/dynamic/discovery/discovery.go‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,11 @@ func (rm *ResourceMap) refresh() {
9999
logging.Logger.V(7).Info("Refreshing API discovery info")
100100
_,groups,err:=rm.discoveryClient.ServerGroupsAndResources()
101101
iferr!=nil {
102-
logging.Logger.Error(err,"Failed to fetch discovery info")
103-
return
102+
iflen(groups)==0 {
103+
logging.Logger.Error(err,"Failed to fetch discovery info")
104+
return
105+
}
106+
logging.Logger.Error(err,"Failed to fetch all resources, continuing with partial discovery info")
104107
}
105108

106109
// Denormalize resource lists into maps for convenient lookup

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp