-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate LastUsedAt for Token and ClusterAuthToken (#520)
- Loading branch information
1 parent
be481b7
commit 7faaa62
Showing
9 changed files
with
578 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
pkg/resources/cluster.cattle.io/v3/clusterauthtoken/ClusterAuthToken.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Validation Checks | ||
|
||
### Invalid Fields - Create | ||
|
||
When a ClusterAuthToken is created, the following checks take place: | ||
|
||
- If set, `lastUsedAt` must be a valid date time according to RFC3339 (e.g. `2023-11-29T00:00:00Z`). | ||
|
||
### Invalid Fields - Update | ||
|
||
When a ClusterAuthToken is updated, the following checks take place: | ||
|
||
- If set, `lastUsedAt` must be a valid date time according to RFC3339 (e.g. `2023-11-29T00:00:00Z`). |
Oops, something went wrong.