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

Only configure Stack Monitoring if association reconciled #5339

Merged

Conversation

thbkrkr
Copy link
Contributor

@thbkrkr thbkrkr commented Feb 7, 2022

Currently, if a referenced monitoring Elasticsearch does not exist, Stack Monitoring is still configured with empty values in beat configs causing the beats to CrashLoopBackOff.

This happens only for ES-ES. For KB-ES, the call to AllowVersion() checks that assoc.AssociationConf() != nil, so the reconciliation is aborted if the association is not yet configured. I fixed both for consistency.

@thbkrkr thbkrkr added >bug Something isn't working v2.1.0 labels Feb 7, 2022
@thbkrkr
Copy link
Contributor Author

thbkrkr commented Feb 8, 2022

Jenkins test this please

Copy link
Collaborator

@pebrc pebrc left a comment

Choose a reason for hiding this comment

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

LGTM and works I did a quick test, with a release version of ECK versus your PR. 👍

pkg/controller/common/stackmon/monitoring/monitoring.go Outdated Show resolved Hide resolved
@thbkrkr thbkrkr merged commit 0702e0d into elastic:main Feb 15, 2022
@thbkrkr thbkrkr deleted the configure-stack-mon-only-if-assoc-configured branch March 22, 2022 16:36
fantapsody pushed a commit to fantapsody/cloud-on-k8s that referenced this pull request Feb 7, 2023
Currently, if a referenced monitoring Elasticsearch does not exist, Stack Monitoring is still configured with empty values in beat configs causing the beats to enter in state `CrashLoopBackOff`.
This happens only for ES-ES. For KB-ES, the call to `AllowVersion()` checks that `assoc.AssociationConf() != nil`, so the reconciliation is aborted if the association is not yet configured. This commits fixes both for consistency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Something isn't working v2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants