Skip to content

Commit 49b93a9

Browse files
xieyankeroilbeater
authored andcommitted
fix vpcNatGw status cannot be updated (#5547)
Signed-off-by: xieyanker <[email protected]> Signed-off-by: Mengxin Liu <[email protected]>
1 parent 329eb95 commit 49b93a9

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
@@ -146,19 +146,15 @@ func (c *Controller) handleDelVpcNatGw(key string) error {
146146

147147
func isVpcNatGwChanged(gw *kubeovnv1.VpcNatGateway) bool {
148148
if !reflect.DeepEqual(gw.Spec.ExternalSubnets, gw.Status.ExternalSubnets) {
149-
gw.Status.ExternalSubnets = gw.Spec.ExternalSubnets
150149
return true
151150
}
152151
if !reflect.DeepEqual(gw.Spec.Selector, gw.Status.Selector) {
153-
gw.Status.Selector = gw.Spec.Selector
154152
return true
155153
}
156154
if !reflect.DeepEqual(gw.Spec.Tolerations, gw.Status.Tolerations) {
157-
gw.Status.Tolerations = gw.Spec.Tolerations
158155
return true
159156
}
160157
if !reflect.DeepEqual(gw.Spec.Affinity, gw.Status.Affinity) {
161-
gw.Status.Affinity = gw.Spec.Affinity
162158
return true
163159
}
164160
return false

0 commit comments

Comments
 (0)