Skip to content

Commit 04765b2

Browse files
author
abhisbyk
committed
Cert renewal duration is changed to 26280h (3 yrs)
Signed-off-by: abhisbyk <[email protected]>
1 parent 8e59edb commit 04765b2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

apis/database/v1alpha1/singleinstancedatabase_webhook.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,16 +253,16 @@ func (r *SingleInstanceDatabase) ValidateCreate() error {
253253
field.Invalid(field.NewPath("spec").Child("certRenewDuration"), r.Spec.CertRenewDuration,
254254
"Please provide valid string to parse the certRenewDuration."))
255255
}
256-
maxLimit, _ := time.ParseDuration("26000h")
256+
maxLimit, _ := time.ParseDuration("26280h")
257257
minLimit, _ := time.ParseDuration("1m")
258258
if duration > maxLimit || duration < minLimit {
259259
allErrs = append(allErrs,
260260
field.Invalid(field.NewPath("spec").Child("certRenewDuration"), r.Spec.CertRenewDuration,
261-
"Please specify certRenewDuration in the range: 1m to 26000h"))
261+
"Please specify certRenewDuration in the range: 1m to 26280h"))
262262
}
263263
} else {
264264
// Setting the default value
265-
r.Spec.CertRenewDuration = "26000h"
265+
r.Spec.CertRenewDuration = "26280h"
266266
}
267267

268268
if len(allErrs) == 0 {

config/samples/sidb/singleinstancedatabase.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ spec:
4848
enableTCPS: false
4949

5050
## Certificate Renewal Duration: The time after which certificates will be renewed if TCPS connections are enabled; can be in hours(h), minutes(m) and seconds(s)
51-
## Maximum value is 26000h
52-
#certRenewDuration: 26000h
51+
## Maximum value is 26280h (3 years), Minimum value is 1m
52+
#certRenewDuration: 26280h
5353

5454
## NA if cloning from a SourceDB (cloneFrom is set)
5555
## Specify both sgaSize and pgaSize (in MB) or dont specify both

0 commit comments

Comments
 (0)