Add DME Participant charts in ORAN_OOM
[it/dep.git] / smo-install / scripts / sub-scripts / add-oran-acm-participants.sh
1 #!/bin/bash
2 # ============LICENSE_START=======================================================
3 # Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END============================================
17 #
18
19 echo "Copying ORAN ACM Participants..."
20
21 cp -r ../../oran_oom/policy-clamp-ac-dme-ppnt ../../onap_oom/kubernetes/policy/components
22
23 if ! grep -q "policy-clamp-ac-dme-ppnt" ../../onap_oom/kubernetes/policy/values.yaml; then
24     cat <<EOF >> ../../onap_oom/kubernetes/policy/values.yaml
25 policy-clamp-ac-dme-ppnt:
26   enabled: true
27 EOF
28 fi
29
30 if ! grep -q "policy-clamp-ac-dme-ppnt" ../../onap_oom/kubernetes/policy/Chart.yaml; then
31     cat <<EOF >> ../../onap_oom/kubernetes/policy/Chart.yaml
32   - name: policy-clamp-ac-dme-ppnt
33     version: ~1.0.0
34     repository: 'file://components/policy-clamp-ac-dme-ppnt'
35     condition: policy-clamp-ac-dme-ppnt.enabled
36 EOF
37 fi
38
39 echo "ORAN ACM Participants copied and configured for build."