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

Warn user about the proper use of subPath field #1594

Merged

Conversation

cniackz
Copy link
Contributor

@cniackz cniackz commented May 1, 2023

Objective:

Avoid having two .minio.sys files under the same PV as already observed with one of our customers.

Reasoning:

In https://github.com/minio/operator/blob/master/examples/kustomization/base/tenant.yaml#L149 we are using subPath: "":

  mountPath: /export
  ## Sub path inside Mount path where MinIO stores data.
  subPath: ""

but in Helm we introduced /data back in #526 then if a user install the tenant via Kustomize and then remove just the tenant and put it back using helm, will end up with a new Tenant with same name and same namespace but two .minio.sys files under the same PV. Then user will think buckets are gone when in fact they are still in the PV just in different path. To avoid this confusion we can warn user about the proper use of this field.

@cniackz cniackz self-assigned this May 1, 2023
@cniackz cniackz added the consistency When we are changing something to be consistent label May 1, 2023
@cniackz cniackz force-pushed the be-consistent-across-the-repo-for-subpath branch from 24097e4 to cf5e150 Compare May 1, 2023 22:19
@cniackz cniackz force-pushed the be-consistent-across-the-repo-for-subpath branch from cf5e150 to 1d00810 Compare May 2, 2023 12:56
@cniackz cniackz changed the title To be consistent across the repo for subPath field Warn user about the proper use of subPath field May 2, 2023
@cniackz cniackz requested a review from cesnietor May 2, 2023 12:57
Copy link
Contributor

@cesnietor cesnietor left a comment

Choose a reason for hiding this comment

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

LGTM

@harshavardhana harshavardhana merged commit 6ba469a into minio:master Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consistency When we are changing something to be consistent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants