mirror of
https://github.com/wahyd4/kubectl.git
synced 2026-08-09 05:06:58 +10:00
10 lines
239 B
Bash
Executable File
10 lines
239 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# Extract the base64 encoded config data and write this to the KUBECONFIG
|
|
echo "$KUBE_CONFIG_DATA" | base64 --decode > /tmp/config
|
|
export KUBECONFIG=/tmp/config
|
|
|
|
sh -c "kubectl${KUBECTL_VERSION:+.${KUBECTL_VERSION}} $*"
|