Bug 2061611
| Summary: | [upstream] The marker of KubeBuilder doesn't work if it is close to the code | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Fan Jia <jfan> |
| Component: | Operator SDK | Assignee: | Jesus M. Rodriguez <jesusr> |
| Status: | CLOSED ERRATA | QA Contact: | Fan Jia <jfan> |
| Severity: | medium | Docs Contact: | Alex Dellapenta <adellape> |
| Priority: | medium | ||
| Version: | 4.11 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Known Issue | |
| Doc Text: |
Cause:
rbac markers not parsed correctly by controller-tools
Consequence:
rbac configuration not generated from markers in code
Workaround (if any):
Add a new line after the final rbac marker to allow the marker to be parsed correctly.
Result:
After new line is added, rbac markers are parsed correctly and configuration is generated correctly.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-08-10 10:52:44 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Fan Jia
2022-03-08 02:33:22 UTC
Confirmed this happens. Looking at what the requirements are for these markers are. This is a known issue with `controller-gen`. https://github.com/kubernetes-sigs/controller-tools/issues/436 Another related issue with controller-gen https://github.com/kubernetes-sigs/controller-tools/issues/551 Added an FAQ upstream to mention this known issue. We will not be fixing this in operator-sdk. This is merged into upstream master now. Once released it can be seen in the upstream sdk FAQ document: https://master.sdk.operatorframework.io/docs/faqs/ verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5069 |