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

Provide example on how to create users in tenant chart #1362

Open
aqeelat opened this issue Jul 16, 2024 · 8 comments
Open

Provide example on how to create users in tenant chart #1362

aqeelat opened this issue Jul 16, 2024 · 8 comments

Comments

@aqeelat
Copy link

aqeelat commented Jul 16, 2024

The docs say that it is a list of secrets. It does not say that the list should be of objects that contain a name.

I had to go through the crd schema to understand why my tenant was not being created.

Incorrect:

tenant:
  users:
    - my-user

Correct:

tenant:
  users:
    - name: my-user
@aqeelat aqeelat added community triage Needs triage and scheduling labels Jul 16, 2024
@ramondeklein
Copy link
Contributor

@aqeelat Which docs are you refering too?

@ramondeklein
Copy link
Contributor

I can't find any reference on creating users on that page.

@aqeelat
Copy link
Author

aqeelat commented Nov 4, 2024

Sorry I meant https://min.io/docs/minio/kubernetes/upstream/reference/tenant-chart-values.html#minio-tenant-chart-values

Regardless, its not very straightforward to find

@ramondeklein ramondeklein transferred this issue from minio/operator Nov 4, 2024
@ramondeklein
Copy link
Contributor

I think the reporter of this issue has a valid point. We should provide an example here.

@ravindk89
Copy link
Collaborator

https://github.com/minio/operator/blob/master/helm/tenant/values.yaml

We generate that page using the values in the actual values.yaml, so to update this line with more details.

Looking at the chart , that all boils down to the crd where we accept a LocalObjectReference .

We could try to do a pass through the CRD and back that into the values.yaml for those areas where we look for some sort of K8s-standard object. Might take us a bit to schedule this, but we will try to get to it as we have spare cycles.

@ravindk89 ravindk89 added priority: medium kubernetes and removed triage Needs triage and scheduling labels Nov 4, 2024
@ramondeklein
Copy link
Contributor

We can't update that value, because that would create a user by default and we don't want to do that.

@ravindk89
Copy link
Collaborator

@ramondeklein we can just add to the commented line above it, I should have been more specific.

We use an autoyaml plugin that just takes whatever is in that comment block and pops it into the RST. No change to the actual value is required.

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

3 participants