Skip to content

[don't merge/just review] operator: Add token storage for ingester + make sure PDBs are maxUnavail 1#1

Open
saswatamcode wants to merge 1 commit into
mainfrom
lokicustom
Open

[don't merge/just review] operator: Add token storage for ingester + make sure PDBs are maxUnavail 1#1
saswatamcode wants to merge 1 commit into
mainfrom
lokicustom

Conversation

@saswatamcode
Copy link
Copy Markdown
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR

…ail 1

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
@saswatamcode saswatamcode requested a review from xperimental as a code owner May 6, 2026 08:07
@philipgough
Copy link
Copy Markdown

@saswatamcode are we running the tests as part of ci? it appears not?

Copy link
Copy Markdown

@xperimental xperimental left a comment

Choose a reason for hiding this comment

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

Gave it a quick spin in a test cluster and it seems to do the things we expect to 👍

Some small code-style comments.

I'm looking forward to seeing what the impact is 🙂

MatchLabels: l,
},
MinAvailable: &mu,
MaxUnavailable: &maxUnavailable,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think this can be "modernized" to this (ptr is already used in this file):

Suggested change
MaxUnavailable: &maxUnavailable,
MaxUnavailable: ptr.To(intstr.FromInt32(1)),

MatchLabels: l,
},
MinAvailable: &minAvailable,
MaxUnavailable: &maxUnavailable,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
MaxUnavailable: &maxUnavailable,
MaxUnavailable: ptr.To(intstr.FromInt32(1)),

fmt.Sprintf("-config.file=%s", path.Join(config.LokiConfigMountDir, config.LokiConfigFileName)),
fmt.Sprintf("-runtime-config.file=%s", path.Join(config.LokiConfigMountDir, config.LokiRuntimeConfigFileName)),
"-config.expand-env=true",
fmt.Sprintf("-ingester.tokens-file-path=%s", ingesterTokensFilePath),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

(optional: This is less a comment for the purpose of adding this option for a test and more for when we later add it to the operator permanently)

We had moved "all" of the configuration to the config file at one point and, for now, I think I would move this option to the configuration file as well.

Having everything in the configuration file has its own set of advantages/disadvantages, which I have recently been thinking about again with some new insight, but I would like to make it a conscious decision.

For testing the impact of the option on running the ingesters it's fine where it is though 👍

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.

3 participants