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

Loads schemacfg with correct flagset #2917

Merged
merged 1 commit into from
Jul 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/chunk/schema_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ type SchemaConfig struct {

// RegisterFlags adds the flags required to config this to the given FlagSet.
func (cfg *SchemaConfig) RegisterFlags(f *flag.FlagSet) {
flag.StringVar(&cfg.fileName, "schema-config-file", "", "The path to the schema config file.")
f.StringVar(&cfg.fileName, "schema-config-file", "", "The path to the schema config file.")
// TODO(gouthamve): Add a metric for this.
flag.StringVar(&cfg.legacyFileName, "config-yaml", "", "DEPRECATED(use -schema-config-file) The path to the schema config file.")
f.StringVar(&cfg.legacyFileName, "config-yaml", "", "DEPRECATED(use -schema-config-file) The path to the schema config file.")
}

// loadFromFile loads the schema config from a yaml file
Expand Down