
local deployment = parseYaml(std.extVar('inputMetricsServerDeploy'));

local args = [
  &quot;--kubelet-insecure-tls&quot;,
  &quot;--kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname&quot;,
]

[
  # drop all the secrets if they're found, we don't want to check them into git
  if object.kind == 'Secret' then {} else object
  for object in helpers.list(
    helpers.named(deployment) + {
      # grab kind deployment with name metrics-server, and add some more args
      ['Deployment/kube-system/