Skip to content

Commit 2e98a64

Browse files
committed
test(http-cache): pin the nginx image by repository, not tag
The exact-value assertion embedded the release tag, so it went stale every time a release rewrote images/nginx-cache.tag, and the release promotion script's own postcondition scan already catches this before a release ships. Match the repository and sha256 shape instead, matching the pattern multus and kuberture already use for the same reason. Assisted-by: LLM Signed-off-by: Akanksha Trehun <[email protected]>
1 parent 239aeba commit 2e98a64

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/apps/http-cache/tests/nginx_test.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ tests:
2121
- equal:
2222
path: kind
2323
value: Deployment
24-
- equal:
24+
- matchRegex:
2525
path: spec.template.spec.containers[0].image
26-
value: ghcr.io/cozystack/cozystack/nginx-cache:v1.6.0@sha256:bd042a8a9789e8b21b12cb266e390484a3a48f4af6ca6e2d2864a8a83c74bd25
26+
pattern: '^ghcr\.io/cozystack/cozystack/nginx-cache:[^@]+@sha256:[0-9a-f]{64}$'
2727

2828
- it: sizes the first replica's PVC from values.size
2929
template: templates/nginx/deployment.yaml

0 commit comments

Comments
 (0)