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

feat(kuma-cp) introduce 'healthy_panic_theshold' for HealthCheck policy #1625

Merged
merged 2 commits into from
Mar 5, 2021

Conversation

lobkovilya
Copy link
Contributor

@lobkovilya lobkovilya commented Mar 3, 2021

Summary

Extend Kuma HealthCheck policy with 2 optional fields:

Documentation

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
@lobkovilya lobkovilya requested a review from a team as a code owner March 3, 2021 14:32
ZoneAwareLbConfig: &envoy_api.Cluster_CommonLbConfig_ZoneAwareLbConfig{},
}
}
cluster.CommonLbConfig.GetZoneAwareLbConfig().FailTrafficOnPanic = value.GetValue()
Copy link
Contributor

Choose a reason for hiding this comment

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

So is this the only other option if cluster.CommonLbConfig.GetLocalityWeightedLbConfig() is empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is a good point, now there are only 2 options, but it might change. So I added nil-check, thanks!

Copy link
Contributor

@bartsmykla bartsmykla left a comment

Choose a reason for hiding this comment

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

Just a nit, except that lgtm

}

BeforeEach(func() {
universalCluster = NewUniversalCluster(NewTestingT(), Kuma1, Verbose)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should it be Verbose, when in other tests we are using Silent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I did it for debugging, changed to Silent thanks!

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
@lobkovilya lobkovilya merged commit 3200657 into master Mar 5, 2021
@lobkovilya lobkovilya deleted the feat/hc-panic branch March 5, 2021 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants