Skip to content

Commit

Permalink
[Heartbeat] Whitelist --index-management flag for heartbeat (elastic#…
Browse files Browse the repository at this point in the history
…13016)

* [Heartbeat] Whitelist --index-management flag for heartbeat

We received a bug report on [discuss](https://discuss.elastic.co/t/heartbeat-7-2-0-error-unknown-flag-index-management/191670) about this key being missing. It should have been added with elastic#11856 but was missed.

* Deprecate old keys
  • Loading branch information
andrewvc committed Jul 23, 2019
1 parent c476be4 commit cc196f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions heartbeat/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package cmd

import (
"fmt"
// register default heartbeat monitors
"github.com/elastic/beats/heartbeat/beater"
_ "github.com/elastic/beats/heartbeat/monitors/defaults"
Expand Down Expand Up @@ -49,6 +50,9 @@ func init() {
* ILM Policy
`
setup.ResetFlags()
setup.Flags().Bool(cmd.IndexManagementKey, false, "Setup all components related to Elasticsearch index management, including template, ilm policy and rollover alias")
setup.Flags().MarkDeprecated(cmd.TemplateKey, fmt.Sprintf("use --%s instead", cmd.IndexManagementKey))
setup.Flags().MarkDeprecated(cmd.ILMPolicyKey, fmt.Sprintf("use --%s instead", cmd.IndexManagementKey))
setup.Flags().Bool(cmd.TemplateKey, false, "Setup index template")
setup.Flags().Bool(cmd.ILMPolicyKey, false, "Setup ILM policy")
}

0 comments on commit cc196f8

Please sign in to comment.