Migrate SelfSubjectRulesReview from authorization.k8s.io/v1beta1

SelfSubjectRulesReview lists the actions the current user can perform in a namespace. It is a request, not a stored object. Kubernetes 1.22 stopped serving authorization.k8s.io/v1beta1, so clients must send v1, available since 1.6.

What replaces it

Replacement
authorization.k8s.io/v1
Available since
1.6
Deprecated in
1.19
Removed in
1.22

Check a manifest against 1.22, or read the official documentation.

Before and after

Before:

apiVersion: authorization.k8s.io/v1beta1
kind: SelfSubjectRulesReview
metadata:
  name: example
spec:
  namespace: shop
# The rest of the object stays the same.

After:

apiVersion: authorization.k8s.io/v1
kind: SelfSubjectRulesReview
metadata:
  name: example
spec:
  namespace: shop
# The rest of the object stays the same.