License addition in all yamls
[oom.git] / kubernetes / policy / templates / policy-deployment-configmap.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 #{{ if not .Values.disablePolicyDrools }}
16 apiVersion: v1
17 kind: ConfigMap
18 metadata:
19   name: policy-dep-drools-settings-configmap
20   namespace: {{ .Values.nsPrefix }}
21 data:
22 {{ tpl (.Files.Glob "resources/config/drools/settings.xml").AsConfig . | indent 2 }}
23 #{{ end }}
24 ---
25 #{{ if not .Values.disablePolicyPdp }}
26 apiVersion: v1
27 kind: ConfigMap
28 metadata:
29   name: policy-dep-pe-configmap
30   namespace: {{ .Values.nsPrefix }}
31 data:
32 {{ tpl (.Files.Glob "resources/config/opt/policy/config/pe/*").AsConfig . | indent 2 }}
33 ---
34 apiVersion: v1
35 kind: ConfigMap
36 metadata:
37   name: policy-dep-drools-configmap
38   namespace: {{ .Values.nsPrefix }}
39 data:
40 {{ tpl (.Files.Glob "resources/config/opt/policy/config/drools/*").AsConfig . | indent 2 }}
41 #{{ end }}