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 @@ -131,19 +131,15 @@ func (c *Controller) handleDelVpcNatGw(key string) error {
131
131
132
132
func isVpcNatGwChanged (gw * kubeovnv1.VpcNatGateway ) bool {
133
133
if ! slices .Equal (gw .Spec .ExternalSubnets , gw .Status .ExternalSubnets ) {
134
- gw .Status .ExternalSubnets = gw .Spec .ExternalSubnets
135
134
return true
136
135
}
137
136
if ! slices .Equal (gw .Spec .Selector , gw .Status .Selector ) {
138
- gw .Status .Selector = gw .Spec .Selector
139
137
return true
140
138
}
141
139
if ! reflect .DeepEqual (gw .Spec .Tolerations , gw .Status .Tolerations ) {
142
- gw .Status .Tolerations = gw .Spec .Tolerations
143
140
return true
144
141
}
145
142
if ! reflect .DeepEqual (gw .Spec .Affinity , gw .Status .Affinity ) {
146
- gw .Status .Affinity = gw .Spec .Affinity
147
143
return true
148
144
}
149
145
return false
You can’t perform that action at this time.
0 commit comments