-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verify or add a kubectl cache dir (#24)
Kubectl wants to place its discovery cache and http cache into $HOME/.kube, however the PE slurmctld container may not have provided a home dir for the user. This detects the absence of a home dir and instead creates a dir in /tmp and sets a HOME env variable for the kubectl command to follow. This can reduce the runtime of a typical kubectl command, run in the PE slurmctld pod, from 25 seconds down to 0.4 seconds. Loop forever while waiting for state changes. Signed-off-by: Dean Roehrich <[email protected]>
- Loading branch information
1 parent
725f8b7
commit 08f4ebd
Showing
2 changed files
with
191 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.