Skip to content

Commit

Permalink
feat(dailyclean): default timezone is UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-mesureux committed Dec 17, 2024
1 parent 4f8a530 commit dbbf9dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/api/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ service.name=Dailyclean
service.version=1.0.0
service.job.imageName=axaguildev/dailyclean-job:latest
service.job.serviceAccountName=default
service.job.timeZone=CET
service.job.timeZone=UTC
service.job.defaultCronStop=0 18 * * *
service.deployment.label.dailyclean=axa.com/dailyclean

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public abstract class AbstractTimeRangesResourceTest {
protected static final String CRON_20_00 = "0 20 * * *";
protected static final String IMG_NAME = "axaguildev/dailyclean-job:latest";
protected static final String SERVICE_ACCOUNT_NAME = "default";
protected static final String TIME_ZONE = "CET";
protected static final String TIME_ZONE = "UTC";

@KubernetesTestServer
KubernetesServer mockServer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void shouldNotCreateCronStopJobWithDefaultWhenItNotExists() {

private static void createCronJobStop(KubernetesClient client, String namespace) {
InputStream cronJobAsInputStream =
KubernetesUtils.createCronJobAsInputStream(STOP, CRON_10_00, "imagename:1.0.0", "default", "CET");
KubernetesUtils.createCronJobAsInputStream(STOP, CRON_10_00, "imagename:1.0.0", "default", "UTC");
client.load(cronJobAsInputStream).inNamespace(namespace).createOrReplace();
}
}

0 comments on commit dbbf9dc

Please sign in to comment.