File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -146,19 +146,15 @@ func (c *Controller) handleDelVpcNatGw(key string) error {
146
146
147
147
func isVpcNatGwChanged (gw * kubeovnv1.VpcNatGateway ) bool {
148
148
if ! reflect .DeepEqual (gw .Spec .ExternalSubnets , gw .Status .ExternalSubnets ) {
149
- gw .Status .ExternalSubnets = gw .Spec .ExternalSubnets
150
149
return true
151
150
}
152
151
if ! reflect .DeepEqual (gw .Spec .Selector , gw .Status .Selector ) {
153
- gw .Status .Selector = gw .Spec .Selector
154
152
return true
155
153
}
156
154
if ! reflect .DeepEqual (gw .Spec .Tolerations , gw .Status .Tolerations ) {
157
- gw .Status .Tolerations = gw .Spec .Tolerations
158
155
return true
159
156
}
160
157
if ! reflect .DeepEqual (gw .Spec .Affinity , gw .Status .Affinity ) {
161
- gw .Status .Affinity = gw .Spec .Affinity
162
158
return true
163
159
}
164
160
return false
You can’t perform that action at this time.
0 commit comments