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

Support --dump-config option #12331

Open
soupdiver opened this issue Nov 8, 2024 · 1 comment
Open

Support --dump-config option #12331

soupdiver opened this issue Nov 8, 2024 · 1 comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@soupdiver
Copy link

It would be nice to support a flag like --dump-config that dump the final config on startup. Even/Especially if it's invalid.

I know there is --v=3 but that also prints out a whole lot of other things. I was mainly interested in the config for debugging purpose.

I raised in issue here:
#12330

Some context:
I did maintenance on a cluster with a bunch of ingresses and apps and it's not entirely clear where all the ingrresses come from but they are there. One of them is affected by #11866 and it was tedious to find out from which ingress the error came.
I used --v=3 but that dump not valid json I could use. It just looks like almost json. I also went into the container to get the config but no luck either. The startup process is pretty integrated from what I saw in the code.
A tmp config is written and checked and if invalid startup aborts and the file is deleted. Without touching the code I could not find an easy way to just the config file.

I think the dump I had to scroll through was 2MB of unformated text.

@soupdiver soupdiver added the kind/feature Categorizes issue or PR as related to a new feature. label Nov 8, 2024
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Nov 8, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
Development

No branches or pull requests

2 participants