Skip to content

encode config file locaiton make flexible #50

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

Open
cliff7100 opened this issue Apr 15, 2025 · 3 comments
Open

encode config file locaiton make flexible #50

cliff7100 opened this issue Apr 15, 2025 · 3 comments

Comments

@cliff7100
Copy link

when encode, can the config.json file be flexible and not mandated to be located at the fixed location echtvar/config.json? if there is an env var to control the file location and file name, that will make the code must flexible.

Thanks.

@brentp
Copy link
Owner

brentp commented Apr 15, 2025

hi, can you show an example of the command line you are running with a custom location and the output that shows it's now working? you should be able to specify any path for the config file.

@cliff7100
Copy link
Author

Thank you.

I am actually running Talos which uses echtvar to do annotation. Talos did have ECHTVAR_CONFIG env var set up in the Dockerfile, and container has it in the env vars (verified). But echtvar command ignore the env var and insist to use echtvar/config.json which did not exist.

@brentp
Copy link
Owner

brentp commented Apr 16, 2025

echtvar accepts a command line argument which is the path to the config, so this must be a talos problem or something else upstream of echtvar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants