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

[FR] Implement container internal cronjob via k8s CronJob #12

Closed
d7oc opened this issue Oct 4, 2022 · 1 comment · Fixed by #45
Closed

[FR] Implement container internal cronjob via k8s CronJob #12

d7oc opened this issue Oct 4, 2022 · 1 comment · Fixed by #45

Comments

@d7oc
Copy link
Contributor

d7oc commented Oct 4, 2022

Right now we still use the crond started in the container itself to executed jobs periodically.

This feature request is about the implementation of this mechanism via the CronJob implemented in k8s: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/

Note: We need to find a way to execute the job in the container without the triggering any updated of the oC system.

@d7oc
Copy link
Contributor Author

d7oc commented Jun 15, 2023

This FR is also required for OpenShift as the cron setup in the container fails due to a permission error:

 owncloud {"level":"error","error":"failed to render template /etc/templates/owncloud.cron.tmpl: failed to open output file '/etc/cron.d/owncloud' for writing: open /etc/cron.d/owncloud: permission denied","time":"2023-06-15T16:30:37Z"}

So

owncloud:
  crondEnabled: false

has to be set to make the container start at all on OpenShift (tested with 4.13), which will disable cron.

@xoxys xoxys linked a pull request Jun 21, 2023 that will close this issue
@d7oc d7oc closed this as completed in #45 Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant