Skip to content

Commit 8dad496

Browse files
nullckpst
authored andcommitted
enabling macos to exec kubectl_apply
1 parent f7d63ca commit 8dad496

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

common/cluster_services/kubectl_apply.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
set -e
44

5-
echo "${KUBECONFIG_DATA}" | base64 -d > $KUBECONFIG
5+
if [ "$(uname -s)" == "Darwin" ]; then
6+
echo "${KUBECONFIG_DATA}" | base64 -D > $KUBECONFIG
7+
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
8+
echo "${KUBECONFIG_DATA}" | base64 -d > $KUBECONFIG
9+
fi
610

711
if [ -s $1 ]
812
then

0 commit comments

Comments
 (0)