diff --git a/apps/pre/pre-api-cron-start-live-events/demo.yaml b/apps/pre/pre-api-cron-start-live-events/demo.yaml new file mode 100644 index 0000000000..c4aba13d6a --- /dev/null +++ b/apps/pre/pre-api-cron-start-live-events/demo.yaml @@ -0,0 +1,18 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: pre-api-cron-start-live-events + namespace: pre +spec: + values: + global: + jobKind: CronJob + job: + suspend: true + disableActiveClusterCheck: true + schedule: "0 8 * * *" + image: sdshmctspublic.azurecr.io/pre/api:prod-9768b5c-20241211095526 # {"$imagepolicy": "flux-system:pre-api"} + environment: + AZURE_SUBSCRIPTION_ID: c68a4bed-4c3d-4956-af51-4ae164c1957c + PLATFORM_ENV_TAG: Demo + MEDIA_SERVICE: MediaKind diff --git a/apps/pre/pre-api-cron-start-live-events/pre-api-cron-start-live-events.yaml b/apps/pre/pre-api-cron-start-live-events/pre-api-cron-start-live-events.yaml new file mode 100644 index 0000000000..4da8bf91d7 --- /dev/null +++ b/apps/pre/pre-api-cron-start-live-events/pre-api-cron-start-live-events.yaml @@ -0,0 +1,22 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: pre-api-cron-start-live-events + namespace: pre +spec: + releaseName: pre-api-cron-start-live-events + values: + java: + enabled: false + job: + enabled: true + environment: + TASK_NAME: StartLiveEvents + chart: + spec: + chart: ./stable/pre-api + sourceRef: + kind: GitRepository + name: hmcts-charts + namespace: flux-system + interval: 1m \ No newline at end of file diff --git a/apps/pre/pre-api-cron-start-live-events/prod.yaml b/apps/pre/pre-api-cron-start-live-events/prod.yaml new file mode 100644 index 0000000000..e59dd885bc --- /dev/null +++ b/apps/pre/pre-api-cron-start-live-events/prod.yaml @@ -0,0 +1,16 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: pre-api-cron-start-live-events + namespace: pre +spec: + values: + global: + jobKind: CronJob + job: + suspend: true + disableActiveClusterCheck: true + schedule: "0 8 * * *" + image: sdshmctspublic.azurecr.io/pre/api:prod-9768b5c-20241211095526 # {"$imagepolicy": "flux-system:pre-api"} + environment: + MEDIA_SERVICE: MediaKind diff --git a/apps/pre/pre-api-cron-start-live-events/stg.yaml b/apps/pre/pre-api-cron-start-live-events/stg.yaml new file mode 100644 index 0000000000..88e36f8d47 --- /dev/null +++ b/apps/pre/pre-api-cron-start-live-events/stg.yaml @@ -0,0 +1,17 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: pre-api-cron-start-live-events + namespace: pre +spec: + values: + global: + jobKind: CronJob + job: + suspend: false + schedule: "0 8 * * *" + image: sdshmctspublic.azurecr.io/pre/api:prod-9768b5c-20241211095526 # {"$imagepolicy": "flux-system:pre-api"} + environment: + AZURE_SUBSCRIPTION_ID: 74dacd4f-a248-45bb-a2f0-af700dc4cf68 + PLATFORM_ENV_TAG: Staging + MEDIA_SERVICE: MediaKind diff --git a/apps/pre/pre-api-cron-start-live-events/test.yaml b/apps/pre/pre-api-cron-start-live-events/test.yaml new file mode 100644 index 0000000000..42c2757e09 --- /dev/null +++ b/apps/pre/pre-api-cron-start-live-events/test.yaml @@ -0,0 +1,17 @@ +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: pre-api-cron-start-live-events + namespace: pre +spec: + values: + global: + jobKind: CronJob + job: + suspend: true + schedule: "0 8 * * *" + image: sdshmctspublic.azurecr.io/pre/api:prod-9768b5c-20241211095526 # {"$imagepolicy": "flux-system:pre-api"} + environment: + AZURE_SUBSCRIPTION_ID: 3eec5bde-7feb-4566-bfb6-805df6e10b90 + PLATFORM_ENV_TAG: Test + MEDIA_SERVICE: MediaKind diff --git a/apps/pre/prod/base/kustomization.yaml b/apps/pre/prod/base/kustomization.yaml index b43e4d2f88..0f1a63aa3a 100644 --- a/apps/pre/prod/base/kustomization.yaml +++ b/apps/pre/prod/base/kustomization.yaml @@ -5,6 +5,7 @@ resources: - ../../pre-api-cron-cleanup-live-events/pre-api-cron-cleanup-live-events.yaml - ../../pre-api-cron-cleanup-streaming-locators/pre-api-cron-cleanup-streaming-locators.yaml - ../../pre-api-cron-close-pending-cases/pre-api-cron-close-pending-cases.yaml + - ../../pre-api-cron-start-live-events/pre-api-cron-start-live-events.yaml - ../../../base/slack-provider/prod namespace: pre patches: @@ -14,4 +15,5 @@ patches: - path: ../../pre-api-cron-cleanup-streaming-locators/prod.yaml - path: ../../pre-api-cron-cleanup-live-events/prod.yaml - path: ../../pre-api-cron-close-pending-cases/prod.yaml + - path: ../../pre-api-cron-start-live-events/prod.yaml - path: ../../serviceaccount/prod.yaml diff --git a/apps/pre/stg/base/kustomization.yaml b/apps/pre/stg/base/kustomization.yaml index 1d8d564194..e721a58c1a 100644 --- a/apps/pre/stg/base/kustomization.yaml +++ b/apps/pre/stg/base/kustomization.yaml @@ -5,6 +5,7 @@ resources: - ../../pre-api-cron-cleanup-live-events/pre-api-cron-cleanup-live-events.yaml - ../../pre-api-cron-cleanup-streaming-locators/pre-api-cron-cleanup-streaming-locators.yaml - ../../pre-api-cron-close-pending-cases/pre-api-cron-close-pending-cases.yaml + - ../../pre-api-cron-start-live-events/pre-api-cron-start-live-events.yaml - ../../../rbac/nonprod-role.yaml - ../../../base/slack-provider/stg namespace: pre @@ -15,4 +16,5 @@ patches: - path: ../../pre-api-cron-cleanup-streaming-locators/stg.yaml - path: ../../pre-api-cron-cleanup-live-events/stg.yaml - path: ../../pre-api-cron-close-pending-cases/stg.yaml + - path: ../../pre-api-cron-start-live-events/stg.yaml - path: ../../serviceaccount/stg.yaml diff --git a/apps/pre/test/base/kustomization.yaml b/apps/pre/test/base/kustomization.yaml index f5449ea7cc..e41f9ee51e 100644 --- a/apps/pre/test/base/kustomization.yaml +++ b/apps/pre/test/base/kustomization.yaml @@ -5,6 +5,7 @@ resources: - ../../pre-api-cron-cleanup-live-events/pre-api-cron-cleanup-live-events.yaml - ../../pre-api-cron-cleanup-streaming-locators/pre-api-cron-cleanup-streaming-locators.yaml - ../../pre-api-cron-close-pending-cases/pre-api-cron-close-pending-cases.yaml + - ../../pre-api-cron-start-live-events/pre-api-cron-start-live-events.yaml - ../../../rbac/nonprod-role.yaml - ../../../base/slack-provider/test namespace: pre @@ -15,4 +16,5 @@ patches: - path: ../../pre-api-cron-cleanup-streaming-locators/test.yaml - path: ../../pre-api-cron-cleanup-live-events/test.yaml - path: ../../pre-api-cron-close-pending-cases/test.yaml + - path: ../../pre-api-cron-start-live-events/test.yaml - path: ../../serviceaccount/test.yaml