From 3e250ebfdeefbc9aa056ce137b8e99fceaade013 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Thu, 6 Aug 2026 10:48:34 +0200 Subject: [PATCH] test(harbor): assert the operator-group label and pinned engine Assisted-By: Claude Signed-off-by: Andrei Kvapil --- packages/system/harbor/tests/redis_test.yaml | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/packages/system/harbor/tests/redis_test.yaml b/packages/system/harbor/tests/redis_test.yaml index fdb38017c..b2fca6108 100644 --- a/packages/system/harbor/tests/redis_test.yaml +++ b/packages/system/harbor/tests/redis_test.yaml @@ -29,3 +29,26 @@ tests: - equal: path: spec.sentinel.resources.limits.memory value: 128Mi + + - it: RedisFailover is adopted by the operator group and pins its engine + template: templates/redis.yaml + documentIndex: 1 + set: + harbor: + fullnameOverride: harbor-test + asserts: + # The label is the ONLY point of contact between the CR and the + # freshworks operator's group selector. A typo in the key or value + # produces no admission error and no operator log — just a Redis that + # never provisions and a harbor-core CrashLoop behind it. + - equal: + path: metadata.labels["redis-failover.freshworks.com/operator-group"] + value: cozystack + # Pin the engine so an operator-default bump (6.2.6->7.2.4) cannot silently + # move Harbor's Redis onto an on-disk format a platform rollback cannot load. + - equal: + path: spec.redis.image + value: redis:6.2.6-alpine + - equal: + path: spec.sentinel.image + value: redis:6.2.6-alpine