Open erinaceous opened 9 months ago
Hi @erinaceous I believe it's an interesting feature and helpful debug. I think this feature needs to be rewritten on many points, and the internal interface needs too.
If we implement this feature, we need to write KEP before starting implementation.
/triage under-consideration
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
/remove-lifecycle rotten
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
Eschewed features
What would you like to have added?
As per the advice given in the original issue, this is a feature request for incorporating verbose or debug log output when running
kustomize
CLI commands:Perhaps some variation on:
kustomize --verbose build ...
kustomize --debug ...
kustomize --log-output=bases,transformations
kustomize --log-level=FATAL ...
Which would, given varying levels of implementation complexity:
--verbose
/--debug
)--log-output=bases,transformations,extension-1,extension-2,...
)--log-level=DEBUG
/--log-level=FATAL
etc), e.g. usingslog
and usingslog.Info
,slog.Warn
,slog.Debug
calls etc.A good entry-point would be
kustomize build
specifically, logging what bases/resources are being read, and then logging the transformations being applied (in order they were applied), implicitly showing the order in which they're being applied to produce the final set of kubernetes resources.Is this big enough to warrant a KEP? Honestly, I don't know enough to know if it does!
Why is this needed?
Can you accomplish the motivating task without this feature, and if so, how?
With difficulty:
What other solutions have you considered?
As an end-user, and somebody not familiar with Go, I would not really have any alternative, bar "trial and error until kustomize does what I expected it to do based on the documentation and examples I've read".
As someone who likes to tinker, if I had enough time I'd probably learn enough to step through running
kustomize build
in GDB...Anything else we should know?
I appreciate that despite this appearing a simple request, it could potentially touch a lot of this codebase, as for it to be useful to end-users and extension developers, would require retroactively adding logging calls across a lot of stuff, having identified where it would be useful..!
I also appreciate whilst writing this out as a feature request that just adequately describing the feature is actually quite a big and time-consuming thing..! I will re-visit this when I can, and perhaps others who commented on the original issue could weigh in on:
I'm not interested in owning the feature per se, but definitely happy to contribute should someone else start the PR.
Feature ownership