Skip to content

Commit 917e751

Browse files
committed
do not handle update external vpcs
Signed-off-by: Mengxin Liu <[email protected]> (cherry picked from commit 8538697)
1 parent ca18d73 commit 917e751

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/controller/vpc.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ func (c *Controller) enqueueUpdateVpc(oldObj, newObj any) {
5151
oldVpc := oldObj.(*kubeovnv1.Vpc)
5252
newVpc := newObj.(*kubeovnv1.Vpc)
5353

54+
if newVpc.Labels[util.VpcExternalLabel] == "true" {
55+
return
56+
}
57+
5458
if !newVpc.DeletionTimestamp.IsZero() ||
5559
!slices.Equal(oldVpc.Spec.Namespaces, newVpc.Spec.Namespaces) ||
5660
!reflect.DeepEqual(oldVpc.Spec.StaticRoutes, newVpc.Spec.StaticRoutes) ||

0 commit comments

Comments
 (0)