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

features domain broken on Tenant helm chart #1354

Closed
Rid opened this issue Nov 24, 2022 · 4 comments
Closed

features domain broken on Tenant helm chart #1354

Rid opened this issue Nov 24, 2022 · 4 comments
Assignees

Comments

@Rid
Copy link

Rid commented Nov 24, 2022

Expected Behavior

MINIO_DOMAIN to be set correctly

Current Behavior

        - name: MINIO_DOMAIN
          value: ','

Steps to Reproduce (for bugs)

spec:
  features:
    ## Specify a list of domains used to access MinIO and Console
    domains:
      minio:
        - domain1.minio
        - domain2.minio

Context

@dvaldivia I'm using the latest helm version with

spec:
  features:
    ## Specify a list of domains used to access MinIO and Console
    domains:
      minio:
        - domain1.minio
        - domain2.minio

However the statefulset has:

        - name: MINIO_DOMAIN
          value: ','

The statefulset pods fail with:

{"level":"FATAL","errKind":"","time":"2022-11-24T19:46:20.079437507Z","message":"unexpected scheme found ","error":{"message":"unexpected scheme found ","source":["cmd/server-main.go:215:cmd.serverHandleEnvVars()"]}}

Regression

Yes

Your Environment

Latest helm operator & tenant charts

Fix: #1378

@harshavardhana
Copy link
Member

Feel free to send a fix @Rid

@allanrogerr
Copy link
Contributor

allanrogerr commented Dec 29, 2022

@Rid This issue is due to the way URLs are parsed by golang. Since there is no slash after the scheme in your example domains (there is actually no scheme), they are parsed in the following way "scheme:opaque[?query][#fragment]" resulting in empty domains (see https://pkg.go.dev/net/url#URL).

A workaround is to add a scheme to your domains, while a permanent fix is analyzed e.g.

spec:
  features:
    ## Specify a list of domains used to access MinIO and Console
    domains:
      minio:
        - https://domain1.minio
        - https://domain2.minio

Please let me know your thoughts.

@allanrogerr
Copy link
Contributor

PR #1378 created for this issue. The workaround will need to be removed once it is implemented and you uptake the change.

@cniackz
Copy link
Contributor

cniackz commented Jan 6, 2023

Fixes #1378

@pjuarezd pjuarezd closed this as completed Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants