From 5dfa441f536e64dd7d0c03ef68efee88ddbba560 Mon Sep 17 00:00:00 2001 From: Himesh Date: Tue, 26 Nov 2024 11:42:21 +0000 Subject: [PATCH] VIIH-11180 Adding demo imange policy --- apps/vh/admin-web/demo.yaml | 2 +- apps/vh/admin-web/image-policy.yaml | 19 ++++++++++++++++++- apps/vh/booking-queue-subscriber/demo.yaml | 2 +- .../image-policy.yaml | 19 ++++++++++++++++++- apps/vh/bookings-api/demo.yaml | 2 +- apps/vh/bookings-api/image-policy.yaml | 19 ++++++++++++++++++- apps/vh/notification-api/demo.yaml | 2 +- apps/vh/notification-api/image-policy.yaml | 19 ++++++++++++++++++- apps/vh/scheduler-jobs/demo.yaml | 2 +- apps/vh/scheduler-jobs/image-policy.yaml | 19 ++++++++++++++++++- apps/vh/user-api/demo.yaml | 2 +- apps/vh/user-api/image-policy.yaml | 19 ++++++++++++++++++- apps/vh/video-api/demo.yaml | 2 +- apps/vh/video-api/image-policy.yaml | 17 +++++++++++++++++ apps/vh/video-web/demo.yaml | 2 +- apps/vh/video-web/image-policy.yaml | 17 +++++++++++++++++ 16 files changed, 150 insertions(+), 14 deletions(-) diff --git a/apps/vh/admin-web/demo.yaml b/apps/vh/admin-web/demo.yaml index 8c614b3e9f1..0600a8400c4 100644 --- a/apps/vh/admin-web/demo.yaml +++ b/apps/vh/admin-web/demo.yaml @@ -8,7 +8,7 @@ spec: values: java: ingressHost: vh-admin-web.demo.platform.hmcts.net - image: sdshmctspublic.azurecr.io/vh/admin-web:dev-bedf8dc-202411200910 #{"$imagepolicy": "flux-system:vh-admin-web-dev"} + image: sdshmctspublic.azurecr.io/vh/admin-web:dev-bedf8dc-202411200910 #{"$imagepolicy": "flux-system:vh-admin-web-demo"} # chart: # spec: # chart: ./stable/vh-admin-web/prod diff --git a/apps/vh/admin-web/image-policy.yaml b/apps/vh/admin-web/image-policy.yaml index 522a916a4a1..4e7a16399c1 100644 --- a/apps/vh/admin-web/image-policy.yaml +++ b/apps/vh/admin-web/image-policy.yaml @@ -60,4 +60,21 @@ spec: name: vh-admin-web policy: alphabetical: - order: asc \ No newline at end of file + order: asc +--- +apiVersion: image.toolkit.fluxcd.io/v1beta1 +kind: ImagePolicy +metadata: + name: vh-admin-web-demo + annotations: + hmcts.github.com/prod-automated: disabled +spec: + filterTags: + extract: $ts + pattern: '^demo-[a-f0-9]+-(?P[0-9]+)' + imageRepositoryRef: + name: vh-admin-web + policy: + alphabetical: + order: asc +--- \ No newline at end of file diff --git a/apps/vh/booking-queue-subscriber/demo.yaml b/apps/vh/booking-queue-subscriber/demo.yaml index ef339012d48..9180705a5ed 100644 --- a/apps/vh/booking-queue-subscriber/demo.yaml +++ b/apps/vh/booking-queue-subscriber/demo.yaml @@ -7,7 +7,7 @@ spec: releaseName: vh-booking-queue-subscriber values: java: - image: sdshmctspublic.azurecr.io/vh/booking-queue-subscriber:dev-f399d5f-202411051523 # {"$imagepolicy": "flux-system:vh-booking-queue-subscriber-dev"} + image: sdshmctspublic.azurecr.io/vh/booking-queue-subscriber:dev-f399d5f-202411051523 # {"$imagepolicy": "flux-system:vh-booking-queue-subscriber-demo"} function: triggers: - type: azure-servicebus diff --git a/apps/vh/booking-queue-subscriber/image-policy.yaml b/apps/vh/booking-queue-subscriber/image-policy.yaml index adc85f1c9d2..6020e06a5ed 100644 --- a/apps/vh/booking-queue-subscriber/image-policy.yaml +++ b/apps/vh/booking-queue-subscriber/image-policy.yaml @@ -60,4 +60,21 @@ spec: name: vh-booking-queue-subscriber policy: alphabetical: - order: asc \ No newline at end of file + order: asc +--- +apiVersion: image.toolkit.fluxcd.io/v1beta1 +kind: ImagePolicy +metadata: + name: vh-booking-queue-subscriber-demo + annotations: + hmcts.github.com/prod-automated: disabled +spec: + filterTags: + extract: $ts + pattern: '^demo-[a-f0-9]+-(?P[0-9]+)' + imageRepositoryRef: + name: vh-booking-queue-subscriber + policy: + alphabetical: + order: asc +--- \ No newline at end of file diff --git a/apps/vh/bookings-api/demo.yaml b/apps/vh/bookings-api/demo.yaml index ebd04269bf3..2c2ef48c98c 100644 --- a/apps/vh/bookings-api/demo.yaml +++ b/apps/vh/bookings-api/demo.yaml @@ -8,7 +8,7 @@ spec: values: java: ingressHost: vh-bookings-api.demo.platform.hmcts.net - image: sdshmctspublic.azurecr.io/vh/bookings-api:dev-140b500-202411221138 #{"$imagepolicy": "flux-system:vh-bookings-api-dev"} + image: sdshmctspublic.azurecr.io/vh/bookings-api:dev-140b500-202411221138 #{"$imagepolicy": "flux-system:vh-bookings-api-demo"} # chart: # spec: # chart: ./stable/vh-bookings-api/prod diff --git a/apps/vh/bookings-api/image-policy.yaml b/apps/vh/bookings-api/image-policy.yaml index 233d82e5503..2619b207ed4 100644 --- a/apps/vh/bookings-api/image-policy.yaml +++ b/apps/vh/bookings-api/image-policy.yaml @@ -60,4 +60,21 @@ spec: name: vh-bookings-api policy: alphabetical: - order: asc \ No newline at end of file + order: asc +--- +apiVersion: image.toolkit.fluxcd.io/v1beta1 +kind: ImagePolicy +metadata: + name: vh-bookings-api-demo + annotations: + hmcts.github.com/prod-automated: disabled +spec: + filterTags: + extract: $ts + pattern: '^demo-[a-f0-9]+-(?P[0-9]+)' + imageRepositoryRef: + name: vh-bookings-api + policy: + alphabetical: + order: asc +--- \ No newline at end of file diff --git a/apps/vh/notification-api/demo.yaml b/apps/vh/notification-api/demo.yaml index e3f6c57d7af..6614696d618 100644 --- a/apps/vh/notification-api/demo.yaml +++ b/apps/vh/notification-api/demo.yaml @@ -8,7 +8,7 @@ spec: values: java: ingressHost: vh-notification-api.demo.platform.hmcts.net - image: sdshmctspublic.azurecr.io/vh/notification-api:dev-5b44625-202411111136 #{"$imagepolicy": "flux-system:vh-notification-api-dev"} + image: sdshmctspublic.azurecr.io/vh/notification-api:dev-5b44625-202411111136 #{"$imagepolicy": "flux-system:vh-notification-api-demo"} # chart: # spec: # chart: ./stable/vh-notification-api/prod diff --git a/apps/vh/notification-api/image-policy.yaml b/apps/vh/notification-api/image-policy.yaml index 81e5231bfdd..ca619ffdcca 100644 --- a/apps/vh/notification-api/image-policy.yaml +++ b/apps/vh/notification-api/image-policy.yaml @@ -60,4 +60,21 @@ spec: name: vh-notification-api policy: alphabetical: - order: asc \ No newline at end of file + order: asc +--- +apiVersion: image.toolkit.fluxcd.io/v1beta1 +kind: ImagePolicy +metadata: + name: vh-notification-api-demo + annotations: + hmcts.github.com/prod-automated: disabled +spec: + filterTags: + extract: $ts + pattern: '^demo-[a-f0-9]+-(?P[0-9]+)' + imageRepositoryRef: + name: vh-notification-api + policy: + alphabetical: + order: asc +--- \ No newline at end of file diff --git a/apps/vh/scheduler-jobs/demo.yaml b/apps/vh/scheduler-jobs/demo.yaml index b551780e911..6978ccf4f85 100644 --- a/apps/vh/scheduler-jobs/demo.yaml +++ b/apps/vh/scheduler-jobs/demo.yaml @@ -6,7 +6,7 @@ metadata: spec: releaseName: vh-scheduler-jobs values: - image: sdshmctspublic.azurecr.io/vh/scheduler-jobs-sds:dev-cac51a5-202411071126 #{"$imagepolicy": "flux-system:vh-scheduler-jobs-dev"} + image: sdshmctspublic.azurecr.io/vh/scheduler-jobs-sds:dev-cac51a5-202411071126 #{"$imagepolicy": "flux-system:vh-scheduler-jobs-demo"} # chart: # spec: # chart: ./stable/vh-scheduler-jobs/prod diff --git a/apps/vh/scheduler-jobs/image-policy.yaml b/apps/vh/scheduler-jobs/image-policy.yaml index 7bdc150286a..cdac985db8a 100644 --- a/apps/vh/scheduler-jobs/image-policy.yaml +++ b/apps/vh/scheduler-jobs/image-policy.yaml @@ -60,4 +60,21 @@ spec: name: vh-scheduler-jobs policy: alphabetical: - order: asc \ No newline at end of file + order: asc +--- +apiVersion: image.toolkit.fluxcd.io/v1beta1 +kind: ImagePolicy +metadata: + name: vh-notification-api-demo + annotations: + hmcts.github.com/prod-automated: disabled +spec: + filterTags: + extract: $ts + pattern: '^demo-[a-f0-9]+-(?P[0-9]+)' + imageRepositoryRef: + name: vh-notification-api + policy: + alphabetical: + order: asc +--- \ No newline at end of file diff --git a/apps/vh/user-api/demo.yaml b/apps/vh/user-api/demo.yaml index 8f0439a0b8d..222a857939f 100644 --- a/apps/vh/user-api/demo.yaml +++ b/apps/vh/user-api/demo.yaml @@ -8,7 +8,7 @@ spec: values: java: ingressHost: vh-user-api.demo.platform.hmcts.net - image: sdshmctspublic.azurecr.io/vh/user-api:dev-5fa2fb4-202411121604 #{"$imagepolicy": "flux-system:vh-user-api-dev"} + image: sdshmctspublic.azurecr.io/vh/user-api:dev-5fa2fb4-202411121604 #{"$imagepolicy": "flux-system:vh-user-api-demo"} # chart: # spec: # chart: ./stable/vh-user-api/prod diff --git a/apps/vh/user-api/image-policy.yaml b/apps/vh/user-api/image-policy.yaml index 9ead4a65554..6190a4edced 100644 --- a/apps/vh/user-api/image-policy.yaml +++ b/apps/vh/user-api/image-policy.yaml @@ -60,4 +60,21 @@ spec: name: vh-user-api policy: alphabetical: - order: asc \ No newline at end of file + order: asc +--- +apiVersion: image.toolkit.fluxcd.io/v1beta1 +kind: ImagePolicy +metadata: + name: vh-user-api-demo + annotations: + hmcts.github.com/prod-automated: disabled +spec: + filterTags: + extract: $ts + pattern: '^demo-[a-f0-9]+-(?P[0-9]+)' + imageRepositoryRef: + name: vh-user-api + policy: + alphabetical: + order: asc +--- \ No newline at end of file diff --git a/apps/vh/video-api/demo.yaml b/apps/vh/video-api/demo.yaml index 62521aea426..54c31af99cb 100644 --- a/apps/vh/video-api/demo.yaml +++ b/apps/vh/video-api/demo.yaml @@ -8,7 +8,7 @@ spec: values: java: ingressHost: vh-video-api.demo.platform.hmcts.net - image: sdshmctspublic.azurecr.io/vh/video-api:dev-5598174-202411251239 #{"$imagepolicy": "flux-system:vh-video-api-dev"} + image: sdshmctspublic.azurecr.io/vh/video-api:dev-5598174-202411251239 #{"$imagepolicy": "flux-system:vh-video-api-demo"} # chart: # spec: # chart: ./stable/vh-video-api/demo diff --git a/apps/vh/video-api/image-policy.yaml b/apps/vh/video-api/image-policy.yaml index 602e00595a8..abb52436153 100644 --- a/apps/vh/video-api/image-policy.yaml +++ b/apps/vh/video-api/image-policy.yaml @@ -61,3 +61,20 @@ spec: policy: alphabetical: order: asc +--- +apiVersion: image.toolkit.fluxcd.io/v1beta1 +kind: ImagePolicy +metadata: + name: vh-video-api-demo + annotations: + hmcts.github.com/prod-automated: disabled +spec: + filterTags: + extract: $ts + pattern: '^demo-[a-f0-9]+-(?P[0-9]+)' + imageRepositoryRef: + name: vh-video-api + policy: + alphabetical: + order: asc +--- \ No newline at end of file diff --git a/apps/vh/video-web/demo.yaml b/apps/vh/video-web/demo.yaml index d57b60a5ca8..ad1ebe37fbc 100644 --- a/apps/vh/video-web/demo.yaml +++ b/apps/vh/video-web/demo.yaml @@ -8,7 +8,7 @@ spec: values: java: ingressHost: vh-video-web.demo.platform.hmcts.net - image: sdshmctspublic.azurecr.io/vh/video-web:dev-8d55663-202411251347 # {"$imagepolicy": "flux-system:vh-video-web-dev"} + image: sdshmctspublic.azurecr.io/vh/video-web:dev-8d55663-202411251347 # {"$imagepolicy": "flux-system:vh-video-web-demo"} # chart: # spec: # chart: ./stable/vh-video-web/non-prod diff --git a/apps/vh/video-web/image-policy.yaml b/apps/vh/video-web/image-policy.yaml index 00ce5a62238..9864f9e9c43 100644 --- a/apps/vh/video-web/image-policy.yaml +++ b/apps/vh/video-web/image-policy.yaml @@ -61,3 +61,20 @@ spec: policy: alphabetical: order: asc +--- +apiVersion: image.toolkit.fluxcd.io/v1beta1 +kind: ImagePolicy +metadata: + name: vh-video-web-demo + annotations: + hmcts.github.com/prod-automated: disabled +spec: + filterTags: + extract: $ts + pattern: '^demo-[a-f0-9]+-(?P[0-9]+)' + imageRepositoryRef: + name: vh-video-web + policy: + alphabetical: + order: asc +--- \ No newline at end of file