We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca18d73 commit 917e751Copy full SHA for 917e751
pkg/controller/vpc.go
@@ -51,6 +51,10 @@ func (c *Controller) enqueueUpdateVpc(oldObj, newObj any) {
51
oldVpc := oldObj.(*kubeovnv1.Vpc)
52
newVpc := newObj.(*kubeovnv1.Vpc)
53
54
+ if newVpc.Labels[util.VpcExternalLabel] == "true" {
55
+ return
56
+ }
57
+
58
if !newVpc.DeletionTimestamp.IsZero() ||
59
!slices.Equal(oldVpc.Spec.Namespaces, newVpc.Spec.Namespaces) ||
60
!reflect.DeepEqual(oldVpc.Spec.StaticRoutes, newVpc.Spec.StaticRoutes) ||
0 commit comments