Skip to content
Snippets Groups Projects
Commit ffc8832e authored by Benoit Gagnon's avatar Benoit Gagnon
Browse files

use std.setMember instead of std.count

parent 8e7d55d7
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,10 @@
template+: {
spec+: {
local stripLimits(c) =
if std.count([
'node-exporter',
'kube-rbac-proxy'
], c.name) > 0
if std.setMember(c.name, [
'kube-rbac-proxy',
'node-exporter',
])
then c + {resources+: {limits: {}}}
else c,
containers: std.map(stripLimits, super.containers),
......@@ -40,11 +40,11 @@
template+: {
spec+: {
local stripLimits(c) =
if std.count([
'kube-rbac-proxy-main',
'kube-rbac-proxy-self',
'addon-resizer'
], c.name) > 0
if std.setMember(c.name, [
'addon-resizer',
'kube-rbac-proxy-main',
'kube-rbac-proxy-self',
])
then c + {resources+: {limits: {}}}
else c,
containers: std.map(stripLimits, super.containers),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment