2 ##############################################################################
3 # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may #
6 # not use this file except in compliance with the License. #
8 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
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 schema: armada/Chart/v1
19 schema: metadata/Document/v1
20 name: kubernetes-calico-site
25 name: kubernetes-calico-global
29 storagePolicy: cleartext
35 {% if ('peers' in yaml.networks.ksn and yaml.networks.ksn.peers is not none and yaml.networks.ksn.peers is iterable ) %}
42 asnumber: {{yaml.networks.ksn.local_asnumber}}
45 {% for add_cidr in yaml.networks.ksn.additional_cidrs %}
48 {% if ('peers' in yaml.networks.ksn and yaml.networks.ksn.peers is not none and yaml.networks.ksn.peers is iterable ) %}
50 {% for peer in yaml.networks.ksn.peers %}
51 - apiVersion: projectcalico.org/v3
54 name: peer-{{loop.index-1}}
57 asnumber: {{peer.asnumber}}