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

[Heartbeat] Whitelist --index-management flag for heartbeat #13016

Merged
merged 2 commits into from
Jul 23, 2019

Conversation

andrewvc
Copy link
Contributor

We received a bug report on discuss about this key being missing. It should have been added with #11856 but was missed.

I haven't added tests here because this code is already very declarative. We mostly want to test the presence of this feature, not its implementation. While that has value here, the effort/benefit ratio here feels to me like something we can skip, which is what we did for @ruflin 's original PR.

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.
@andrewvc andrewvc added bug Heartbeat Team:obs-ds-hosted-services Label for the Observability Hosted Services team labels Jul 22, 2019
@andrewvc andrewvc requested a review from simitt July 22, 2019 16:20
@andrewvc andrewvc requested a review from a team as a code owner July 22, 2019 16:20
@andrewvc andrewvc self-assigned this Jul 22, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/uptime

@@ -49,6 +49,7 @@ 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().Bool(cmd.TemplateKey, false, "Setup index template")
setup.Flags().Bool(cmd.ILMPolicyKey, false, "Setup ILM policy")
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest to also deprecate --template and --ilm-policy by setting something like:

setup.Flags().MarkDeprecated(cmd.TemplateKey, fmt.Sprintf("use --%s instead", cmd.IndexManagementKey))
setup.Flags().MarkDeprecated(cmd.ILMPolicyKey, fmt.Sprintf("use --%s instead", cmd.IndexManagementKey))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @simitt , pushed up a fix

@andrewvc
Copy link
Contributor Author

Filebeat test failure is unrelated. Should be ready for final review.

@andrewvc andrewvc merged commit d43ec5e into elastic:master Jul 23, 2019
@andrewvc andrewvc deleted the add-missing-index-management-key branch July 23, 2019 19:56
andrewvc added a commit to andrewvc/beats that referenced this pull request Jul 23, 2019
…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

(cherry picked from commit d43ec5e)
andrewvc added a commit to andrewvc/beats that referenced this pull request Jul 23, 2019
…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

(cherry picked from commit d43ec5e)
andrewvc added a commit that referenced this pull request Jul 23, 2019
…13042)

* [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 #11856 but was missed.

* Deprecate old keys

(cherry picked from commit d43ec5e)
andrewvc added a commit that referenced this pull request Jul 23, 2019
…13043)

* [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 #11856 but was missed.

* Deprecate old keys

(cherry picked from commit d43ec5e)
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…13016) (elastic#13043)

* [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

(cherry picked from commit cc196f8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants