Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

internal/checks/kube: add more API resource requirements #10

Merged
merged 2 commits into from
Aug 27, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
internal/checks/kube/resources.go: skip instead of fail if api-resour…
…ces fails
  • Loading branch information
johnstcn committed Aug 27, 2021
commit 9834667485256440515604a85eb058d931475b3c
2 changes: 1 addition & 1 deletion internal/checks/kube/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func (k *KubernetesChecker) CheckResources(_ context.Context) []*api.CheckResult
dc := k.client.Discovery()
lists, err := dc.ServerPreferredResources()
if err != nil {
results = append(results, api.ErrorResult(checkName, "unable to fetch api resources from server", err))
results = append(results, api.SkippedResult(checkName, "unable to fetch api resources from server: "+err.Error()))
return results
}

Expand Down