Skip to content

Commit

Permalink
Kube Terminal: FIx warning on launch (#4667)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmac authored Oct 13, 2020
1 parent 96b0c8d commit 687ec2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/common-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function buildAndPublishImage {
DOCKER_FILE=${2}
FOLDER=${3}
TARGET=${4:-none}
EXTRA_BUILD_ARGS=${5}
EXTRA_BUILD_ARGS=${5:-}

if [ ! -d "${FOLDER}" ]; then
echo "Project ${FOLDER} hasn't been checked out";
Expand Down
8 changes: 7 additions & 1 deletion deploy/containers/kube-terminal/kubeconsole.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ fi

export PATH=/stratos:$PATH

export KUBECONFIG=${HOME}/.stratos/kubeconfig
# Need file permissions to be 500 on Kube Config
# Copy it to the default location ~/.kube/config and change them
export KUBECONFIG=${HOME}/.kube/config
mkdir -p ${HOME}/.kube
cp ${HOME}/.stratos/kubeconfig ${HOME}/.kube/config
chmod 500 ${KUBECONFIG}

export PS1="\033[92mstratos>\033[0m"
alias k=kubectl

Expand Down

0 comments on commit 687ec2f

Please sign in to comment.