From 3e0ec3f8e1cc12ef8b7bfb138bc5c4c361b75f6a Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Wed, 29 Jul 2020 22:14:23 +0200 Subject: [PATCH] Minor change Signed-off-by: Julien Pivotto --- discovery/kubernetes/kubernetes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discovery/kubernetes/kubernetes.go b/discovery/kubernetes/kubernetes.go index b7d53e8ba..49a92caaf 100644 --- a/discovery/kubernetes/kubernetes.go +++ b/discovery/kubernetes/kubernetes.go @@ -82,7 +82,7 @@ func (c *Role) UnmarshalYAML(unmarshal func(interface{}) error) error { return err } switch *c { - case RoleNode, RolePod, RoleService, RoleEndpoint, RoleIngress: + case RoleNode, RolePod, RoleService, RoleEndpoint, RoleEndpointSlice, RoleIngress: return nil default: return errors.Errorf("unknown Kubernetes SD role %q", *c)