mirror of
https://github.com/prometheus/prometheus
synced 2025-01-13 10:22:46 +00:00
Minor change
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
f6c5a75661
commit
3e0ec3f8e1
@ -82,7 +82,7 @@ func (c *Role) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
switch *c {
|
switch *c {
|
||||||
case RoleNode, RolePod, RoleService, RoleEndpoint, RoleIngress:
|
case RoleNode, RolePod, RoleService, RoleEndpoint, RoleEndpointSlice, RoleIngress:
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
return errors.Errorf("unknown Kubernetes SD role %q", *c)
|
return errors.Errorf("unknown Kubernetes SD role %q", *c)
|
||||||
|
Loading…
Reference in New Issue
Block a user