svcacct: validate min and max expiration seconds on TokenRequest#63999
svcacct: validate min and max expiration seconds on TokenRequest#63999k8s-github-robot merged 1 commit intokubernetes:masterfrom
Conversation
There was a problem hiding this comment.
Add package and func doc comments
There was a problem hiding this comment.
This should probably return a single error.
The conditions you check below are mutually exclusive anyway
There was a problem hiding this comment.
This is our validation convention https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/core/validation/validation.go
There was a problem hiding this comment.
Make these into consts ( 10 * time.Minute and divide by time.Second during check)
There was a problem hiding this comment.
that's > 100 years.
How about limiting to say 1 year?
|
/retest |
3 similar comments
|
/retest |
|
/retest |
|
/retest |
|
@mikedanese: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
| time.Sleep(63 * time.Second) | ||
|
|
||
| // backdate the token | ||
| then := time.Now().Add(-2 * time.Hour) |
|
/milestone v1.11 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, mikedanese The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/status approved-for-milestone |
|
[MILESTONENOTIFIER] Milestone Pull Request: Up-to-date for process Pull Request Labels
|
|
Automatic merge from submit-queue (batch tested with PRs 59938, 63777, 64577, 63999, 64431). If you want to cherry-pick this change to another branch, please follow the instructions here. |
stop gap #63653