mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-04 02:21:02 +08:00
This PR introduces a new role version - `v7` - to support other Kubernetes resources such as `Deployments`, `Statefulsets`... while keeping compatibility with previous role versions. This PR adds the following validations: - `v6`, `v5`, `v4`: `kubernetes_resources` can only include `kind: pod` resources - `v7`: `kubernetes_resources` can include wildcards or other resourceces (to be introduced by #26244. It also adds a role version downgrade (v13 clients connecting to v14 auth server) where we downgrade the role's version and remove unsuported kubernetes_resources from the resource list. Part of #20811