Skip to content

Commit

Permalink
Merge pull request #90 from slok/slok/fix-extra-labels
Browse files Browse the repository at this point in the history
Fix extra-labels on generate CLI command
  • Loading branch information
slok authored Jun 12, 2021
2 parents 673f532 + 82fd764 commit 2e8ddbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Changed

- Fix CLI `--extra-labels` not being used.

## [v0.3.0] - 2021-06-10

### Added
Expand Down
5 changes: 3 additions & 2 deletions cmd/sloth/commands/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,9 @@ func (g generateCommand) generate(ctx context.Context, config RootConfig, info i
}

result, err := controller.Generate(ctx, generate.Request{
Info: info,
SLOGroup: slos,
ExtraLabels: g.extraLabels,
Info: info,
SLOGroup: slos,
})
if err != nil {
return nil, fmt.Errorf("could not generate prometheus rules: %w", err)
Expand Down

0 comments on commit 2e8ddbc

Please sign in to comment.