Uh oh!
There was an error while loading. Please reload this page.
🌱 Update containers/image to v5.34.1 - #1827
Conversation
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
3fe8072 to
1d6d327Compare| rmdir $(CRD_WORKING_DIR) | ||
| # Generate the remaining operator-controller manifests | ||
| $(CONTROLLER_GEN) rbac:roleName=manager-role paths="./internal/operator-controller/..." output:rbac:artifacts:config=$(KUSTOMIZE_OPCON_RBAC_DIR) | ||
| $(CONTROLLER_GEN) rbac:roleName=manager-role paths="./internal/operator-controller/controllers/..." output:rbac:artifacts:config=$(KUSTOMIZE_OPCON_RBAC_DIR) |
There was a problem hiding this comment.
The problematic dep is called in the controller :-(
I thought in extra in a utils and then do something like that
it might works
There was a problem hiding this comment.
That might just be my crazy idea I mentioned earlier
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## main #1827 +/- ##
==========================================
+ Coverage 68.39% 68.52% +0.12%
==========================================
Files 63 65 +2 Lines 5136 5138 +2 ==========================================
+ Hits 3513 3521 +8 + Misses 1392 1388 -4 + Partials 231 229 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Replacement for #1692 |
joelanford
commented
Mar 3, 2025
I think we need to be going to the controller-tools repo to get this fixed there. |
tmshort
commented
Mar 3, 2025
Problem is that it doesn't seem to be controller-tools, specifically. It works fine locally, this seems to be a problem with gpgme somehow. |
Could it be working locally because CGO_ENABLED=1? The issue is the build tags don't get passed down to controller-gen when its loading the packages (somewhere around here). I've done local test hard-coding the We need a way to configure controller-gen to pass build tags to the loader =S |
tmshort
commented
Mar 4, 2025
@perdasilva To be blunt, this PR does work, because it avoids pulling in gpgme code by isolating the RBAC directives. Admittedly, fixing controler-gen would be great, but how long would that take and when would that happen? |
| // +kubebuilder:webhook:admissionReviewVersions={v1},failurePolicy=Fail,groups=olm.operatorframework.io,mutating=true,name=inject-metadata-name.olm.operatorframework.io,path=/mutate-olm-operatorframework-io-v1-clustercatalog,resources=clustercatalogs,verbs=create;update,versions=v1,sideEffects=None,timeoutSeconds=10 | ||
| // +kubebuilder:rbac:groups=olm.operatorframework.io,resources=clustercatalogs,verbs=get;list;watch;patch;update |
There was a problem hiding this comment.
That is interesting, we fail to get the RBAC but not to generate the webhook config based on the markers?
There was a problem hiding this comment.
controller-gen also has a limitation that it cannot use multiple directories (as discovered in my earlier merging of the API directories).
So, I pulled all the RBAC into one place.
The webhook generation still looks at this one directory.
However, due to some incompatibility between controller-gen and github.com/proglottis/gpgme@v0.1.4, we need to move the kubebuilder comments so controller-gen doesn't try to access gpgme. This meant moving the kubebuilder:rbac comments into their own package, and focusing the webhook generation the just one directory. Signed-off-by: Todd Short <tshort@redhat.com>
91c16b3 to
22199fbCompareopenshift-merge-robot
commented
Mar 7, 2025
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
joelanford
commented
Apr 2, 2025
Done in #1892 |
However, due to some incompatibility between controller-gen and
github.com/proglottis/gpgme@v0.1.4, we need to move the kubebuilder
comments so controller-gen doesn't try to access gpgme.
This meant moving the kubebuilder:rbac comments into their own
package, and focusing the webhook generation the just one directory.
Description
Reviewer Checklist