From 7f054835df2230281df660d1950d841d8bcfee78 Mon Sep 17 00:00:00 2001 From: Chandan-DK Date: Sat, 24 Aug 2024 09:44:00 +0000 Subject: [PATCH] use containerPort to avoid this error (Pod "badpod01-new" is invalid: spec.initContainers[0].ports[0].containerPort: Required value) in disallow-host-ports Signed-off-by: Chandan-DK --- .../baseline/disallow-host-ports/.chainsaw-test/pod-bad.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/pod-security-cel/baseline/disallow-host-ports/.chainsaw-test/pod-bad.yaml b/pod-security-cel/baseline/disallow-host-ports/.chainsaw-test/pod-bad.yaml index 482abd63e..c56579942 100644 --- a/pod-security-cel/baseline/disallow-host-ports/.chainsaw-test/pod-bad.yaml +++ b/pod-security-cel/baseline/disallow-host-ports/.chainsaw-test/pod-bad.yaml @@ -8,6 +8,7 @@ spec: image: busybox:1.35 ports: - hostPort: 8090 + containerPort: 8081 containers: - name: busybox image: busybox:1.35