Bug 1914406
| Summary: | Document workaround for Go operator's controller pods is forbidden error | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Rashmi Gottipati <rgottipa> |
| Component: | Documentation | Assignee: | Alex Dellapenta <adellape> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Xiaoli Tian <xtian> |
| Severity: | high | Docs Contact: | Vikram Goyal <vigoyal> |
| Priority: | unspecified | ||
| Version: | 4.7 | CC: | adellape, aos-bugs, chuo, jesusr, jfan, jiazha, jokerman |
| Target Milestone: | --- | ||
| Target Release: | 4.7.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1912640 | Environment: | |
| Last Closed: | 2021-03-01 19:58:13 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Rashmi Gottipati
2021-01-08 18:23:30 UTC
When creating Go operators using operator-sdk to run on OpenShift, the developer must replace `runAsUser: 65532` with `runAsNonRoot: true` in the `config/manager/manager.yaml` file. Because the OpenShift cluster will autoassign a random UID but it will attempt to respect the UID which was specified. Long term this sort of problem can be fixed by having a downstream openshift plugin that can handle these sorts of scaffolding issues. So in the documentation where we explain how to create a sample Go operator, we should add the above step to those instructions. This has been addressed via https://github.com/openshift/openshift-docs/pull/28372 (QE already reviewed) and will be available in 4.7 docs when released. |