-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixing maintenance time #291
Conversation
func validateFQDNs(fqdns []string) error { | ||
for _, fqdn := range fqdns { | ||
if !valid.IsDNSName(fqdn) { | ||
return fmt.Errorf("FQDN %s is not a valid DNS name", fqdn) | ||
} | ||
} | ||
return nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a cleanup of unused function
if comp.Spec.Parameters.Service.UseExternalPostgreSQL { | ||
svc.Log.Info("Adding postgresql instance") | ||
err = common.NewPostgreSQLDependencyBuilder(svc, comp). | ||
AddParameters(comp.Spec.Parameters.Service.PostgreSQLParameters). | ||
SetCustomMaintenanceSchedule(comp.Spec.Parameters.Maintenance.TimeOfDay.AddTime(20 * time.Minute)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with this line we defaulted maintenance time to "00:20:00" for all instances :D
fd90976
to
610b30f
Compare
610b30f
to
10ca29d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Checklist
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelog