Skip to content
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

Could CRDAppFactory be made an interface? #1494

Open
jorgemoralespou opened this issue Feb 20, 2024 · 1 comment
Open

Could CRDAppFactory be made an interface? #1494

jorgemoralespou opened this issue Feb 20, 2024 · 1 comment
Assignees
Labels
carvel-accepted This issue should be considered for future work and that the triage process has been completed enhancement This issue is a feature request

Comments

@jorgemoralespou
Copy link

Describe the problem/challenge you have
When reusing/embedding kctrl dev mode into our own CLI, we want to be able to control output of the 3 different phases, fetch/template/deploy, and as such, we want to be able to provide 3 different CmdRunners to each phase.
Currently, as CRDAppFactory is a struct without an interface, we can't override behavior to provide our own here: https://github.com/carvel-dev/kapp-controller/blob/develop/pkg/app/app_factory.go#L25

Describe the solution you'd like
It'll be ideal that there be an interface so that we could replace the call in kctrl local with an alternate version that provides different runners with different loggers.

Anything else you would like to add:
Alternatively, it'll be ideal to have detailed logging happening on each phase, so that logging can be properly customised for each phase.


Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

@jorgemoralespou jorgemoralespou added carvel-triage This issue has not yet been reviewed for validity enhancement This issue is a feature request labels Feb 20, 2024
@sethiyash
Copy link
Contributor

Hello @jorgemoralespou,

Appreciate your diligence in highlighting this. Indeed, making CRDAppFactory an interface sounds like a favourable approach. Please don't hesitate to submit a pull request (PR) at your convenience. I want to assure you that we will prioritise the review promptly. Alternatively, We will prioritise and address this.

@sethiyash sethiyash added carvel-accepted This issue should be considered for future work and that the triage process has been completed and removed carvel-triage This issue has not yet been reviewed for validity labels Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
carvel-accepted This issue should be considered for future work and that the triage process has been completed enhancement This issue is a feature request
Projects
Status: In Progress
Development

No branches or pull requests

2 participants