kapp-controller icon indicating copy to clipboard operation
kapp-controller copied to clipboard

Could CRDAppFactory be made an interface?

Open jorgemoralespou opened this issue 1 year ago • 1 comments

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 avatar Feb 20 '24 12:02 jorgemoralespou

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 avatar Feb 23 '24 10:02 sethiyash