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

Load env from host into Flux exec #3608

Merged
merged 3 commits into from
Apr 21, 2021
Merged

Load env from host into Flux exec #3608

merged 3 commits into from
Apr 21, 2021

Conversation

Callisto13
Copy link
Contributor

Description

Closes #3445.
Closes #3601.

Couple of small things:

  • Previously we loaded env vars as needed one by one, but it is easy to miss things and as upstream needs change this can become tedious.
  • This commit also returns an error when the PAT token file cannot be opened, rather than simply logging.

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the userdocs directory)
  • Manually tested
  • Made sure the title of the PR is a good description that can go into the release notes
  • (Core team) Added labels for change area (e.g. area/nodegroup) and kind (e.g. kind/improvement)

BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯

  • Backfilled missing tests for code in same general area 🎉
  • Refactored something and made the world a better place 🌟

Previously we loaded env vars as needed one by one, but it is easy to
missed things and as upstream needs change this can become tedious.

This commit also returns an error when the PAT token file cannot be
opened, rather than simply logging.
@Callisto13 Callisto13 requested a review from a team April 20, 2021 15:01
@Callisto13 Callisto13 enabled auto-merge (squash) April 21, 2021 08:21
@Callisto13 Callisto13 merged commit 14f0565 into main Apr 21, 2021
@Callisto13 Callisto13 deleted the fix-flux-env branch April 21, 2021 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gitops (Flux2) doesn't work with AWS_SESSION_TOKEN Flux v2 support does not work on Windows
2 participants