Skip to content

ValidatingAdmissionPolicy page does not clearly explain the differences between has() and in for maps vs fields #41392

Open
@EraYaN

Description

@EraYaN

This is a Feature Request

What would you like to be added

Some extra language helping with the differences between has() and in for maps vs fields.

Why is this needed

> CEL provides has(), which checks if the key passed to it exists.

Seems to indicate that a map would work (key) for has(). But it apparently it doesn't (need to use in) or the fact that the a["b"] notation breaks has() as well. (Based on some comments from this issue: kubernetes/kubernetes#118230)

Comments

Split of from: #41391
About page: https://kubernetes.io/docs/reference/access-authn-authz/validating-admission-policy/

Metadata

Metadata

Assignees

Labels

help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/documentationCategorizes issue or PR as related to documentation.kind/featureCategorizes issue or PR as related to a new feature.language/enIssues or PRs related to English languageneeds-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.sig/authCategorizes an issue or PR as relevant to SIG Auth.

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions