Couple of waits removed as the further scripts have the initcontainers/wait in place.
Helm repo add moved to one place so does the helm repo update.
Issue-ID: NONRTRIC-1076
Change-Id: I0739a328e06c2a36789bb1d3f0443dcf4de1e564
Signed-off-by: aravind.est <aravindhan.a@est.tech>
helm repo add oran-snapshot https://nexus3.o-ran-sc.org/repository/helm.snapshot/
helm repo add oran-release https://nexus3.o-ran-sc.org/repository/helm.release/
helm repo add strimzi https://strimzi.io/charts/
+helm repo add openebs https://openebs.github.io/openebs
+helm repo add mariadb-operator https://helm.mariadb.com/mariadb-operator
TARGET_HELM_REPO="oran-snapshot" # This should be changed to oran-release once the release charts are published
fi
echo "### Installing Strimzi Kafka Operator (From Helm repo $STRIMZI_HELM_REPO) ###"
- helm upgrade --install strimzi-kafka-operator "$STRIMZI_HELM_REPO"/strimzi-kafka-operator --namespace strimzi-system --version 0.45.0 --set watchAnyNamespace=true --create-namespace
-
- echo "Waiting for Strimzi Kafka Operator to be ready..."
- kubectl wait --for=condition=available --timeout=600s deployment/strimzi-cluster-operator -n strimzi-system
+ helm upgrade --install strimzi-kafka-operator "$STRIMZI_HELM_REPO"/strimzi-kafka-operator --namespace strimzi-system --version 0.45.0 --set watchAnyNamespace=true --create-namespace &
fi
kubectl create namespace onap
fi
if [ "$INSTALL_SERVICEMANAGER" == "true" ]; then
+ echo "Waiting for capifcore deployment"
+ kubectl wait --for=condition=Available -n nonrtric --timeout=300s deploy/capifcore
+
+ echo "Waiting for servicemanager deployment"
+ kubectl wait --for=condition=Available -n nonrtric --timeout=300s deploy/servicemanager
+
+ echo "Waiting for kong deployment"
+ kubectl wait --for=condition=Available -n nonrtric --timeout=300s deploy/oran-nonrtric-kong
# Send stderr to /dev/null to turn off chatty logging
../sub-scripts/servicemanager-preload.sh ../packages/post-configuration/servicemanager-preconfig-nonrtric.yaml 2>/dev/null
../sub-scripts/servicemanager-preload.sh ../packages/post-configuration/servicemanager-preconfig-smo.yaml 2>/dev/null
NEXUS_PROXY_DOCKER_IO_REPO="nexus3.o-ran-sc.org:10001"
# OpenEBS installation
-helm repo add openebs https://openebs.github.io/openebs
-helm repo update
-helm upgrade --install openebs --namespace openebs openebs/openebs --version 4.3.0 --create-namespace --set engines.replicated.mayastor.enabled=false --set engines.local.lvm.enabled=false --set engines.local.zfs.enabled=false --set loki.enabled=false --set alloy.enabled=false --set global.imageRegistry=$NEXUS_PROXY_DOCKER_IO_REPO --wait
+helm upgrade --install openebs --namespace openebs openebs/openebs --version 4.3.0 --create-namespace --set engines.replicated.mayastor.enabled=false --set engines.local.lvm.enabled=false --set engines.local.zfs.enabled=false --set loki.enabled=false --set alloy.enabled=false --set global.imageRegistry=$NEXUS_PROXY_DOCKER_IO_REPO &
# Create storage class for smo
kubectl apply -f ../packages/pre-configuration/smo-sc.yaml
echo "Installing MariaDB operator..."
# Mariadb operator installation
kubectl create ns mariadb-operator
- helm repo add mariadb-operator https://helm.mariadb.com/mariadb-operator
- helm repo update
- helm upgrade --install mariadb-operator-crds mariadb-operator/mariadb-operator-crds -n mariadb-operator
- helm upgrade --install mariadb-operator mariadb-operator/mariadb-operator -n mariadb-operator
- kubectl wait deployment mariadb-operator -n mariadb-operator --for=condition=available --timeout=120s
+ helm upgrade --install mariadb-operator-crds mariadb-operator/mariadb-operator-crds -n mariadb-operator &
+ helm upgrade --install mariadb-operator mariadb-operator/mariadb-operator -n mariadb-operator &
else
echo "Skipping MariaDB operator installation as per configuration."
fi
first_node_ip=$(kubectl get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="InternalIP")].address}')
servicemanager_node_port=$(kubectl get service servicemanager -n nonrtric -o jsonpath='{.spec.ports[0].nodePort}')
-echo "Waiting for capifcore deployment"
-kubectl wait --for=condition=Available -n nonrtric --timeout=300s deploy/capifcore
-
-echo "Waiting for servicemanager deployment"
-kubectl wait --for=condition=Available -n nonrtric --timeout=300s deploy/servicemanager
-
-echo "Waiting for kong deployment"
-kubectl wait --for=condition=Available -n nonrtric --timeout=300s deploy/oran-nonrtric-kong
-
publish_services_from_config
echo "Service Manager preload completed for ${yaml_file}"