3 # ============LICENSE_START=======================================================
4 # Copyright (C) 2022 Nordix Foundation.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
21 export host=$(minikube ip)
23 echo "Deploying applications..."
24 echo "-------------------------"
25 kubectl create -f chartmuseum.yaml
26 kubectl create -f rapps-keycloak-mgr.yaml
27 kubectl create -f rapps-istio-mgr.yaml
28 kubectl create -f rapps-helm-installer.yaml
29 kubectl create -f rapps-webhook.yaml
32 echo "Waiting for pods to start..."
33 echo "----------------------------"
34 kubectl wait deployment -n default chartmuseum-deployment --for=condition=available --timeout=90s
35 kubectl wait deployment -n default rapps-keycloak-mgr-deployment --for=condition=available --timeout=90s
36 kubectl wait deployment -n default rapps-istio-mgr-deployment --for=condition=available --timeout=90s
37 kubectl wait deployment -n default rapps-helm-installer-deployment --for=condition=available --timeout=90s
38 kubectl wait deployment -n default jwt-proxy-admission-controller-deployment --for=condition=available --timeout=90s
41 echo "Configure sidecar injection..."
42 echo "----------------------------"
43 kubectl create -f MutatingWebhookConfiguration.yaml
46 echo "Checking pod status..."
47 echo "----------------------"
48 kubectl get pods -n default