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

Flow configured envs from client to kernel pod #1164

Merged
merged 5 commits into from
Oct 14, 2022

Conversation

kevin-bates
Copy link
Member

While looking into #1160, it became apparent that the flow of env variables from the client to the kernel pods is not working for KubernetesProcessProxy. Only a fixed set of KERNEL_-prefixed variables were transferred to the pod, along with system-defined values for the kernel launcher parameters. This pull request ensures that envs configured to flow to the kernel pod do flow.

Previously, because k8s relies on its own envs, we unconditionally included all EG-configured envs as well, even though those also never found their way into the kernel pod. This PR only copies EG envs prefixed with KUBECONFIG or KUBERNETES_SERVICE rather than the entire EG environment.

@kevin-bates kevin-bates added this to the v3.0 milestone Sep 27, 2022
@kevin-bates
Copy link
Member Author

@lresende, @rahul26goyal - could I please get a review from either of you?

@blair-anson - if you'd like to provide a review (or anyone else) - that would be much appreciated!

Thank you.

Copy link
Collaborator

@kiersten-stokes kiersten-stokes left a comment

Choose a reason for hiding this comment

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

This LGTM! Confirmed that envs prefixed with KUBECONFIG or KUBERNETES_SERVICE are flowed to the pod (and others are not, unless specified separately in the YAML) by running some notebooks that print out assigned env values. Overwrite of relevant YAML env values with current env values is also working as expected.

@kevin-bates
Copy link
Member Author

Going ahead with the merge - thank you for your review @kiersten-stokes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug gateway-provisioners-ported Has been ported to gateway-provisioners kubernetes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants