Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bindata/network/frr-k8s/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ data:
#
vtysh_enable=yes
zebra_options=" -A 127.0.0.1 -s 90000000 --limit-fds 100000"
bgpd_options=" -A 127.0.0.1 -p 0 --limit-fds 100000"
bgpd_options=" -A 127.0.0.1 -p {{ if .NoOverlayManagedEnabled }}179{{ else }}0{{ end }} --limit-fds 100000"
Comment thread
arghosh93 marked this conversation as resolved.
Comment thread
arghosh93 marked this conversation as resolved.
ospfd_options=" -A 127.0.0.1"
ospf6d_options=" -A ::1"
ripd_options=" -A 127.0.0.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ rules:
verbs:
- patch
- update
- apiGroups:
- apiGroups:
- frrk8s.metallb.io
resources:
- frrconfigurations
Expand All @@ -256,6 +256,17 @@ rules:
- update
- patch
{{- end}}
{{- if .NoOverlayManagedEnabled }}
- apiGroups:
- k8s.ovn.org
resources:
- routeadvertisements
verbs:
- create
- delete
- patch
- update
{{- end}}
{{- if .OVN_EVPN_ENABLE }}
- apiGroups:
- k8s.ovn.org
Expand Down
2 changes: 2 additions & 0 deletions pkg/network/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,8 @@ func renderAdditionalRoutingCapabilities(conf *operv1.NetworkSpec, manifestDir s
data := render.MakeRenderData()
data.Data["FRRK8sImage"] = os.Getenv("FRR_K8S_IMAGE")
data.Data["ReleaseVersion"] = os.Getenv("RELEASE_VERSION")
data.Data["NoOverlayManagedEnabled"] = conf.DefaultNetwork.OVNKubernetesConfig != nil &&
Comment thread
arghosh93 marked this conversation as resolved.
conf.DefaultNetwork.OVNKubernetesConfig.BGPManagedConfig.BGPTopology != ""
objs, err := render.RenderDir(filepath.Join(manifestDir, "network/frr-k8s"), &data)
if err != nil {
return nil, fmt.Errorf("failed to render frr-k8s manifests: %w", err)
Expand Down