bf069b2311
This reverts commit 178aa271a4
.
Change-Id: I38a52d866527dfff2689b618e055f439bc248c13
72 lines
3.0 KiB
YAML
72 lines
3.0 KiB
YAML
{{/*
|
|
Copyright 2017 The Openstack-Helm Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/}}
|
|
|
|
{{- if .Values.manifests.configmap_etc }}
|
|
{{- $envAll := . }}
|
|
|
|
{{- if empty .Values.conf.cni_network_config.mtu -}}
|
|
{{/*
|
|
#NOTE(portdirect): to err on the side of caution we subtract 20 from the physical
|
|
# MTU to account for IPIP overhead unless explicty turned off.
|
|
*/}}
|
|
{{- if eq .Values.conf.node.CALICO_IPV4POOL_IPIP "off" -}}
|
|
{{- $_ := set .Values.conf.cni_network_config "mtu" .Values.networking.mtu -}}
|
|
{{- else -}}
|
|
{{- $_ := set .Values.conf.cni_network_config "mtu" (sub .Values.networking.mtu 20) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: calico-etc
|
|
data:
|
|
|
|
# we overlay templates found natively in the calico-node container so that we may override
|
|
# bgp configuration
|
|
|
|
bird6.cfg.mesh.template: |
|
|
{{ tuple "etc/bird/_bird6.cfg.mesh.template.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
|
bird6.cfg.no-mesh.template: |
|
|
{{ tuple "etc/bird/_bird6.cfg.no-mesh.template.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
|
bird6_ipam.cfg.template: |
|
|
{{ tuple "etc/bird/_bird6_ipam.cfg.template.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
|
bird_aggr.cfg.template: |
|
|
{{ tuple "etc/bird/_bird_aggr.cfg.template.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
|
bird.cfg.mesh.template: |
|
|
{{ tuple "etc/bird/_bird.cfg.mesh.template.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
|
bird.cfg.no-mesh.template: |
|
|
{{ tuple "etc/bird/_bird.cfg.no-mesh.template.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
|
bird_ipam.cfg.template: |
|
|
{{ tuple "etc/bird/_bird_ipam.cfg.template.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
|
custom_filters6.cfg.template: |
|
|
{{ tuple "etc/bird/_custom_filters6.cfg.template.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
|
custom_filters.cfg.template: |
|
|
{{ tuple "etc/bird/_custom_filters.cfg.template.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
|
tunl-ip.template: |
|
|
{{ tuple "etc/bird/_tunl-ip.template.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
|
|
|
# The location of your etcd cluster. This uses the Service clusterIP
|
|
# defined below.
|
|
etcd_endpoints: {{ tuple "etcd" "internal" "client" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}
|
|
|
|
# The CNI network configuration to install on each node.
|
|
cni_network_config: |-
|
|
{{ toJson $envAll.Values.conf.cni_network_config | indent 4 }}
|
|
|
|
{{- end }}
|