Skip to content

Commit

Permalink
Merge pull request #4 from Dup4/feature-support-custom-image
Browse files Browse the repository at this point in the history
feat: support custom image
  • Loading branch information
mutazn authored Feb 9, 2023
2 parents abd55f2 + dfe6b9e commit 42adb82
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kubectl-enter
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ IMAGE="alpine"
SSHIMAGE="mutaz/ssh-client"
POD="connector-$(env LC_CTYPE=C tr -dc a-z0-9 < /dev/urandom | head -c 6)"
NAMESPACE=""

# Uncomment the next line if you would like to use your own image
# CUSTOM_IMAGE=PUT-YOUR-IMAGE-NAME
if [ -n "${CUSTOM_IMAGE}" ]; then
IMAGE="${CUSTOM_IMAGE}"
fi

# Check the node
kubectl get node "$NODE" >/dev/null || exit 1

Expand Down

0 comments on commit 42adb82

Please sign in to comment.