Skip to content

Commit

Permalink
VIIH-11180 Adding demo imange policy
Browse files Browse the repository at this point in the history
  • Loading branch information
himesh99 committed Nov 26, 2024
1 parent f6aff1b commit 5dfa441
Show file tree
Hide file tree
Showing 16 changed files with 150 additions and 14 deletions.
2 changes: 1 addition & 1 deletion apps/vh/admin-web/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
19 changes: 18 additions & 1 deletion apps/vh/admin-web/image-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,21 @@ spec:
name: vh-admin-web
policy:
alphabetical:
order: asc
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<ts>[0-9]+)'
imageRepositoryRef:
name: vh-admin-web
policy:
alphabetical:
order: asc
---
2 changes: 1 addition & 1 deletion apps/vh/booking-queue-subscriber/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 18 additions & 1 deletion apps/vh/booking-queue-subscriber/image-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,21 @@ spec:
name: vh-booking-queue-subscriber
policy:
alphabetical:
order: asc
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<ts>[0-9]+)'
imageRepositoryRef:
name: vh-booking-queue-subscriber
policy:
alphabetical:
order: asc
---
2 changes: 1 addition & 1 deletion apps/vh/bookings-api/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
19 changes: 18 additions & 1 deletion apps/vh/bookings-api/image-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,21 @@ spec:
name: vh-bookings-api
policy:
alphabetical:
order: asc
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<ts>[0-9]+)'
imageRepositoryRef:
name: vh-bookings-api
policy:
alphabetical:
order: asc
---
2 changes: 1 addition & 1 deletion apps/vh/notification-api/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
19 changes: 18 additions & 1 deletion apps/vh/notification-api/image-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,21 @@ spec:
name: vh-notification-api
policy:
alphabetical:
order: asc
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<ts>[0-9]+)'
imageRepositoryRef:
name: vh-notification-api
policy:
alphabetical:
order: asc
---
2 changes: 1 addition & 1 deletion apps/vh/scheduler-jobs/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
19 changes: 18 additions & 1 deletion apps/vh/scheduler-jobs/image-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,21 @@ spec:
name: vh-scheduler-jobs
policy:
alphabetical:
order: asc
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<ts>[0-9]+)'
imageRepositoryRef:
name: vh-notification-api
policy:
alphabetical:
order: asc
---
2 changes: 1 addition & 1 deletion apps/vh/user-api/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
19 changes: 18 additions & 1 deletion apps/vh/user-api/image-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,21 @@ spec:
name: vh-user-api
policy:
alphabetical:
order: asc
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<ts>[0-9]+)'
imageRepositoryRef:
name: vh-user-api
policy:
alphabetical:
order: asc
---
2 changes: 1 addition & 1 deletion apps/vh/video-api/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 17 additions & 0 deletions apps/vh/video-api/image-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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<ts>[0-9]+)'
imageRepositoryRef:
name: vh-video-api
policy:
alphabetical:
order: asc
---
2 changes: 1 addition & 1 deletion apps/vh/video-web/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 17 additions & 0 deletions apps/vh/video-web/image-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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<ts>[0-9]+)'
imageRepositoryRef:
name: vh-video-web
policy:
alphabetical:
order: asc
---

0 comments on commit 5dfa441

Please sign in to comment.