-
Notifications
You must be signed in to change notification settings - Fork 209
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
[nr-k8s-otel-collector] - exposing pod EVs to configuration in values file #1489
[nr-k8s-otel-collector] - exposing pod EVs to configuration in values file #1489
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 your PR! Would you please create tests for this new functionality? You can see examples of other tests in tests
folder. Thank you!
I am happy to. I have not used the helm unit testing framework before, but is it safe to say you are using the 'helm-unittest' plugin found here 'https://github.com/helm-unittest/helm-unittest?tab=readme-ov-file'? I was attempting to run the plugin locally against the tests you already have defined and it appears to fail because it is unable to pull / access your New Relic common library.
Is there a way to get around this when running the unittesting framework locally? Or would you just copy the contents of the common library and dump it in the local testing directory? |
Thank you! Yes, you have the right link. The common library is publicly accessible. By chance have you run |
Done. I have made the necessary whitespace changes and created additional testing files for the new functionality. Here is a screenshot of a testing run that passed all tests, including the new ones 'envVar' and 'envVarFrom'. Please let me know if you have any other concerns. |
@dbudziwojskiNR Any update on this? |
Thanks for the tests! Looking into this shortly. |
@GHKhuddle1 Thank you for your contribution! |
Is this a new chart
No. This is a modification to 'nr-otel-for-k8s', which is currently maintained by @csongnr and @dbudziwojskiNR
What this PR does / why we need it:
This PR exposes the option to add additional pod EVs to the deployment and daemonset running on kubernetes. I ran into a use case where I needed to be able to customize the 'nr-otel-for-k8s' service with a custom collector config, but once I did so I was unable to securely pass values to that config. In order to securely pass values to a custom config, having access from the values file to provide additional EVs is helpful.
Checklist
[mychartname]
)