diff --git a/pkg/resolver/serviceable_resolver.go b/pkg/resolver/serviceable_resolver.go index ecab7c06..4c97b879 100644 --- a/pkg/resolver/serviceable_resolver.go +++ b/pkg/resolver/serviceable_resolver.go @@ -52,6 +52,11 @@ func (r *ServiceableResolver) ServiceableFromObjectReference(ctx context.Context return nil, fmt.Errorf("failed to track %+v: %v", ref, err) } gvr, _ := meta.UnsafeGuessKindToResource(ref.GroupVersionKind()) + + // Tactical fix for Postgres resource pluralization + if gvr.Resource == "postgreses" && gvr.Group == "sql.tanzu.vmware.com" { + gvr.Resource = "postgres" + } _, lister, err := r.informerFactory.Get(ctx, gvr) if err != nil { return nil, err