Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete documentation for selector operator options #418

Open
philippebi opened this issue Oct 17, 2024 · 0 comments
Open

Incomplete documentation for selector operator options #418

philippebi opened this issue Oct 17, 2024 · 0 comments

Comments

@philippebi
Copy link

I have noticed that the documentation seems to be outdated, at least in these 2 links:

machineinventoryselectortemplate-reference
machineregistration-reference

Operator Description
in The key matches one of the provided values
notIn The key does not match any of the provided values
gt The key is greater than a single provided value
lt The key is lesser than a single provided value

While in the code:

vendor/k8s.io/apimachinery/pkg/selection/operator.go:type Operator string
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   DoesNotExist Operator = "!"
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   Equals       Operator = "="
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   DoubleEquals Operator = "=="
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   In           Operator = "in"
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   NotEquals    Operator = "!="
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   NotIn        Operator = "notin"
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   Exists       Operator = "exists"
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   GreaterThan  Operator = "gt"
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   LessThan     Operator = "lt"
@philippebi philippebi changed the title Complete doc with all the possible selector operator options Incomplete documentation for selector operator options Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🗳️ To Do
Development

No branches or pull requests

1 participant