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

Add: Start Live Events Cron Job #5875

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions apps/pre/pre-api-cron-start-live-events/demo.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions apps/pre/pre-api-cron-start-live-events/prod.yaml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions apps/pre/pre-api-cron-start-live-events/stg.yaml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions apps/pre/pre-api-cron-start-live-events/test.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions apps/pre/prod/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
2 changes: 2 additions & 0 deletions apps/pre/stg/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 2 additions & 0 deletions apps/pre/test/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Loading