mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-27 17:31:51 +02:00
set right variable name
This commit is contained in:
parent
88f79258f5
commit
20ec197cd4
@ -69,7 +69,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
|||||||
roleBinding.withSubjects([{ kind: 'ServiceAccount', name: 'prometheus-' + $._config.prometheus.name, namespace: namespace }]);
|
roleBinding.withSubjects([{ kind: 'ServiceAccount', name: 'prometheus-' + $._config.prometheus.name, namespace: namespace }]);
|
||||||
|
|
||||||
local roleBindigList = k.rbac.v1.roleBindingList;
|
local roleBindigList = k.rbac.v1.roleBindingList;
|
||||||
roleBindigList.new([newSpecificRoleBinding(x) for x in $._config.prometheus.roleSpecificNamespaces]),
|
roleBindigList.new([newSpecificRoleBinding(x) for x in $._config.prometheus.namespaces]),
|
||||||
clusterRole:
|
clusterRole:
|
||||||
local clusterRole = k.rbac.v1.clusterRole;
|
local clusterRole = k.rbac.v1.clusterRole;
|
||||||
local policyRule = clusterRole.rulesType;
|
local policyRule = clusterRole.rulesType;
|
||||||
@ -142,7 +142,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
|||||||
role.withRules(coreRule);
|
role.withRules(coreRule);
|
||||||
|
|
||||||
local roleList = k.rbac.v1.roleList;
|
local roleList = k.rbac.v1.roleList;
|
||||||
roleList.new([newSpecificRole(x) for x in $._config.prometheus.roleSpecificNamespaces]),
|
roleList.new([newSpecificRole(x) for x in $._config.prometheus.namespaces]),
|
||||||
prometheus:
|
prometheus:
|
||||||
local container = k.core.v1.pod.mixin.spec.containersType;
|
local container = k.core.v1.pod.mixin.spec.containersType;
|
||||||
local resourceRequirements = container.mixin.resourcesType;
|
local resourceRequirements = container.mixin.resourcesType;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user