Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
fix: removed jq dependency (#224)
Browse files Browse the repository at this point in the history
* fix: Removed jq dependency

* fix: Removed jq dependency

Signed-off-by: TannerGilbert <[email protected]>
  • Loading branch information
TannerGilbert authored Feb 8, 2022
1 parent 4e16dc1 commit 8f4a579
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion istio-configuration/configure-istio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi
echo "External IP for istio-ingressgateway is ${INGRESS_IP}, creating configmaps..."

K8S_VERSION=$(kubectl version -ojson)
K8S_VERSION_MINOR=$(echo "$K8S_VERSION" | jq -r .serverVersion.minor)
K8S_VERSION_MINOR=$(echo "$K8S_VERSION" | grep 'minor' | tail -1 | sed 's/^.*: //' | sed 's/^"\(.*\)".*/\1/')

if [[ "$K8S_VERSION_MINOR" < "19" ]]
then
Expand Down
2 changes: 1 addition & 1 deletion quickstart/expose-keptn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ SLEEP_TIME=5
print_headline "Configuring Ingress for your local installation"

K8S_VERSION=$(kubectl version -ojson)
K8S_VERSION_MINOR=$(echo "$K8S_VERSION" | jq -r .serverVersion.minor)
K8S_VERSION_MINOR=$(echo "$K8S_VERSION" | grep 'minor' | tail -1 | sed 's/^.*: //' | sed 's/^"\(.*\)".*/\1/')

if [[ "$K8S_VERSION_MINOR" < "19" ]]
then
Expand Down
2 changes: 1 addition & 1 deletion quickstart/multistage-delivery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ helm install prometheus prometheus-community/prometheus --namespace monitoring -
verify_test_step $? "Install prometheus failed"

K8S_VERSION=$(kubectl version -ojson)
K8S_VERSION_MINOR=$(echo "$K8S_VERSION" | jq -r .serverVersion.minor)
K8S_VERSION_MINOR=$(echo "$K8S_VERSION" | grep 'minor' | tail -1 | sed 's/^.*: //' | sed 's/^"\(.*\)".*/\1/')

if [[ "$K8S_VERSION_MINOR" < "19" ]]
then
Expand Down

0 comments on commit 8f4a579

Please sign in to comment.