Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: helm chart creates only one Tenant when multiple defined(#598) #599

Merged
merged 2 commits into from
May 10, 2021
Merged

Fix: helm chart creates only one Tenant when multiple defined(#598) #599

merged 2 commits into from
May 10, 2021

Conversation

dnskr
Copy link
Contributor

@dnskr dnskr commented Apr 16, 2021

This PR fixes issue#598

Copy link
Contributor

@nitisht nitisht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please apply these changes to your PR, we can then take this in

diff --git a/helm/minio-operator/templates/console-secret.yaml b/helm/minio-operator/templates/console-secret.yaml
index c07a432..2cf7c18 100644
--- a/helm/minio-operator/templates/console-secret.yaml
+++ b/helm/minio-operator/templates/console-secret.yaml
@@ -1,10 +1,10 @@
-{{ $namespace := .Release.Namespace }}
 {{ range .Values.tenants }}
+---
 apiVersion: v1
 kind: Secret
 metadata:
   name: {{ .console.secrets.name }}
-  namespace: {{ $namespace }}
+  namespace: {{ .namespace }}
 type: Opaque
 data:
   ## Passphrase to encrypt jwt payload
diff --git a/helm/minio-operator/templates/tenant-secret.yaml b/helm/minio-operator/templates/tenant-secret.yaml
index a36b068..67ac829 100644
--- a/helm/minio-operator/templates/tenant-secret.yaml
+++ b/helm/minio-operator/templates/tenant-secret.yaml
@@ -1,4 +1,5 @@
 {{ range .Values.tenants }}
+---
 apiVersion: v1
 kind: Secret
 metadata:

@dnskr dnskr requested a review from nitisht May 10, 2021 10:06
@nitisht nitisht merged commit 2666966 into minio:master May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helm chart creates only one Tenant when multiple defined
2 participants