UNCLASSIFIED - NO CUI

Skip to content

Twistlock defender resources are not injected in DS

General MR

Summary

  • Fixed twistlock defender resources

Relevant logs/screenshots

Before injecting

kubectl get pods -l app=twistlock-defender -n twistlock -o jsonpath='{range .items[*]}{.metadata.name}:{.spec.containers[].resources}{"\n"}{end}'

twistlock-defender-ds-k4lj9:{"limits":{"cpu":"900m","memory":"512Mi"},"requests":{"cpu":"256m","memory":"512Mi"}}
twistlock-defender-ds-xnj9l:{"limits":{"cpu":"900m","memory":"512Mi"},"requests":{"cpu":"256m","memory":"512Mi"}}
twistlock-defender-ds-frbsz:{"limits":{"cpu":"900m","memory":"512Mi"},"requests":{"cpu":"256m","memory":"512Mi"}}
twistlock-defender-ds-9q4kp:{"limits":{"cpu":"900m","memory":"512Mi"},"requests":{"cpu":"256m","memory":"512Mi"}}
kubectl get daemonset twistlock-defender-ds -n twistlock -o json | jq '.spec.template.spec.containers[].resources'
{
  "limits": {
    "cpu": "900m",
    "memory": "512Mi"
  },
  "requests": {
    "cpu": "256m"
  }
}

After

kubectl get pods -l app=twistlock-defender -n twistlock -o jsonpath='{range .items[*]}{.metadata.name}:{.spec.containers[*].resources}{"\n"}{end}'

twistlock-defender-ds-8gfb5:{"limits":{"cpu":"4","memory":"4Gi"},"requests":{"cpu":"4","memory":"4Gi"}}
twistlock-defender-ds-47p9l:{"limits":{"cpu":"4","memory":"4Gi"},"requests":{"cpu":"4","memory":"4Gi"}}
twistlock-defender-ds-bfxx5:{"limits":{"cpu":"4","memory":"4Gi"},"requests":{"cpu":"4","memory":"4Gi"}}
twistlock-defender-ds-h5bzf:{"limits":{"cpu":"4","memory":"4Gi"},"requests":{"cpu":"4","memory":"4Gi"}}
kubectl get daemonset twistlock-defender-ds -n twistlock -o json | jq '.spec.template.spec.containers[].resources'

{
  "limits": {
    "cpu": "4",
    "memory": "4Gi"
  },
  "requests": {
    "cpu": "4",
    "memory": "4Gi"
  }
}

#109 (closed)

Upgrade Notices

N/A

Edited by Abimbola Abiola

Merge request reports