Skip to content

Commit 0341ae9

Browse files
committed
test(seaweedfs): pin the ingress lookup for sub-tenants with their own ingress
A sub-tenant that runs its own ingress used to keep the ingress-nginx-system dependency from values alone; it now also needs the lookup to find the `ingress` HelmRelease in its own namespace. Every positive case ran in tenant-root, so a lookup pinned to tenant-root passed the suite while such a sub-tenant silently lost the dependency whenever the root tenant had no ingress. Assisted-by: LLM Signed-off-by: Alexey Artamonov <[email protected]>
1 parent 46dc71d commit 0341ae9

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

‎packages/extra/seaweedfs/tests/ingress_dependency_test.yaml‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,37 @@ tests:
149149
value:
150150
- name: seaweedfs-db
151151

152+
- it: depends on ingress-nginx-system for a sub-tenant that deploys its own ingress
153+
set:
154+
<<: *values
155+
_namespace:
156+
host: example.org
157+
ingress: tenant-child
158+
release:
159+
namespace: tenant-child
160+
documentSelector: *systemHR
161+
kubernetesProvider:
162+
scheme: *scheme
163+
objects:
164+
- kind: Namespace
165+
apiVersion: v1
166+
metadata:
167+
name: tenant-child
168+
- *unrelatedPVC
169+
- *unrelatedSTS
170+
- kind: HelmRelease
171+
apiVersion: helm.toolkit.fluxcd.io/v2
172+
metadata:
173+
name: ingress
174+
namespace: tenant-child
175+
asserts:
176+
- equal:
177+
path: spec.dependsOn
178+
value:
179+
- name: seaweedfs-db
180+
- name: ingress-nginx-system
181+
namespace: tenant-child
182+
152183
- it: renders without the dependency on a client-side render
153184
set: *values
154185
documentSelector: *systemHR

0 commit comments

Comments
 (0)