-
Notifications
You must be signed in to change notification settings - Fork 19
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
move data extract jobs to use k8s #36137
base: master
Are you sure you want to change the base?
Changes from 1 commit
a687373
48d436e
dc03c02
e15db94
a1b1309
14f5861
3071732
4505771
c891768
bdd95d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: probate-cron-iron-mountain-extract | ||
spec: | ||
releaseName: probate-cron-iron-mountain-extract | ||
values: | ||
job: | ||
schedule: "0 5 2 * *" | ||
environment: | ||
TASK_NAME: IronMountainExtractTask | ||
args: [] | ||
global: | ||
jobKind: CronJob | ||
enableKeyVaults: true | ||
tenantId: "531ff96d-0ae9-462a-8d2d-bec7c0b42082" | ||
environment: aat |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: probate-cron-iron-mountain-extract | ||
spec: | ||
releaseName: probate-cron-iron-mountain-extract | ||
values: | ||
job: | ||
image: hmctspublic.azurecr.io/probate/back-office:pr-2897-8ad23f9-20250115094341 #{"$imagepolicy": "flux-system:demo-probate-back-office"} | ||
schedule: "0 5 2 * *" | ||
environment: | ||
TRIG: trig-1 | ||
global: | ||
jobKind: CronJob | ||
enableKeyVaults: true | ||
tenantId: "531ff96d-0ae9-462a-8d2d-bec7c0b42082" | ||
environment: demo |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: image.toolkit.fluxcd.io/v1beta1 | ||
kind: ImagePolicy | ||
metadata: | ||
name: probate-cron-iron-mountain-extract | ||
spec: | ||
imageRepositoryRef: | ||
name: probate-cron-iron-mountain-extract |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: image.toolkit.fluxcd.io/v1beta2 | ||
kind: ImageRepository | ||
metadata: | ||
name: probate-cron-iron-mountain-extract | ||
spec: | ||
image: hmctspublic.azurecr.io/probate/back-office |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: probate-cron-iron-mountain-extract | ||
spec: | ||
releaseName: probate-cron-iron-mountain-extract | ||
values: | ||
job: | ||
image: hmctspublic.azurecr.io/probate/back-office:prod-6707e09-20250109124038 #{"$imagepolicy": "flux-system:probate-back-office"} | ||
schedule: "0 5 2 * *" | ||
global: | ||
jobKind: CronJob | ||
enableKeyVaults: true | ||
tenantId: "531ff96d-0ae9-462a-8d2d-bec7c0b42082" | ||
environment: perftest |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: probate-cron-iron-mountain-extract | ||
spec: | ||
releaseName: probate-cron-iron-mountain-extract | ||
values: | ||
job: | ||
environment: | ||
TASK_NAME: IronMountainExtractTask | ||
VAR_FV2: trigger-2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this var actually do anything for the cron trigger jobs? |
||
useInterpodAntiAffinity: true | ||
image: hmctspublic.azurecr.io/probate/back-office:prod-6707e09-20250109124038 #{"$imagepolicy": "flux-system:probate-back-office"} | ||
schedule: 0 * * * * | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if an environment doesn't override this it will run on the hour every hour? |
||
chart: | ||
spec: | ||
chart: probate-cron | ||
version: 0.0.26 | ||
sourceRef: | ||
kind: HelmRepository | ||
name: hmctspublic | ||
namespace: flux-system |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: probate-cron-iron-mountain-extract | ||
spec: | ||
releaseName: probate-cron-iron-mountain-extract | ||
values: | ||
job: | ||
environment: | ||
CCD_GATEWAY_HOST: https://manage-case.platform.hmcts.net | ||
IDAM_SERVICE_HOST: https://idam-api.platform.hmcts.net | ||
PRINTSERVICE_HOST: https://return-case-doc.ccd.platform.hmcts.net | ||
TASK_NAME: IronMountainExtractTask | ||
schedule: "0 5 2 * *" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is 0500 every 2nd of the month? is that what we intend There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this has been updated to be 5 mins past 2am every day There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#schedule-syntax is this the cron schedule type being used? |
||
global: | ||
jobKind: CronJob | ||
enableKeyVaults: true | ||
tenantId: "531ff96d-0ae9-462a-8d2d-bec7c0b42082" | ||
environment: prod |
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.
do we expected the env directories to ever contain anything bar these
env.yaml
files? if not can we have them as justenv.yaml
in the main directory?