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

example: Fix missing common resources for (compact|store)-shards/receive-hashrings #234

Merged
merged 2 commits into from
Sep 15, 2021

Conversation

maxbrunet
Copy link
Contributor

@maxbrunet maxbrunet commented Jul 17, 2021

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Hide hashrings and shards fields in thanos-receive-hashrings and store-shards.
This allows to loop through them like the others instead of hand-picking resources and risking missing them (like the service accounts) or having a condition in the loop (e.g. if name != 'shards').

Loop through compact-shards, receive-hashrings and store-shards common resources and conditionally skip non-resource fields.

Verification

Generated manifests are still the same and service accounts are now here

@maxbrunet maxbrunet force-pushed the feature/hide-non-resource-fields branch 2 times, most recently from 476a747 to c0723aa Compare July 20, 2021 04:25
@maxbrunet
Copy link
Contributor Author

On an afterthought, hiding keys could potentially annoy some people like Tanka users which extracts Kubernetes resources from any level as long as they are not hidden, so I am just going to fix the example by looping and filtering out these keys.

@maxbrunet maxbrunet changed the title receive-hashrings/store-shards: Hide non-resource fields example: Fix missing common resources for receive-hashrings/store-shards Jul 20, 2021
@maxbrunet maxbrunet force-pushed the feature/hide-non-resource-fields branch from c0723aa to 0a5a829 Compare July 20, 2021 04:32
Signed-off-by: Maxime Brunet <maxime.brunet@paytm.com>
Signed-off-by: Maxime Brunet <maxime.brunet@paytm.com>
@maxbrunet maxbrunet force-pushed the feature/hide-non-resource-fields branch from 0a5a829 to 8c6611f Compare September 13, 2021 16:29
@maxbrunet maxbrunet changed the title example: Fix missing common resources for receive-hashrings/store-shards example: Fix missing common resources for (compact|store)-shards/receive-hashrings Sep 15, 2021
@kakkoyun kakkoyun merged commit f89c451 into thanos-io:main Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants