Skip to content

feat: refactor request-scoped reconciler variables to new struct#2031

Draft
jgwest wants to merge 4 commits intoargoproj-labs:masterfrom
jgwest:k8s-client-wrapper-for-security-dec-2025
Draft

feat: refactor request-scoped reconciler variables to new struct#2031
jgwest wants to merge 4 commits intoargoproj-labs:masterfrom
jgwest:k8s-client-wrapper-for-security-dec-2025

Conversation

@jgwest
Copy link
Copy Markdown
Member

@jgwest jgwest commented Jan 21, 2026

What type of PR is this?
/kind enhancement

What does this PR do / why we need it:
TBD: refactor request-scoped reconciler variables to new struct

@jgwest jgwest changed the title feat: refactor request-scoepd reconciler variables to new struct feat: refactor request-scoped reconciler variables to new struct Jan 21, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jan 21, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jgwest jgwest force-pushed the k8s-client-wrapper-for-security-dec-2025 branch from ceac00c to 31a43b3 Compare January 21, 2026 05:07
Signed-off-by: Jonathan West <jgwest@gmail.com>
@jgwest jgwest force-pushed the k8s-client-wrapper-for-security-dec-2025 branch from 31a43b3 to 90360c9 Compare January 21, 2026 06:30

func (r *ReconcileArgoCD) internalReconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, *argoproj.ArgoCD, *argoproj.ArgoCDStatus, error) {

reqState := &RequestState{}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can make this as part of ReconcileArgoCD struct and we can use r.reqState in struct methods? it will reduce the lines of code by passing to below functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants