Skip to content

Commit

Permalink
Annotation network_type always is geneve
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyd1988 authored and zhangzujian committed Apr 20, 2022
1 parent 6ddba02 commit 4f0b197
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions pkg/controller/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,6 @@ func (c *Controller) handleAddPod(key string) error {
return err
}
ipStr := util.GetStringIP(v4IP, v6IP)
if subnet.Spec.Vlan != "" {
pod.Annotations[fmt.Sprintf(util.NetworkTypeTemplate, podNet.ProviderName)] = util.NetworkTypeVlan
} else {
pod.Annotations[fmt.Sprintf(util.NetworkTypeTemplate, podNet.ProviderName)] = util.NetworkTypeGeneve
}
pod.Annotations[fmt.Sprintf(util.IpAddressAnnotationTemplate, podNet.ProviderName)] = ipStr
pod.Annotations[fmt.Sprintf(util.MacAddressAnnotationTemplate, podNet.ProviderName)] = mac
pod.Annotations[fmt.Sprintf(util.CidrAnnotationTemplate, podNet.ProviderName)] = subnet.Spec.CIDRBlock
Expand Down
1 change: 0 additions & 1 deletion pkg/util/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const (
LogicalSwitchAnnotationTemplate = "%s.kubernetes.io/logical_switch"
LogicalRouterAnnotationTemplate = "%s.kubernetes.io/logical_router"
VlanIdAnnotationTemplate = "%s.kubernetes.io/vlan_id"
NetworkTypeTemplate = "%s.kubernetes.io/network_type"
IngressRateAnnotationTemplate = "%s.kubernetes.io/ingress_rate"
EgressRateAnnotationTemplate = "%s.kubernetes.io/egress_rate"
SecurityGroupAnnotationTemplate = "%s.kubernetes.io/security_groups"
Expand Down

0 comments on commit 4f0b197

Please sign in to comment.