Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions internal/controller/linodevpc_controller_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ func reconcileVPC(ctx context.Context, vpcScope *scope.VPCScope, logger logr.Log
ID: vpcScope.LinodeVPC.Spec.VPCID,
Tags: nil,
}
// If VPCID is not set, we should use the label to filter
if vpcScope.LinodeVPC.Spec.VPCID == nil {
listFilter.Label = vpcScope.LinodeVPC.Name
}
filter, err := listFilter.String()
if err != nil {
return err
Expand Down
Loading