Skip to content

Commit

Permalink
fix: eip qos (#2632)
Browse files Browse the repository at this point in the history
When an EIP is created, "cachedEip.Status.IP" is empty. This will cause the QoS settings to fail.
  • Loading branch information
shane965 committed Apr 11, 2023
1 parent ddf28fc commit 7e872fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/vpc_nat_gw_eip.go
Expand Up @@ -253,7 +253,7 @@ func (c *Controller) handleAddIptablesEip(key string) error {
}

if cachedEip.Spec.QoSPolicy != "" {
if err = c.addEipQoS(cachedEip, cachedEip.Status.IP); err != nil {
if err = c.addEipQoS(cachedEip, v4ip); err != nil {
klog.Errorf("failed to add qos '%s' in pod, %v", key, err)
return err
}
Expand Down

0 comments on commit 7e872fb

Please sign in to comment.