Skip to content

Overwriting env vars again #2579

Closed
Closed

Description

@Stasmo

Describe the bug
Basically issue 954 again

You're referencing process.env and then overwriting the values in it.

https://github.com/kubernetes-client/javascript/blob/main/src/exec_auth.ts#L99

Should copy the existing env for the auth command execution.

            const env = { ...process.env };

Activity

  1. Stasmo commented on Jul 30, 2025

    @Stasmo
    ContributorAuthor

    Looks like the original fix was merged into master instead of main, and never made it to release.

  2. cjihrig commented on Jul 30, 2025

    @cjihrig
    Contributor

    Thanks for raising this. Would you be open to sending a PR (preferably with a regression test)?

  3. cjihrig commented on Jul 30, 2025

    @cjihrig
    Contributor

    Fixed in #2580

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions