Update installation scripts
Added env variables to configure the ACM components externally.
Patch Kserve incase of the faiure on several components during installation.
Temporary fix on ACM removed.
Issue-ID: NONRTRIC-957
Signed-off-by: aravind.est <aravindhan.a@est.tech>
Change-Id: If02f0272b0b6f1e93b0d778687cee6e122fcf71c
diff --git a/scripts/install/patch-kserve.sh b/scripts/install/patch-kserve.sh
new file mode 100755
index 0000000..24af448
--- /dev/null
+++ b/scripts/install/patch-kserve.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+# ============LICENSE_START===============================================
+# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
+# ========================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=================================================
+#
+
+echo "######### Patching Kserve #########"
+kubectl apply -f https://github.com/kserve/kserve/releases/download/v0.10.0/kserve.yaml
+kubectl delete po -l control-plane=kserve-controller-manager -n kserve
+kubectl patch configmap/inferenceservice-config -n kserve --type=strategic -p '{"data": {"deploy": "{\"defaultDeploymentMode\": \"RawDeployment\"}"}}'
+echo "Kserve patching completed."