From 6b40756d6aab26c9438b1b0418eac013adc741d3 Mon Sep 17 00:00:00 2001 From: Jonathan Dobson Date: Tue, 7 May 2024 17:31:16 -0600 Subject: [PATCH] OCPBUGS-28230: enforce termination message policy on all platform pods --- assets/csidriveroperators/azure-file-original/08_deployment.yaml | 1 + assets/csidriveroperators/azure-file/base/08_deployment.yaml | 1 + .../azure-file/hypershift/mgmt/deployment.patch.yaml | 1 + .../apps_v1_deployment_azure-file-csi-driver-operator.yaml | 1 + .../apps_v1_deployment_azure-file-csi-driver-operator.yaml | 1 + assets/csidriveroperators/ibm-vpc-block/08_deployment.yaml | 1 + assets/csidriveroperators/openstack-cinder/07_deployment.yaml | 1 + .../powervs-block/hypershift/mgmt/06_deployment.yaml | 1 + .../powervs-block/standalone/06_deployment.yaml | 1 + .../shared-resource/hypershift/mgmt/09_deployment.yaml | 1 + .../shared-resource/standalone/09_deployment.yaml | 1 + assets/csidriveroperators/vsphere/08_deployment.yaml | 1 + 12 files changed, 12 insertions(+) diff --git a/assets/csidriveroperators/azure-file-original/08_deployment.yaml b/assets/csidriveroperators/azure-file-original/08_deployment.yaml index d7b0475ee..60e622945 100644 --- a/assets/csidriveroperators/azure-file-original/08_deployment.yaml +++ b/assets/csidriveroperators/azure-file-original/08_deployment.yaml @@ -54,6 +54,7 @@ spec: requests: memory: 50Mi cpu: 10m + terminationMessagePolicy: FallbackToLogsOnError priorityClassName: system-cluster-critical serviceAccountName: azure-file-csi-driver-operator nodeSelector: diff --git a/assets/csidriveroperators/azure-file/base/08_deployment.yaml b/assets/csidriveroperators/azure-file/base/08_deployment.yaml index c884d72e2..f5f21396f 100644 --- a/assets/csidriveroperators/azure-file/base/08_deployment.yaml +++ b/assets/csidriveroperators/azure-file/base/08_deployment.yaml @@ -54,5 +54,6 @@ spec: requests: memory: 50Mi cpu: 10m + terminationMessagePolicy: FallbackToLogsOnError priorityClassName: system-cluster-critical serviceAccountName: azure-file-csi-driver-operator diff --git a/assets/csidriveroperators/azure-file/hypershift/mgmt/deployment.patch.yaml b/assets/csidriveroperators/azure-file/hypershift/mgmt/deployment.patch.yaml index 14ab2503e..6de5b0d1f 100644 --- a/assets/csidriveroperators/azure-file/hypershift/mgmt/deployment.patch.yaml +++ b/assets/csidriveroperators/azure-file/hypershift/mgmt/deployment.patch.yaml @@ -54,6 +54,7 @@ spec: volumeMounts: - mountPath: /etc/guest-kubeconfig name: guest-kubeconfig + terminationMessagePolicy: FallbackToLogsOnError priorityClassName: hypershift-control-plane volumes: - name: guest-kubeconfig diff --git a/assets/csidriveroperators/azure-file/hypershift/mgmt/generated/apps_v1_deployment_azure-file-csi-driver-operator.yaml b/assets/csidriveroperators/azure-file/hypershift/mgmt/generated/apps_v1_deployment_azure-file-csi-driver-operator.yaml index 7ad704686..c793371fb 100644 --- a/assets/csidriveroperators/azure-file/hypershift/mgmt/generated/apps_v1_deployment_azure-file-csi-driver-operator.yaml +++ b/assets/csidriveroperators/azure-file/hypershift/mgmt/generated/apps_v1_deployment_azure-file-csi-driver-operator.yaml @@ -88,6 +88,7 @@ spec: volumeMounts: - mountPath: /etc/guest-kubeconfig name: guest-kubeconfig + terminationMessagePolicy: FallbackToLogsOnError priorityClassName: hypershift-control-plane serviceAccountName: azure-file-csi-driver-operator tolerations: diff --git a/assets/csidriveroperators/azure-file/standalone/generated/apps_v1_deployment_azure-file-csi-driver-operator.yaml b/assets/csidriveroperators/azure-file/standalone/generated/apps_v1_deployment_azure-file-csi-driver-operator.yaml index ce7a93583..92cb9368b 100644 --- a/assets/csidriveroperators/azure-file/standalone/generated/apps_v1_deployment_azure-file-csi-driver-operator.yaml +++ b/assets/csidriveroperators/azure-file/standalone/generated/apps_v1_deployment_azure-file-csi-driver-operator.yaml @@ -54,6 +54,7 @@ spec: requests: cpu: 10m memory: 50Mi + terminationMessagePolicy: FallbackToLogsOnError nodeSelector: node-role.kubernetes.io/master: "" priorityClassName: system-cluster-critical diff --git a/assets/csidriveroperators/ibm-vpc-block/08_deployment.yaml b/assets/csidriveroperators/ibm-vpc-block/08_deployment.yaml index c145b4bef..902a1e85b 100644 --- a/assets/csidriveroperators/ibm-vpc-block/08_deployment.yaml +++ b/assets/csidriveroperators/ibm-vpc-block/08_deployment.yaml @@ -50,6 +50,7 @@ spec: requests: memory: 50Mi cpu: 10m + terminationMessagePolicy: FallbackToLogsOnError priorityClassName: system-cluster-critical serviceAccountName: ibm-vpc-block-csi-driver-operator nodeSelector: diff --git a/assets/csidriveroperators/openstack-cinder/07_deployment.yaml b/assets/csidriveroperators/openstack-cinder/07_deployment.yaml index afa4ccaec..66e31d0fd 100644 --- a/assets/csidriveroperators/openstack-cinder/07_deployment.yaml +++ b/assets/csidriveroperators/openstack-cinder/07_deployment.yaml @@ -56,6 +56,7 @@ spec: requests: cpu: 10m memory: 50Mi + terminationMessagePolicy: FallbackToLogsOnError priorityClassName: system-cluster-critical serviceAccountName: openstack-cinder-csi-driver-operator nodeSelector: diff --git a/assets/csidriveroperators/powervs-block/hypershift/mgmt/06_deployment.yaml b/assets/csidriveroperators/powervs-block/hypershift/mgmt/06_deployment.yaml index 69c87430d..27e138655 100644 --- a/assets/csidriveroperators/powervs-block/hypershift/mgmt/06_deployment.yaml +++ b/assets/csidriveroperators/powervs-block/hypershift/mgmt/06_deployment.yaml @@ -54,6 +54,7 @@ spec: volumeMounts: - mountPath: /etc/guest-kubeconfig name: guest-kubeconfig + terminationMessagePolicy: FallbackToLogsOnError priorityClassName: hypershift-control-plane serviceAccountName: powervs-block-csi-driver-operator tolerations: diff --git a/assets/csidriveroperators/powervs-block/standalone/06_deployment.yaml b/assets/csidriveroperators/powervs-block/standalone/06_deployment.yaml index 2334573a6..3bf2373a6 100644 --- a/assets/csidriveroperators/powervs-block/standalone/06_deployment.yaml +++ b/assets/csidriveroperators/powervs-block/standalone/06_deployment.yaml @@ -46,6 +46,7 @@ spec: requests: memory: 50Mi cpu: 10m + terminationMessagePolicy: FallbackToLogsOnError priorityClassName: system-cluster-critical serviceAccountName: powervs-block-csi-driver-operator nodeSelector: diff --git a/assets/csidriveroperators/shared-resource/hypershift/mgmt/09_deployment.yaml b/assets/csidriveroperators/shared-resource/hypershift/mgmt/09_deployment.yaml index 6f27028e9..4a761418b 100644 --- a/assets/csidriveroperators/shared-resource/hypershift/mgmt/09_deployment.yaml +++ b/assets/csidriveroperators/shared-resource/hypershift/mgmt/09_deployment.yaml @@ -46,6 +46,7 @@ spec: volumeMounts: - mountPath: /etc/guest-kubeconfig name: guest-kubeconfig + terminationMessagePolicy: FallbackToLogsOnError priorityClassName: hypershift-control-plane serviceAccountName: shared-resource-csi-driver-operator tolerations: diff --git a/assets/csidriveroperators/shared-resource/standalone/09_deployment.yaml b/assets/csidriveroperators/shared-resource/standalone/09_deployment.yaml index 8daca8e46..b2c0ca2d7 100644 --- a/assets/csidriveroperators/shared-resource/standalone/09_deployment.yaml +++ b/assets/csidriveroperators/shared-resource/standalone/09_deployment.yaml @@ -48,6 +48,7 @@ spec: volumeMounts: - mountPath: /etc/secrets name: shared-resource-csi-driver-operator-metrics-serving-cert + terminationMessagePolicy: FallbackToLogsOnError priorityClassName: system-cluster-critical serviceAccountName: shared-resource-csi-driver-operator nodeSelector: diff --git a/assets/csidriveroperators/vsphere/08_deployment.yaml b/assets/csidriveroperators/vsphere/08_deployment.yaml index dd6fa70f9..198730ce7 100644 --- a/assets/csidriveroperators/vsphere/08_deployment.yaml +++ b/assets/csidriveroperators/vsphere/08_deployment.yaml @@ -63,6 +63,7 @@ spec: mountPath: /etc/pki/ca-trust/extracted/pem - mountPath: /var/run/secrets/serving-cert name: vmware-vsphere-csi-driver-operator-metrics-serving-cert + terminationMessagePolicy: FallbackToLogsOnError priorityClassName: system-cluster-critical serviceAccountName: vmware-vsphere-csi-driver-operator nodeSelector: