Jq and Yq installation moved to common pre-configuration file.
NONRTRIC Kong deployment waiting timeout increased
Issue-ID: INT-170
Change-Id: Ic622bcf8b15db99a7322d27ee1210f0433dc0eea
Signed-off-by: aravind.est <aravindhan.a@est.tech>
OVERRIDEYAML=$1
-if ! command -v yq > /dev/null 2>&1; then
- ARCH=$(case $(uname -m) in x86_64) echo "amd64";; aarch64) echo "arm64";; *) uname -m;; esac)
- VERSION="v4.45.4"
- echo "yq is not installed. Installing yq..."
- wget https://github.com/mikefarah/yq/releases/download/${VERSION}/yq_linux_${ARCH} -O /usr/local/bin/yq
- chmod +x /usr/local/bin/yq
-fi
-
MODE=$2
defaultSc=$(kubectl get storageclass -o jsonpath='{.items[?(@.metadata.annotations.storageclass\.kubernetes\.io/is-default-class=="true")].metadata.name}')
fi
# Wait for the Kong deployment to be ready
-kubectl wait --for=condition=available deployment/oran-nonrtric-kong -n nonrtric
\ No newline at end of file
+echo "Waiting for the Kong deployment to be ready..."
+kubectl wait --for=condition=available deployment/oran-nonrtric-kong -n nonrtric --timeout=15m
\ No newline at end of file
echo '### Installing ORAN SMO part ###'
kubectl create namespace smo
-if ! command -v yq > /dev/null 2>&1; then
- ARCH=$(case $(uname -m) in x86_64) echo "amd64";; aarch64) echo "arm64";; *) uname -m;; esac)
- VERSION="v4.45.4"
- echo "yq is not installed. Installing yq..."
- wget https://github.com/mikefarah/yq/releases/download/${VERSION}/yq_linux_${ARCH} -O /usr/local/bin/yq
- chmod +x /usr/local/bin/yq
-fi
-
OVERRIDEYAML=$1
MODE=$2
#
# Configure service manager with the installed services
-if ! command -v yq > /dev/null 2>&1; then
- ARCH=$(case $(uname -m) in x86_64) echo "amd64";; aarch64) echo "arm64";; *) uname -m;; esac)
- VERSION="v4.45.4"
- echo "yq is not installed. Installing yq..."
- wget https://github.com/mikefarah/yq/releases/download/${VERSION}/yq_linux_${ARCH} -O /usr/local/bin/yq
- chmod +x /usr/local/bin/yq
-fi
OVERRIDEYAML=$1
# ============LICENSE_END============================================
#
+if ! command -v yq > /dev/null 2>&1; then
+ ARCH=$(case $(uname -m) in x86_64) echo "amd64";; aarch64) echo "arm64";; *) uname -m;; esac)
+ VERSION="v4.45.4"
+ echo "yq is not installed. Installing yq..."
+ sudo wget https://github.com/mikefarah/yq/releases/download/${VERSION}/yq_linux_${ARCH} -O /usr/local/bin/yq
+ sudo chmod +x /usr/local/bin/yq
+fi
+
+if ! command -v jq > /dev/null 2>&1; then
+ echo "jq is not installed. Installing jq..."
+ sudo apt-get install jq -y
+fi
+
# OpenEBS installation
helm repo add openebs https://openebs.github.io/openebs
helm repo update