mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-11-20 19:07:17 +01:00
Fixed broken expression concatenation
This commit is contained in:
parent
6213f12199
commit
294744fd00
@ -49,7 +49,7 @@ local vars = import 'vars.jsonnet';
|
||||
|
||||
local c = clusterRole.new()
|
||||
+ (if labels != null then clusterRole.mixin.metadata.withLabels(labels) else {})
|
||||
+ clusterRole.mixin.metadata.withName(name) +
|
||||
+ clusterRole.mixin.metadata.withName(name)
|
||||
+ clusterRole.withRules(rules);
|
||||
c
|
||||
),
|
||||
@ -59,7 +59,7 @@ local vars = import 'vars.jsonnet';
|
||||
local clusterRoleBinding = k.rbac.v1.clusterRoleBinding;
|
||||
|
||||
clusterRoleBinding.new()
|
||||
+ clusterRoleBinding.mixin.metadata.withName(name) +
|
||||
+ clusterRoleBinding.mixin.metadata.withName(name)
|
||||
+ (if labels != null then clusterRoleBinding.mixin.metadata.withLabels(labels) else {})
|
||||
+ clusterRoleBinding.mixin.roleRef.withApiGroup('rbac.authorization.k8s.io')
|
||||
+ clusterRoleBinding.mixin.roleRef.withName(clusterRole)
|
||||
|
Loading…
Reference in New Issue
Block a user