-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor the AuthStatus Logic in Eventing OIDC Feature Track to reduce repetitive code #7377
Comments
Thanks for creating it @Leo6Leo. As this could be a |
/good-first-issue |
@Leo6Leo: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions 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/test-infra repository. |
/assign |
Hey @xiangpingjiang, Thank you for your interest in this issue! Just a heads-up: it's currently in the draft phase, as indicated by the project status. Once we've triaged and accepted it, the status will shift to "Ready". At that point, you're good to dive in and begin your work! Thanks again for your contribution and patience! |
@Leo6Leo thanks for adjusting the description. I think this is ready to be worked then. I'll move it to ready status then |
Hey @xiangpingjiang , are there anything that I could help with your ticket? |
Hello @Leo6Leo |
Hey @xiangpingjiang, |
hello @creydr |
Hey @xiangpingjiang, So maybe something like the following?
and in the reconcilers pass the status, as this complies with your interface:
|
@creydr |
Overview: Refactor the
AuthStatus
Logic in Eventing OIDC Feature Track to reduce repetitive codeBackground:
The Eventing OIDC feature track introduces the
AuthStatus
with the aim to reflect the generated service account name within the resource status.Current Behavior of a reconciler:
Based on the feature flag status:
.status.auth.serviceAccountName
.Problem:
There's evident code duplication across different reconcilers, implying redundancy:
eventing/pkg/reconciler/broker/trigger/trigger.go
Lines 147 to 161 in f9314d8
eventing/pkg/reconciler/apiserversource/apiserversource.go
Lines 103 to 117 in f9314d8
Proposal:
For maintainability and DRY (Don't Repeat Yourself) principles, it's suggested that this logic should be refactored into a common utility or module. By doing so, reconcilers, especially those under the Eventing Sender Identity Project, would be able to leverage this shared functionality.
Additional Notes & Reference
Originally posted by @creydr in #7344 (comment)
/good-first-issue
The text was updated successfully, but these errors were encountered: