Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2097 from weaveworks/bug/2092-unsupported-resources
Browse files Browse the repository at this point in the history
Log warning on unsupported resource
  • Loading branch information
hiddeco authored May 27, 2019
2 parents bc46702 + d0a1f12 commit 8aa213f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cluster/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ func (c *Cluster) SomeWorkloads(ids []flux.ResourceID) (res []cluster.Workload,

resourceKind, ok := resourceKinds[kind]
if !ok {
return nil, fmt.Errorf("Unsupported kind %v", kind)
c.logger.Log("warning", "unsupported kind", "resource", id)
continue
}

workload, err := resourceKind.getWorkload(c, ns, name)
Expand Down

0 comments on commit 8aa213f

Please sign in to comment.