mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-04 14:12:07 +09:00
fix(seaweedfs): disable the S3 Ingress in a tenant without ingress
The S3 Ingress kept rendering with no ingress-nginx to serve it. Now
that seaweedfs-system no longer waits on ingress-nginx-system there, the
release completes and the unserved Ingress would stay behind.
Assisted-by: LLM
Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
(cherry picked from commit 67fcadf689)
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
d28f09fc80
commit
c8b2877b7f
2 files changed
+30
No files matched your search
@@ -338,6 +338,7 @@ spec:
|
||||
s3:
|
||||
replicas: {{ .Values.s3.replicas }}
|
||||
ingress:
|
||||
enabled: {{ not (empty $ingress) }}
|
||||
className: {{ $ingress }}
|
||||
host: {{ .Values.host | default (printf "s3.%s" $host) }}
|
||||
annotations:
|
||||
|
||||
@@ -59,3 +59,32 @@ tests:
|
||||
content:
|
||||
name: ingress-nginx-system
|
||||
namespace: tenant-acme
|
||||
|
||||
- it: disables the S3 Ingress when the namespace has no ingress
|
||||
documentSelector:
|
||||
path: metadata.name
|
||||
value: seaweedfs-system
|
||||
set:
|
||||
_namespace:
|
||||
host: example.org
|
||||
ingress: ""
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.values.seaweedfs.s3.ingress.enabled
|
||||
value: false
|
||||
|
||||
- it: keeps the S3 Ingress when the namespace has an ingress
|
||||
documentSelector:
|
||||
path: metadata.name
|
||||
value: seaweedfs-system
|
||||
set:
|
||||
_namespace:
|
||||
host: example.org
|
||||
ingress: tenant-root
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.values.seaweedfs.s3.ingress.enabled
|
||||
value: true
|
||||
- equal:
|
||||
path: spec.values.seaweedfs.s3.ingress.className
|
||||
value: tenant-root
|
||||
Reference in new issue
Block a user