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=========================================================
22 echo "Deploying applications..."
23 echo "-------------------------"
24 kubectl create -f chartmuseum.yaml
25 kubectl create -f rapps-keycloak-mgr.yaml
26 kubectl create -f rapps-istio-mgr.yaml
27 kubectl create -f rapps-helm-installer.yaml
28 kubectl create -f rapps-webhook.yaml
31 echo "Waiting for pods to start..."
32 echo "----------------------------"
33 kubectl wait deployment -n default chartmuseum-deployment --for=condition=available --timeout=90s
34 kubectl wait deployment -n default rapps-keycloak-mgr-deployment --for=condition=available --timeout=90s
35 kubectl wait deployment -n default rapps-istio-mgr-deployment --for=condition=available --timeout=90s
36 kubectl wait deployment -n default rapps-helm-installer-deployment --for=condition=available --timeout=90s
37 kubectl wait deployment -n default jwt-proxy-admission-controller-deployment --for=condition=available --timeout=90s
40 echo "Configure sidecar injection..."
41 echo "----------------------------"
42 kubectl create -f MutatingWebhookConfiguration.yaml
45 echo "Checking pod status..."
46 echo "----------------------"
47 kubectl get pods -n default