Skip to content

Conversation

roidelapluie
Copy link
Contributor

@roidelapluie roidelapluie commented Oct 6, 2020

This pull request returns an explicit error if the user asks to start
the store gateway but omits to set the storage type to blocks.

The previous behaviour was to silently ignore the -target=store-gateway
argument.

Note that this does not apply when target is all.

Signed-off-by: Julien Pivotto [email protected]

What this PR does:

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

This pull request returns an explicit error if the user asks to start
the store gateway but omits to set the storage type to `blocks`.

The previous behaviour was to silently ignore the -target=store-gateway
argument.

Note that this does not apply when target is `all`.

Signed-off-by: Julien Pivotto <[email protected]>
Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM

@pracucci pracucci merged commit 031b51c into cortexproject:master Oct 7, 2020
blind-oracle added a commit to blind-oracle/cortex that referenced this pull request Oct 8, 2020
pracucci added a commit that referenced this pull request Oct 9, 2020
* Add an ability to load an arbitrary list of Cortex modules

Signed-off-by: Igor Novgorodov <[email protected]>

* Fix module loading logic

Signed-off-by: Igor Novgorodov <[email protected]>

* Improve multiple module loading

Signed-off-by: Igor Novgorodov <[email protected]>

* Add forgotten files

Signed-off-by: Igor Novgorodov <[email protected]>

* Fix linter errors

Signed-off-by: Igor Novgorodov <[email protected]>

* Reduce state in ModuleManager

Signed-off-by: Igor Novgorodov <[email protected]>

* Fix pkg/cortex & pkg/util/modules tests, make initModules() stateless, update docs

Signed-off-by: Igor Novgorodov <[email protected]>

* Fix missed mess with &c.Target pointer cast

Signed-off-by: Igor Novgorodov <[email protected]>

* Cosmetic changes to minimize diff

Signed-off-by: Igor Novgorodov <[email protected]>

* Fix problems with PR #3287

Signed-off-by: Igor Novgorodov <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Marco Pracucci <[email protected]>

* Update pkg/cortex/cortex_test.go

Signed-off-by: Marco Pracucci <[email protected]>

* Fixed linter

Signed-off-by: Marco Pracucci <[email protected]>

Co-authored-by: Marco Pracucci <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants