Troubleshoot UID errors for the Collector for Kubernetes (Red Hat OpenShift)

How to troubleshoot an invalid UID value error.

Invalid UID value error

If you enabled the OpenTelemetry Operator when you installed the Collector for Kubernetes on Red Hat OpenShift, you may see the following error when you deploy the Collector for Kubernetes using Helm:
Invalid value: 65532: must be in the ranges: [1000940000, 1000949999]
This error appears when the user ID (UID) for the service account is not in the acceptable range. To allow a service account to use any UID when you deploy the Collector for Kubernetes using Helm, run the following command:
oc adm policy add-scc-to-user anyuid -z <service_account_name>