Skip to content

Use field selector for active leases once KEP-4358 is stable #527

@raballew

Description

@raballew

TODO Comment

// TODO: use field selector once KEP-4358 is stabilized

Location

controller/internal/controller/lease.go, line 13

Context

func MatchingActiveLeases() client.ListOption {
    // TODO: use field selector once KEP-4358 is stabilized
    // Reference: https://github.com/kubernetes/kubernetes/pull/122717
    requirement, err := labels.NewRequirement(
        string(jumpstarterdevv1alpha1.LeaseLabelEnded),
        selection.DoesNotExist,
        []string{},
    )
    utilruntime.Must(err)

Currently using label selectors as a workaround. Should switch to field selectors once KEP-4358 (kubernetes/kubernetes#122717) is stabilized.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions