Skip to content

Commit

Permalink
jsonnet/kube-state-metrics/kube-state-metrics.libsonnet: Adjust permi…
Browse files Browse the repository at this point in the history
…ssions
  • Loading branch information
lilic committed Oct 13, 2020
1 parent e637a2f commit dc89be6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsonnet/kube-state-metrics/kube-state-metrics.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
'daemonsets',
'deployments',
'replicasets',
'ingresses',
]) +
rulesType.withVerbs(['list', 'watch']),

Expand Down Expand Up @@ -135,6 +134,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
rulesType.withApiGroups(['networking.k8s.io']) +
rulesType.withResources([
'networkpolicies',
'ingresses',
]) +
rulesType.withVerbs(['list', 'watch']),

Expand Down Expand Up @@ -228,10 +228,10 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';

roleBinding.new() +
roleBinding.mixin.metadata.withName(ksm.name) +
roleBinding.mixin.metadata.withNamespace(ksm.namespace) +
roleBinding.mixin.metadata.withLabels(ksm.commonLabels) +
roleBinding.mixin.roleRef.withApiGroup('rbac.authorization.k8s.io') +
roleBinding.mixin.roleRef.withName(ksm.name) +
roleBinding.mixin.roleRef.withNamespace(ksm.namespace) +
roleBinding.mixin.roleRef.mixinInstance({ kind: 'Role' }) +
roleBinding.withSubjects([{ kind: 'ServiceAccount', name: ksm.name }]),

Expand Down

3 comments on commit dc89be6

@kehao95

This comment was marked as outdated.

@lilic

This comment was marked as off-topic.

@kehao95

This comment was marked as off-topic.

Please sign in to comment.