@@ -256,11 +256,10 @@ k {
256
256
]) +
257
257
$.util.resourcesRequests('100m' , '500Mi' ),
258
258
259
- local policyRule = $.rbac.v1beta1 .policyRule,
259
+ local policyRule = $.rbac.v1 .policyRule,
260
260
261
261
consul_sidekick_rbac:
262
262
$.util.namespacedRBAC('consul-sidekick' , [
263
- policyRule.new() +
264
263
policyRule.withApiGroups(['' , 'extensions' , 'apps' ]) +
265
264
policyRule.withResources(['pods' , 'replicasets' ]) +
266
265
policyRule.withVerbs(['get' , 'list' , 'watch' ]),
273
272
'--pod-name=$(POD_NAME)' ,
274
273
]) +
275
274
container.withEnv([
276
- container.envType .fromFieldPath('POD_NAMESPACE' , 'metadata.namespace' ),
277
- container.envType .fromFieldPath('POD_NAME' , 'metadata.name' ),
275
+ $.core.v1.envVar .fromFieldPath('POD_NAMESPACE' , 'metadata.namespace' ),
276
+ $.core.v1.envVar .fromFieldPath('POD_NAME' , 'metadata.name' ),
278
277
]),
279
278
280
279
consul_statsd_exporter::
303
302
$.consul_statsd_exporter,
304
303
$.consul_exporter,
305
304
]) +
306
- deployment.mixin. spec.template.spec.withServiceAccount('consul-sidekick' ) +
305
+ deployment.spec.template.spec.withServiceAccount('consul-sidekick' ) +
307
306
$.util.configMapVolumeMount($.consul_config_map, '/etc/config' ) +
308
307
$.util.antiAffinity,
309
308
0 commit comments