Create buckets upon tenant creation or after tenant creation #1783
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes : #1783
Objective:
To be able to create a bucket after the tenant is created.
Reasoning:
We have customers who wants to create buckets once tenant is created by just changing GitOps Tenant Spec YAML. This will save them time as they will not need to create additional Jobs or containers to add buckets and all is needed is to change the tenant spec in their GitOps/ArgoCD flow.
Testing:
By doing this, we can keep creating as many buckets as needed after tenant is deployed. And we are protected against any failure because we have the code already in place to detect when bucket is created:
operator/pkg/apis/minio.min.io/v2/helper.go
As a result we get in the logs:
Question is:
If this is not approved, why we want to create bucket just upon tenant creation?: add bucket upon tenant creation #820
If we can create buckets on the fly, should we do it? what is the advantage or disadvantage of not doing it?. Please let's discuss this internally for me to understand better the reasons behind 820 PR.