Skip to content

Commit 234ef05

Browse files
committed
add prerelease API lifecycle tags for authn/authz APIs
1 parent 70c18e4 commit 234ef05

File tree

8 files changed

+194
-0
lines changed

8 files changed

+194
-0
lines changed

staging/src/k8s.io/api/authentication/v1beta1/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ go_library(
1414
"types.go",
1515
"types_swagger_doc_generated.go",
1616
"zz_generated.deepcopy.go",
17+
"zz_generated.prerelease-lifecycle.go",
1718
],
1819
importmap = "k8s.io/kubernetes/vendor/k8s.io/api/authentication/v1beta1",
1920
importpath = "k8s.io/api/authentication/v1beta1",

staging/src/k8s.io/api/authentication/v1beta1/doc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ limitations under the License.
1818
// +k8s:protobuf-gen=package
1919
// +groupName=authentication.k8s.io
2020
// +k8s:openapi-gen=true
21+
// +k8s:prerelease-lifecycle-gen=true
2122

2223
package v1beta1 // import "k8s.io/api/authentication/v1beta1"

staging/src/k8s.io/api/authentication/v1beta1/types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ import (
2626
// +genclient:nonNamespaced
2727
// +genclient:onlyVerbs=create
2828
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
29+
// +k8s:prerelease-lifecycle-gen:introduced=1.4
30+
// +k8s:prerelease-lifecycle-gen:deprecated=1.19
31+
// +k8s:prerelease-lifecycle-gen:removed=1.22
32+
// +k8s:prerelease-lifecycle-gen:replacement=authentication.k8s.io,v1,TokenReview
2933

3034
// TokenReview attempts to authenticate a token to a known user.
3135
// Note: TokenReview requests may be cached by the webhook token authenticator

staging/src/k8s.io/api/authentication/v1beta1/zz_generated.prerelease-lifecycle.go

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/api/authorization/v1beta1/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ go_library(
1414
"types.go",
1515
"types_swagger_doc_generated.go",
1616
"zz_generated.deepcopy.go",
17+
"zz_generated.prerelease-lifecycle.go",
1718
],
1819
importmap = "k8s.io/kubernetes/vendor/k8s.io/api/authorization/v1beta1",
1920
importpath = "k8s.io/api/authorization/v1beta1",

staging/src/k8s.io/api/authorization/v1beta1/doc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
// +k8s:deepcopy-gen=package
1818
// +k8s:protobuf-gen=package
1919
// +k8s:openapi-gen=true
20+
// +k8s:prerelease-lifecycle-gen=true
2021

2122
// +groupName=authorization.k8s.io
2223

staging/src/k8s.io/api/authorization/v1beta1/types.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ import (
2626
// +genclient:nonNamespaced
2727
// +genclient:onlyVerbs=create
2828
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
29+
// +k8s:prerelease-lifecycle-gen:introduced=1.2
30+
// +k8s:prerelease-lifecycle-gen:deprecated=1.19
31+
// +k8s:prerelease-lifecycle-gen:removed=1.22
32+
// +k8s:prerelease-lifecycle-gen:replacement=authorization.k8s.io,v1,SubjectAccessReview
2933

3034
// SubjectAccessReview checks whether or not a user or group can perform an action.
3135
type SubjectAccessReview struct {
@@ -45,6 +49,10 @@ type SubjectAccessReview struct {
4549
// +genclient:nonNamespaced
4650
// +genclient:onlyVerbs=create
4751
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
52+
// +k8s:prerelease-lifecycle-gen:introduced=1.2
53+
// +k8s:prerelease-lifecycle-gen:deprecated=1.19
54+
// +k8s:prerelease-lifecycle-gen:removed=1.22
55+
// +k8s:prerelease-lifecycle-gen:replacement=authorization.k8s.io,v1,SelfSubjectAccessReview
4856

4957
// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a
5058
// spec.namespace means "in all namespaces". Self is a special case, because users should always be able
@@ -65,6 +73,10 @@ type SelfSubjectAccessReview struct {
6573
// +genclient
6674
// +genclient:onlyVerbs=create
6775
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
76+
// +k8s:prerelease-lifecycle-gen:introduced=1.2
77+
// +k8s:prerelease-lifecycle-gen:deprecated=1.19
78+
// +k8s:prerelease-lifecycle-gen:removed=1.22
79+
// +k8s:prerelease-lifecycle-gen:replacement=authorization.k8s.io,v1,LocalSubjectAccessReview
6880

6981
// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace.
7082
// Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions
@@ -191,6 +203,10 @@ type SubjectAccessReviewStatus struct {
191203
// +genclient:nonNamespaced
192204
// +genclient:onlyVerbs=create
193205
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
206+
// +k8s:prerelease-lifecycle-gen:introduced=1.8
207+
// +k8s:prerelease-lifecycle-gen:deprecated=1.19
208+
// +k8s:prerelease-lifecycle-gen:removed=1.22
209+
// +k8s:prerelease-lifecycle-gen:replacement=authorization.k8s.io,v1,SelfSubjectRulesReview
194210

195211
// SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace.
196212
// The returned list of actions may be incomplete depending on the server's authorization mode,

staging/src/k8s.io/api/authorization/v1beta1/zz_generated.prerelease-lifecycle.go

Lines changed: 121 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)