Browse Source

Minor change

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
pull/6838/head
Julien Pivotto 4 years ago
parent
commit
3e0ec3f8e1
  1. 2
      discovery/kubernetes/kubernetes.go

2
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)

Loading…
Cancel
Save