Skip to content

Commit

Permalink
[zh-cn] sync self-subject-review api
Browse files Browse the repository at this point in the history
Signed-off-by: xin.li <xin.li@daocloud.io>
  • Loading branch information
my-git9 committed Aug 20, 2023
1 parent a15add8 commit 9bd0e52
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 186 deletions.
@@ -1,28 +1,28 @@
---
api_metadata:
apiVersion: "authentication.k8s.io/v1beta1"
import: "k8s.io/api/authentication/v1beta1"
apiVersion: "authentication.k8s.io/v1"
import: "k8s.io/api/authentication/v1"
kind: "SelfSubjectReview"
content_type: "api_reference"
description: "SelfSubjectReview 包含 kube-apiserver 所拥有的与发出此请求的用户有关的用户信息。"
title: "SelfSubjectReview v1beta1"
title: "SelfSubjectReview"
weight: 6
---
<!--
api_metadata:
apiVersion: "authentication.k8s.io/v1beta1"
import: "k8s.io/api/authentication/v1beta1"
apiVersion: "authentication.k8s.io/v1"
import: "k8s.io/api/authentication/v1"
kind: "SelfSubjectReview"
content_type: "api_reference"
description: "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request."
title: "SelfSubjectReview v1beta1"
title: "SelfSubjectReview"
weight: 6
auto_generated: true
-->

`apiVersion: authentication.k8s.io/v1beta1`
`apiVersion: authentication.k8s.io/v1`

`import "k8s.io/api/authentication/v1beta1"`
`import "k8s.io/api/authentication/v1"`

## SelfSubjectReview {#SelfSubjectReview}

Expand All @@ -35,7 +35,7 @@ SelfSubjectReview 包含 kube-apiserver 所拥有的与发出此请求的用户

<hr>

- **apiVersion**: authentication.k8s.io/v1beta1
- **apiVersion**: authentication.k8s.io/v1

- **kind**: SelfSubjectReview

Expand All @@ -47,7 +47,7 @@ SelfSubjectReview 包含 kube-apiserver 所拥有的与发出此请求的用户
标准的对象元数据。更多信息:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

- **status** (<a href="{{< ref "../authentication-resources/self-subject-review-v1beta1#SelfSubjectReviewStatus" >}}">SelfSubjectReviewStatus</a>)
- **status** (<a href="{{< ref "../authentication-resources/self-subject-review-v1#SelfSubjectReviewStatus" >}}">SelfSubjectReviewStatus</a>)

<!--
Status is filled in by the server with the user attributes.
Expand Down Expand Up @@ -124,12 +124,12 @@ SelfSubjectReviewStatus 由 kube-apiserver 进行填充并发送回用户。

#### HTTP 请求

POST /apis/authentication.k8s.io/v1beta1/selfsubjectreviews
POST /apis/authentication.k8s.io/v1/selfsubjectreviews

<!--
#### Parameters
- **body**: <a href="{{< ref "../authentication-resources/self-subject-review-v1beta1#SelfSubjectReview" >}}">SelfSubjectReview</a>, required
- **body**: <a href="{{< ref "../authentication-resources/self-subject-review-v1#SelfSubjectReview" >}}">SelfSubjectReview</a>, required
- **dryRun** (*in query*): string
Expand All @@ -149,7 +149,7 @@ POST /apis/authentication.k8s.io/v1beta1/selfsubjectreviews
-->
#### 参数

- **body**: <a href="{{< ref "../authentication-resources/self-subject-review-v1beta1#SelfSubjectReview" >}}">SelfSubjectReview</a>, 必需
- **body**: <a href="{{< ref "../authentication-resources/self-subject-review-v1#SelfSubjectReview" >}}">SelfSubjectReview</a>, 必需

- **dryRun** (**查询参数**): string

Expand All @@ -172,10 +172,10 @@ POST /apis/authentication.k8s.io/v1beta1/selfsubjectreviews
-->
#### 响应

200 (<a href="{{< ref "../authentication-resources/self-subject-review-v1beta1#SelfSubjectReview" >}}">SelfSubjectReview</a>): OK
200 (<a href="{{< ref "../authentication-resources/self-subject-review-v1#SelfSubjectReview" >}}">SelfSubjectReview</a>): OK

201 (<a href="{{< ref "../authentication-resources/self-subject-review-v1beta1#SelfSubjectReview" >}}">SelfSubjectReview</a>): Created
201 (<a href="{{< ref "../authentication-resources/self-subject-review-v1#SelfSubjectReview" >}}">SelfSubjectReview</a>): Created

202 (<a href="{{< ref "../authentication-resources/self-subject-review-v1beta1#SelfSubjectReview" >}}">SelfSubjectReview</a>): Accepted
202 (<a href="{{< ref "../authentication-resources/self-subject-review-v1#SelfSubjectReview" >}}">SelfSubjectReview</a>): Accepted

401: Unauthorized

This file was deleted.

0 comments on commit 9bd0e52

Please sign in to comment.