update ceph-common to 10.2.11-0ubuntu0.16.04.2
[yaml_builds.git] / site_type / sriov / templates / software / charts / kubernetes / container-networking / calico.j2
1 ---
2 ##############################################################################
3 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.        #
4 #                                                                            #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
6 # not use this file except in compliance with the License.                   #
7 #                                                                            #
8 # You may obtain a copy of the License at                                    #
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, WITHOUT  #
13 # 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 ##############################################################################
17
18 schema: armada/Chart/v1
19 metadata:
20   schema: metadata/Document/v1
21   replacement: true
22   name: kubernetes-calico
23   layeringDefinition:
24     abstract: false
25     layer: site
26     parentSelector:
27       name: kubernetes-calico-global
28     actions:
29       - method: merge
30         path: .
31   storagePolicy: cleartext
32 data:
33   values:
34     networking:
35       settings:
36 {% if ('peers' in yaml.networks.ksn and yaml.networks.ksn.peers is not none and yaml.networks.ksn.peers is iterable ) %}
37         mesh: "off"
38 {% else %}
39         mesh: "on"
40 {% endif %}
41         ippool:
42           ipip:
43             enabled: "false"
44             mode: "cross-subnet"
45       bgp:
46         asnumber: {{yaml.networks.ksn.local_asnumber}}
47         ipv4:
48           additional_cidrs:
49 {% for add_cidr in yaml.networks.ksn.additional_cidrs %}
50             - {{add_cidr}}
51 {% endfor %}
52 {% if ('peers' in yaml.networks.ksn and yaml.networks.ksn.peers is not none and yaml.networks.ksn.peers is iterable ) %}
53           peers:
54 {% for peer in yaml.networks.ksn.peers %}
55             - apiVersion: v1
56               kind: bgpPeer
57               metadata:
58                 peerIP: {{peer.ip}}
59                 scope: {{peer.scope}}
60               spec:
61                 asnumber: {{peer.asnumber}}
62 {% endfor %}
63 {% endif %}
64 ...