mirror of
https://github.com/helm/helm.git
synced 2026-08-05 07:30:46 +00:00
fix: catch one additional discovery client warning (#7176)
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
This commit is contained in:
@@ -167,8 +167,8 @@ func (c *Configuration) releaseContent(name string, version int) (*release.Relea
|
||||
// GetVersionSet retrieves a set of available k8s API versions
|
||||
func GetVersionSet(client discovery.ServerResourcesInterface) (chartutil.VersionSet, error) {
|
||||
groups, resources, err := client.ServerGroupsAndResources()
|
||||
if err != nil {
|
||||
return chartutil.DefaultVersionSet, err
|
||||
if err != nil && !discovery.IsGroupDiscoveryFailedError(err) {
|
||||
return chartutil.DefaultVersionSet, errors.Wrap(err, "could not get apiVersions from Kubernetes")
|
||||
}
|
||||
|
||||
// FIXME: The Kubernetes test fixture for cli appears to always return nil
|
||||
|
||||
Reference in New Issue
Block a user