Skip to content

Commit c1ff836

Browse files
xieyankeroilbeater
authored andcommitted
fix vpcNatGw status cannot be updated (#5547)
Signed-off-by: xieyanker <[email protected]> (cherry picked from commit d30cf16)
1 parent 1094f8f commit c1ff836

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/controller/vpc_nat_gateway.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,19 +131,15 @@ func (c *Controller) handleDelVpcNatGw(key string) error {
131131

132132
func isVpcNatGwChanged(gw *kubeovnv1.VpcNatGateway) bool {
133133
if !slices.Equal(gw.Spec.ExternalSubnets, gw.Status.ExternalSubnets) {
134-
gw.Status.ExternalSubnets = gw.Spec.ExternalSubnets
135134
return true
136135
}
137136
if !slices.Equal(gw.Spec.Selector, gw.Status.Selector) {
138-
gw.Status.Selector = gw.Spec.Selector
139137
return true
140138
}
141139
if !reflect.DeepEqual(gw.Spec.Tolerations, gw.Status.Tolerations) {
142-
gw.Status.Tolerations = gw.Spec.Tolerations
143140
return true
144141
}
145142
if !reflect.DeepEqual(gw.Spec.Affinity, gw.Status.Affinity) {
146-
gw.Status.Affinity = gw.Spec.Affinity
147143
return true
148144
}
149145
return false

0 commit comments

Comments
 (0)