pkg/config: force api.servingCertificate.renewBeforeSeconds to be positive

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Ryan Richard
2020-08-20 18:21:48 -04:00
committed by Andrew Keesler
parent 88f3b41e71
commit d0a9d8df33
5 changed files with 32 additions and 2 deletions
+2 -2
View File
@@ -154,7 +154,7 @@ func TestAPIServingCertificateAutoCreationAndRotation(t *testing.T) {
func createExpiredCertificate() ([]byte, error) {
return testutil.CreateCertificate(
time.Now().Add(-24*time.Hour),
time.Now().Add(-time.Hour),
time.Now().Add(-24*time.Hour), // notBefore
time.Now().Add(-time.Hour), // notAfter
)
}