Tobias Brunner
d14fbc6e17
All checks were successful
continuous-integration/drone/push Build is passing
20 lines
632 B
Plaintext
20 lines
632 B
Plaintext
local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
|
|
|
|
{
|
|
prometheus+:: {
|
|
clusterRole+: {
|
|
rules+:
|
|
local role = k.rbac.v1.role;
|
|
local policyRule = role.rulesType;
|
|
local rule = policyRule.new() +
|
|
policyRule.withApiGroups(['']) +
|
|
policyRule.withResources([
|
|
'services',
|
|
'endpoints',
|
|
'pods',
|
|
]) +
|
|
policyRule.withVerbs(['get', 'list', 'watch']);
|
|
[rule]
|
|
},
|
|
}
|
|
} |