Remove index-based pool name verification #2164
Merged
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.
This PR Is the continuation of bugfix: set pool status based on name rather than index based #2161
fixes bug:
Pools names duplicated and miscreated MINIO_ARGS
Generate Minio Host names based in the
spec.status
leads to duplicated pool names when a pools are decomissionedSteps to reproduce:
pool-1
, make sure the pool is the second in thespec.pools
listpool-2
.Notice:
pool-0
pool-1
pool-2
This is an example tenant pools (click to expand)
MINIO_ARGS
env variable value is as follows (get a shell in a minio container and cat/tmp/minio/config.env
):pool-1
Wait for decomission to finish
pool-1
from the tenant yamlexample Tenant (click to expand)
MINIO_ARGS
is built from the.spec.status
, the poolpool-1
should not appear, but instead Operator namespool-2
aspool-1
when forming theMINIO_ARGS
.With this fix the Pool names are propery labeled as
pool-0
andpool-2