Skip to content

Commit

Permalink
fix gw label for vpc update field (#2562)
Browse files Browse the repository at this point in the history
Signed-off-by: wujixin <wujix@yealink.com>
Co-authored-by: wujixin <wujix@yealink.com>
  • Loading branch information
watermelon-brother and wujixin committed Mar 28, 2023
1 parent 642fa92 commit ed92834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/vpc_nat_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ func (c *Controller) updateCrdNatGw(key string) error {
gw.Labels[util.SubnetNameLabel] = gw.Spec.Subnet
needUpdateLabel = true
}
if gw.Labels[util.VpcNameLabel] != gw.Spec.Subnet {
if gw.Labels[util.VpcNameLabel] != gw.Spec.Vpc {
op = "replace"
gw.Labels[util.VpcNameLabel] = gw.Spec.Vpc
needUpdateLabel = true
Expand Down

0 comments on commit ed92834

Please sign in to comment.