Add datapolicy tags to pkg/apis

This commit is contained in:
Marek Siarkowicz 2020-10-29 18:07:32 +01:00
parent 17312ea4a9
commit 945e1e7892
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -4931,7 +4931,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