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: PRE Perform Edit Cron Job #5711

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
17 changes: 17 additions & 0 deletions apps/pre/pre-api-cron-perform-edit-requests/demo.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-perform-edit-requests
namespace: pre
spec:
values:
global:
jobKind: CronJob
job:
suspend: true
schedule: "0 */5 * * * *" # every 5 mins
image: sdshmctspublic.azurecr.io/pre/api:prod-a52d16b-20241106102756 # {"$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-perform-edit-requests
namespace: pre
spec:
releaseName: pre-api-cron-perform-edit-requests
values:
java:
enabled: false
job:
enabled: true
environment:
TASK_NAME: PerformEditRequest
chart:
spec:
chart: ./stable/pre-api
sourceRef:
kind: GitRepository
name: hmcts-charts
namespace: flux-system
interval: 1m
15 changes: 15 additions & 0 deletions apps/pre/pre-api-cron-perform-edit-requests/prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: pre-api-cron-perform-edit-requests
namespace: pre
spec:
values:
global:
jobKind: CronJob
job:
suspend: true
schedule: "0 */5 * * * *" # every 5 mins
image: sdshmctspublic.azurecr.io/pre/api:prod-a52d16b-20241106102756 # {"$imagepolicy": "flux-system:pre-api"}
environment:
MEDIA_SERVICE: MediaKind
16 changes: 16 additions & 0 deletions apps/pre/pre-api-cron-perform-edit-requests/stg.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-perform-edit-requests
namespace: pre
spec:
values:
global:
jobKind: CronJob
job:
schedule: "0 */5 * * * *" # every 5 mins
image: sdshmctspublic.azurecr.io/pre/api:prod-a52d16b-20241106102756 # {"$imagepolicy": "flux-system:pre-api"}
environment:
AZURE_SUBSCRIPTION_ID: 74dacd4f-a248-45bb-a2f0-af700dc4cf68
PLATFORM_ENV_TAG: Staging
MEDIA_SERVICE: MediaKind
16 changes: 16 additions & 0 deletions apps/pre/pre-api-cron-perform-edit-requests/test.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-perform-edit-requests
namespace: pre
spec:
values:
global:
jobKind: CronJob
job:
schedule: "0 */5 * * * *" # every 5 mins
image: sdshmctspublic.azurecr.io/pre/api:prod-a52d16b-20241106102756 # {"$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-perform-edit-requests/pre-api-cron-perform-edit-requests.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-perform-edit-requests/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-perform-edit-requests/pre-api-cron-perform-edit-requests.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-perform-edit-requests/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-perform-edit-requests/pre-api-cron-perform-edit-requests.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-perform-edit-requests/test.yaml
- path: ../../serviceaccount/test.yaml
Loading