From c7623dcf5948c5844acbf0301b1a3d5001f9ae90 Mon Sep 17 00:00:00 2001 From: Dustin Row Date: Thu, 16 Apr 2026 11:07:48 -0700 Subject: [PATCH] Add terminationMessagePolicy and required-scc annotation for OCP 4.21 conformance --- deploy/operator.yaml | 3 +++ deploy_pko/Deployment-splunk-forwarder-operator.yaml.gotmpl | 3 +++ 2 files changed, 6 insertions(+) diff --git a/deploy/operator.yaml b/deploy/operator.yaml index b6d77e9c..31cf1e63 100644 --- a/deploy/operator.yaml +++ b/deploy/operator.yaml @@ -11,6 +11,8 @@ spec: metadata: labels: name: splunk-forwarder-operator + annotations: + openshift.io/required-scc: restricted-v2 spec: serviceAccountName: splunk-forwarder-operator affinity: @@ -43,3 +45,4 @@ spec: fieldPath: metadata.name - name: OPERATOR_NAME value: "splunk-forwarder-operator" + terminationMessagePolicy: FallbackToLogsOnError diff --git a/deploy_pko/Deployment-splunk-forwarder-operator.yaml.gotmpl b/deploy_pko/Deployment-splunk-forwarder-operator.yaml.gotmpl index ceeb5d38..9f6a61b5 100644 --- a/deploy_pko/Deployment-splunk-forwarder-operator.yaml.gotmpl +++ b/deploy_pko/Deployment-splunk-forwarder-operator.yaml.gotmpl @@ -15,6 +15,8 @@ spec: metadata: labels: name: splunk-forwarder-operator + annotations: + openshift.io/required-scc: restricted-v2 spec: serviceAccountName: splunk-forwarder-operator affinity: @@ -46,3 +48,4 @@ spec: fieldPath: metadata.name - name: OPERATOR_NAME value: splunk-forwarder-operator + terminationMessagePolicy: FallbackToLogsOnError