From 60ea8de5f1142c309e5e65de7d2a7409aabd22e3 Mon Sep 17 00:00:00 2001 From: jregan Date: Thu, 26 Nov 2020 14:48:00 -0800 Subject: [PATCH] Complete WNode implementation. --- api/internal/wrappy/wnode.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/internal/wrappy/wnode.go b/api/internal/wrappy/wnode.go index d0fde84c1..901925d57 100644 --- a/api/internal/wrappy/wnode.go +++ b/api/internal/wrappy/wnode.go @@ -163,13 +163,13 @@ func (wn *WNode) MarshalJSON() ([]byte, error) { } // MatchesAnnotationSelector implements ifc.Kunstructured. -func (wn *WNode) MatchesAnnotationSelector(string) (bool, error) { - panic("TODO(#WNode) MatchesAnnotationSelector; implement or drop from API") +func (wn *WNode) MatchesAnnotationSelector(selector string) (bool, error) { + return wn.node.MatchesAnnotationSelector(selector) } // MatchesLabelSelector implements ifc.Kunstructured. -func (wn *WNode) MatchesLabelSelector(string) (bool, error) { - panic("TODO(#WNode) MatchesLabelSelector; implement or drop from API") +func (wn *WNode) MatchesLabelSelector(selector string) (bool, error) { + return wn.node.MatchesLabelSelector(selector) } // SetAnnotations implements ifc.Kunstructured.