fix: readinessProbe and livenessProbe can be disabled

The enabled property of readinessProbe and livenessProbe wasn't taken into account in cronjob and worker templates which also made it impossible to disable these probes on cronjobs and workers, even if the toplevel ones were explicitly disabled. This PR fixes that by looking at the enabled property before including the probes.

Merge request reports

Loading