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

feat(kuma-cp) sidecar env vars override #1562

Merged
merged 3 commits into from
Feb 17, 2021
Merged

feat(kuma-cp) sidecar env vars override #1562

merged 3 commits into from
Feb 17, 2021

Conversation

jakubdyszkiewicz
Copy link
Contributor

This PR introduces a way to configure any setting in Kuma DP sidecar.

In case of Universal, a user is responsible for starting Kuma DP in their environment so they can customize cli args and env vars.

In case of Kubernetes, Kuma Injector is injecting sidecar so it's harder to customize setting of sidecar itself. With this PR there are two ways to do it

  1. Global way that applies to all sidecars
    There is a new setting called "KUMA_RUNTIME_KUBERNETES_INJECTOR_SIDECAR_CONTAINER_ENV_VARS" that you can provide list of ENV_VARS that will be applied on all sidecars

  2. Override setting of one sidecar
    There is a new annotation called kuma.io/sidecar-env-vars that can override setting for individual sidecar.

Documentation

  • TODO

Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
@jakubdyszkiewicz jakubdyszkiewicz requested a review from a team as a code owner February 15, 2021 11:37
Copy link
Contributor

@bartsmykla bartsmykla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few nits, except these lgtm

jakubdyszkiewicz and others added 2 commits February 15, 2021 13:03
Co-authored-by: Bart Smykla <bartek@smykla.com>
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
@jakubdyszkiewicz jakubdyszkiewicz merged commit d6ac4b4 into master Feb 17, 2021
@jakubdyszkiewicz jakubdyszkiewicz deleted the env-vars branch February 17, 2021 16:35
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

Successfully merging this pull request may close these issues.

4 participants