Skip to content

Commit

Permalink
Add start live events cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-phillips28 committed Dec 13, 2024
1 parent c75e756 commit a112a09
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 0 deletions.
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

Check failure on line 19 in apps/pre/stg/base/kustomization.yaml

View workflow job for this annotation

GitHub Actions / static_tests

19:5 [key-duplicates] duplication of key "path" in mapping
- 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

0 comments on commit a112a09

Please sign in to comment.