Skip to content

Commit 27e7c58

Browse files
authored
feat: add SelfSubjectReview resource (#2389)
1 parent c3b7744 commit 27e7c58

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

ocp_resources/resource.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ class ApiGroup:
317317
APIREGISTRATION_K8S_IO: str = "apiregistration.k8s.io"
318318
APP_KUBERNETES_IO: str = "app.kubernetes.io"
319319
APPS: str = "apps"
320+
AUTHENTICATION_K8S_IO: str = "authentication.k8s.io"
320321
BATCH: str = "batch"
321322
BITNAMI_COM: str = "bitnami.com"
322323
CACHING_INTERNAL_KNATIVE_DEV: str = "caching.internal.knative.dev"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated using https://github.com/RedHatQE/openshift-python-wrapper/blob/main/scripts/resource/README.md
2+
3+
from __future__ import annotations
4+
5+
from typing import Any
6+
from ocp_resources.resource import Resource
7+
8+
9+
class SelfSubjectReview(Resource):
10+
"""
11+
SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.
12+
"""
13+
14+
api_group: str = Resource.ApiGroup.AUTHENTICATION_K8S_IO
15+
16+
def __init__(
17+
self,
18+
**kwargs: Any,
19+
) -> None:
20+
super().__init__(**kwargs)
21+
22+
# End of generated code

0 commit comments

Comments
 (0)