mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #95992 from serathius/datapolicy-apis
gAdd datapolicy tags to pkg/apis
This commit is contained in:
commit
fc87c5927c
@ -55,7 +55,7 @@ type TokenReview struct {
|
||||
// TokenReviewSpec is a description of the token authentication request.
|
||||
type TokenReviewSpec struct {
|
||||
// Token is the opaque bearer token.
|
||||
Token string
|
||||
Token string `datapolicy:"token"`
|
||||
// Audiences is a list of the identifiers that the resource server presented
|
||||
// with the token identifies as. Audience-aware token authenticators will
|
||||
// verify that the token was intended for at least one of the audiences in
|
||||
@ -142,7 +142,7 @@ type TokenRequestSpec struct {
|
||||
// TokenRequestStatus is the result of a token request.
|
||||
type TokenRequestStatus struct {
|
||||
// Token is the opaque bearer token.
|
||||
Token string
|
||||
Token string `datapolicy:"token"`
|
||||
// ExpirationTimestamp is the time of expiration of the returned token.
|
||||
ExpirationTimestamp metav1.Time
|
||||
}
|
||||
|
@ -4936,7 +4936,7 @@ type Secret struct {
|
||||
// base64 encoded string, representing the arbitrary (possibly non-string)
|
||||
// data value here.
|
||||
// +optional
|
||||
Data map[string][]byte
|
||||
Data map[string][]byte `datapolicy:"password,security-key,token"`
|
||||
|
||||
// Used to facilitate programmatic handling of secret data.
|
||||
// +optional
|
||||
|
Loading…
Reference in New Issue
Block a user