Debugging the error while applying operator manifest file

This section outlines how to debug the error while applying operator manifest file.

Issue: Error while applying operator manifest file

Resource: "apiextensions.k8s.io/v1, Resource=customresourcedefinitions",
GroupVersionKind: "apiextensions.k8s.io/v1,
Kind=CustomResourceDefinition"
Name: "csiscaleoperators.csi.ibm.com", Namespace: ""
for: "ibm-spectrum-scale-csi-operator.yaml":
CustomResourceDefinition.apiextensions.k8s.io
"csiscaleoperators.csi.ibm.com" is invalid: spec.preserveUnknownFields:
Invalid value: true: must be false in order to use defaults in the schema

How to troubleshoot?

If there is a history of upgrade from IBM Spectrum Scale Container Storage Interface driver 2.2.0 or earlier, then CSIScaleOperator custom resource must be allowed to use default values. To ensure this, set CustomResourceDefination field spec.preserveUnknowFields as false, and reapply the operator manifest files.

kubectl patch crd csiscaleoperators.csi.ibm.com -p '{"spec":{"preserveUnknownFields":false}}'