From 294744fd006895e93894ed6b0236f697fce254e7 Mon Sep 17 00:00:00 2001 From: Philipp Michalski <7861443+phalski@users.noreply.github.com> Date: Fri, 11 Oct 2019 20:11:07 +0100 Subject: [PATCH] Fixed broken expression concatenation --- utils.libsonnet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.libsonnet b/utils.libsonnet index f06237f..44f194e 100644 --- a/utils.libsonnet +++ b/utils.libsonnet @@ -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)