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

Commit

Permalink
Log warning on unsupported resource instead of err
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddeco committed May 27, 2019
1 parent bc46702 commit d0a1f12
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 d0a1f12

Please sign in to comment.