Skip to content

Commit

Permalink
fix eni tag in controlplane ipam
Browse files Browse the repository at this point in the history
Signed-off-by: l1b0k <[email protected]>
  • Loading branch information
l1b0k committed Nov 13, 2024
1 parent b93368a commit ba7b3ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/controller/multi-ip/node/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,12 @@ func (n *ReconcileNode) createENI(ctx context.Context, node *networkv1beta1.Node
}
bo := backoff.Backoff(backoff.ENICreate)

tags := node.Spec.ENISpec.Tag
if tags == nil {
tags = map[string]string{}
}
// keep the ds behave
tags[types.NetworkInterfaceTagCreatorKey] = types.NetworkInterfaceTagCreatorValue
createOpts := &aliyunClient.CreateNetworkInterfaceOptions{
NetworkInterfaceOptions: &aliyunClient.NetworkInterfaceOptions{
VSwitchID: vsw.ID,
Expand Down

0 comments on commit ba7b3ce

Please sign in to comment.