Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: configure routes via pod annotation #2307

Merged
merged 5 commits into from
Feb 10, 2023

Conversation

zhangzujian
Copy link
Member

What type of this PR

  • Features

Which issue(s) this PR fixes:

Fixes #2275

@zhangzujian zhangzujian added the feature New network feature label Feb 7, 2023
@@ -248,15 +260,16 @@
mtu = csh.Config.MTU
}

klog.Infof("create container interface %s mac %s, ip %s, cidr %s, gw %s, custom routes %v", ifName, macAddr, ipAddr, cidr, gw, podRequest.Routes)
routes = append(podRequest.Routes, routes...)
klog.Infof("create container interface %s mac %s, ip %s, cidr %s, gw %s, custom routes %v", ifName, macAddr, ipAddr, cidr, gw, routes)

Check failure

Code scanning / CodeQL

Log entries created from user input

This log entry depends on a [user-provided value](1).
var dst *net.IPNet
if r.Destination != "" {
if _, dst, err = net.ParseCIDR(r.Destination); err != nil {
klog.Errorf("invalid route destination %s: %v", r.Destination, err)

Check failure

Code scanning / CodeQL

Log entries created from user input

This log entry depends on a [user-provided value](1).
@zhangzujian zhangzujian force-pushed the feat/routes branch 2 times, most recently from 1e82fbe to 056e27b Compare February 8, 2023 04:26
@zhangzujian zhangzujian marked this pull request as ready for review February 8, 2023 06:23
@oilbeater
Copy link
Collaborator

Need update the docs

@zhangzujian zhangzujian merged commit 83685b5 into kubeovn:master Feb 10, 2023
@zhangzujian zhangzujian deleted the feat/routes branch February 10, 2023 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New network feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support custom routes via annotation
2 participants