1. Quick Debug Checklist
1. Issue or feature description
Clean up of PSP resources fails in k8s 1.25.4 / OKD 4.12 (tested with gpu-operator 22.9.2):
{"level":"info","ts":1675677539.5370145,"logger":"controllers.ClusterPolicy","msg":"Couldn't delete","PodSecurityPolicies":"gpu-operator-privileged","Error":"no matches for kind \"PodSecurityPolicy\" in version \"policy/v1beta1\""}
{"level":"error","ts":1675677539.5370853,"msg":"Reconciler error","controller":"clusterpolicy-controller","object":{"name":"cluster-policy"},"namespace":"","name":"cluster-policy","reconcileID":"2a1a3aa8-0a42-4425-95fd-0bd83f2d6ad7","error":"no matches for kind \"PodSecurityPolicy\" in version \"policy/v1beta1\""}
It seems the code here should treat a non-existent resource definition as "not found" and pass the condition, but it fails instead.
2. Steps to reproduce the issue
- Install the
gpu-operator in an OKD 4.12 cluster
- Observe the logs for the
gpu-operator pod
3. Other information
Commenting out the code block above allows the operator to start normally.
1. Quick Debug Checklist
i2c_coreandipmi_msghandlerloaded on the nodes?kubectl describe clusterpolicies --all-namespaces)1. Issue or feature description
Clean up of PSP resources fails in k8s 1.25.4 / OKD 4.12 (tested with
gpu-operator22.9.2):It seems the code here should treat a non-existent resource definition as "not found" and pass the condition, but it fails instead.
2. Steps to reproduce the issue
gpu-operatorin an OKD 4.12 clustergpu-operatorpod3. Other information
Commenting out the code block above allows the operator to start normally.