From 621cbe5bd8e57fdca6978c9ae71359e9e5ac330a Mon Sep 17 00:00:00 2001 From: Devdatta Torne Date: Wed, 23 Sep 2026 11:08:47 +0530 Subject: [PATCH] OCPBUGS-120940: quote YAML string fields in iptables-alerter Event Unquoted ${pod_namespace} and ${pod_name} expansions are parsed as YAML 1.1 booleans (yes/no/true/false/on/off), so kubectl cannot unmarshal metadata.namespace as a string and the alerter CrashLoopBackOffs. Signed-off-by: Devdatta Torne Co-authored-by: Cursor --- bindata/network/iptables-alerter/002-script.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bindata/network/iptables-alerter/002-script.yaml b/bindata/network/iptables-alerter/002-script.yaml index ffc0a49e63..aa032d3b27 100644 --- a/bindata/network/iptables-alerter/002-script.yaml +++ b/bindata/network/iptables-alerter/002-script.yaml @@ -101,18 +101,18 @@ data: apiVersion: events.k8s.io/v1 kind: Event metadata: - namespace: ${pod_namespace} + namespace: "${pod_namespace}" generateName: iptables-alert- labels: - pod-uid: ${pod_uid} + pod-uid: "${pod_uid}" regarding: apiVersion: v1 kind: Pod - namespace: ${pod_namespace} - name: ${pod_name} - uid: ${pod_uid} + namespace: "${pod_namespace}" + name: "${pod_name}" + uid: "${pod_uid}" reportingController: openshift.io/iptables-deprecation-alerter - reportingInstance: ${ALERTER_POD_NAME} + reportingInstance: "${ALERTER_POD_NAME}" action: IPTablesUsageObserved reason: IPTablesUsageObserved type: Normal