Skip to content

Commit

Permalink
Create default vpc with 'Status.Default = true'
Browse files Browse the repository at this point in the history
  • Loading branch information
chestack committed Jul 12, 2022
1 parent d6915bd commit b2aebee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func (c *Controller) InitDefaultVpc() error {
if err != nil {
orivpc = &kubeovnv1.Vpc{}
orivpc.Name = util.DefaultVpc
orivpc.Status.Default = true
orivpc, err = c.config.KubeOvnClient.KubeovnV1().Vpcs().Create(context.Background(), orivpc, metav1.CreateOptions{})
if err != nil {
klog.Errorf("init default vpc failed: %v", err)
Expand All @@ -82,7 +83,6 @@ func (c *Controller) InitDefaultVpc() error {
vpc.Status.UdpSessionLoadBalancer = c.config.ClusterUdpSessionLoadBalancer
}
vpc.Status.Standby = true
vpc.Status.Default = true

bytes, err := vpc.Status.Bytes()
if err != nil {
Expand Down

0 comments on commit b2aebee

Please sign in to comment.