Description
What do you want to happen?
This is an exploratory task aimed at improving UX. In Kubebuilder, we might want to replace logrus with bubbletea.
Note that if we merge, a PR should replace logrus entirely and include changes to the create API command, where we will ask the user if they want to make a controller and API using bubble tea's interactive features:
See
$ kubebuilder init
INFO Writing kustomize manifests for you to edit...
INFO Writing scaffold for you to edit...
INFO Get controller runtime:
$ go get sigs.k8s.io/[email protected]
INFO Update dependencies:
$ go mod tidy
Next: define a resource with:
$ kubebuilder create API
$ kubebuilder create api
INFO Create Resource [y/n]
y
INFO Create Controller [y/n]
y
To evaluate we would need to see at least those steps with the lib to check if we are in the right direction. This is an exploratory task to determine how we can improve our users' UX. This change aims to evaluate and explore the feasibility and benefits of using bubble tea in bubble tea in Kubebuilder.
However, if the PR meets the acceptance criteria and is considered good (we decided that is a good approach to move forward), then this needs to ensure that moving to place the l is completed.
Tasks:
- Replace logrus:
- Remove all instances of logrus in the codebase.
- Implement bubbletea for logging and interactive user prompts. Example: Update create API Command:
- Use bubbletea to prompt users interactively about creating a controller and API during command execution.
Extra Labels
No response