Skip to content
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

Merged
merged 1 commit into from
Jan 7, 2025
Merged

fixing maintenance time #291

merged 1 commit into from
Jan 7, 2025

Conversation

wejdross
Copy link
Member

@wejdross wejdross commented Jan 7, 2025

Summary

  • Maintenance time was defaulted to 00:20:00 for all Nextclouds which caused all background job (Nextcloud internals) to run on exactly the same time

Checklist

  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog
  • Update tests.
  • Link this PR to related issues.

@wejdross wejdross added bug Something isn't working patch labels Jan 7, 2025
@wejdross wejdross self-assigned this Jan 7, 2025
@wejdross wejdross requested review from a team, Kidswiss, TheBigLee and zugao and removed request for a team January 7, 2025 13:59
Comment on lines -439 to -445
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
Copy link
Member Author

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)).
Copy link
Member Author

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

@wejdross wejdross force-pushed the fix/maintenanceTime branch from 610b30f to 10ca29d Compare January 7, 2025 14:49
Copy link
Collaborator

@zugao zugao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wejdross wejdross merged commit ddcb939 into master Jan 7, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants