Skip to content

Add CountDistinct to check the unique values on labels on a node (e.g. topology labels) #2080

Description

@Blokje5

Describe the rationale for the suggested feature.

Right now there is no way to check unique values on nodes. Specifically in context of topology.kubernetes.io/zone labels this is a pain. E.g. for a set of nodes I am interested in determining if they span at least 3 availability zones (for HA purposes). That is a check that is hard to express currently.

Describe the feature

It is a straightforward change adding a new function to the node analyzers.

See: #2079

Describe alternatives you've considered

Alternatives include e.g. JSON analyzers, but this is a pay. The above allows for succinct expression of e.g. topology constraints.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions