Skip to content

Commit

Permalink
Make kubectl cnp a requirement, check for edb operator namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
William McEnery committed Nov 30, 2023
1 parent 9006127 commit 30e6c32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions edb_mustgather.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [[ $? -eq 0 ]]; then
else
which kubectl &> /dev/null
if [[ $? -ne 0 ]]; then
echo "Unable to locate the command [kubectl] nor [oc] in the path. Either install or add it to the path. EXITING..."
echo "Unable to locate the command [kubectl] nor [oc] in the path. Either install or add it to your PATH. EXITING..."
exit 1
fi
KUBECTL="kubectl"
Expand All @@ -22,7 +22,7 @@ LOG_PATH=$2
if which kubectl-cnp >/dev/null; then
echo kubectl-cnp plugin found
else
echo kubectl-cnp plugin not found, please install it from here https://www.enterprisedb.com/docs/postgres_for_kubernetes/latest/kubectl-plugin
echo kubectl-cnp plugin not found, please install it and add it to your PATH, see https://www.enterprisedb.com/docs/postgres_for_kubernetes/latest/kubectl-plugin
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion generate_postmortem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ for switch in $@; do
if which kubectl-cnp >/dev/null; then
echo kubectl-cnp plugin found
else
echo -e "kubectl-cnp plugin not found, please install it from here https://www.enterprisedb.com/docs/postgres_for_kubernetes/latest/kubectl-plugin. Exiting..."
echo -e "kubectl-cnp plugin not found, please install it and add it to your PATH, see https://www.enterprisedb.com/docs/postgres_for_kubernetes/latest/kubectl-plugin. Exiting..."
exit 1
fi

Expand Down

0 comments on commit 30e6c32

Please sign in to comment.