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

Allow custom (non-propagating) stateful set metadata #2337

Merged
merged 5 commits into from
Oct 17, 2024

Conversation

ramondeklein
Copy link
Contributor

@ramondeklein ramondeklein commented Oct 15, 2024

This PR fixes #2318. This PR will remove all automatic propagation of metadata from the Tenant resource to the child resources (statefulset, pod, service, pvc).

  • Each pool results in a statefulset. Labels/annotations that should be used for all pools, should be set using .spec.poolsMetadata.Annotations / .spec.poolsMetadata.Labels. Per-pool labels/annotations can be set using .spec.pools[].Annotations or .spec.pools[].Labels.
  • The (non-headless) services can be annotated with the fields in .spec.serviceMetadata. There are custom options for MinIO, console and KES.
  • PVCs are specified using a generic PersistentVolumeClaim object.

Breaking change

Note that this may be a breaking change for some deployments that depend on propagating annotations/labels from the tenant to downstream resources.

shtripat
shtripat previously approved these changes Oct 15, 2024
Copy link
Contributor

@shtripat shtripat left a comment

Choose a reason for hiding this comment

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

Mostly looks good. Couple of minor ones.

@ramondeklein ramondeklein requested a review from shtripat October 15, 2024 18:52
@pjuarezd pjuarezd added the breaking change breaking change feature or bugfix label Oct 15, 2024
@ramondeklein
Copy link
Contributor Author

ramondeklein commented Oct 16, 2024

@shtripat I'll update the code generator in another PR to fix the spelling issue. It annoyed me too 😄 See #2341.

shtripat
shtripat previously approved these changes Oct 16, 2024
Copy link
Contributor

@shtripat shtripat left a comment

Choose a reason for hiding this comment

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

lgtm

@cesnietor
Copy link
Contributor

@ramondeklein could you please take a look at the failing tests.

@ramondeklein ramondeklein force-pushed the custom-sts-metadata branch 2 times, most recently from 20780cb to e66492a Compare October 17, 2024 14:09
@ramondeklein ramondeklein force-pushed the custom-sts-metadata branch 2 times, most recently from eb5c1e6 to 9cab4fe Compare October 17, 2024 14:40
@ramondeklein
Copy link
Contributor Author

@cesnietor Done...

@pjuarezd pjuarezd merged commit 54a9f26 into minio:master Oct 17, 2024
21 checks passed
@acelinkio
Copy link

Any chance a new release could be cut to catch this change? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change breaking change feature or bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] The tenant's StatefulSet replicates the Tenant's metadata
5 participants