-
Notifications
You must be signed in to change notification settings - Fork 172
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
added envvar for tls #679
added envvar for tls #679
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for submitting this! I think if we update the unit test I mentioned it should be good to go.
// TLSCACertFile is the AGENT_INJECT_TLS_CA_CERT_FILE environment variable. | ||
TLSCACertFile string `envconfig:"tls_ca_cert_file"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll probably want to add a test case for AGENT_INJECT_TLS_CA_CERT_FILE in TestCommandEnvs() as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, added test case, easy to add!
Co-authored-by: Theron Voran <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! We'll get this into the next release.
I needed to add a ca-cert that matched a given cert and key. Here is the code i added that provides cli arg and envvar arg... first time using golang, be gentle!