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

Fix e2e Local/Global tests #826

Merged
merged 9 commits into from
Jun 13, 2020
Merged

Fix e2e Local/Global tests #826

merged 9 commits into from
Jun 13, 2020

Conversation

nickolaev
Copy link
Contributor

@nickolaev nickolaev commented Jun 12, 2020

Summary

Changes the way Local/Global config is handled in kumactl and kuma-cp. Also fix testing to accommodate the Local/Global specifics.

Introduces SetupDiagnosticsServer as a way to spin up the server that handles readiness and health check probes for K8s. This is independent of setting up the XDS server, which is not needed in Global mode.

Nikolay Nikolaev added 8 commits June 12, 2020 17:19
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
@nickolaev nickolaev requested a review from a team June 12, 2020 14:39
if cfg.Mode != config_core.Global {
switch cfg.Mode {
case config_core.Standalone:
if cfg.Mode != config_core.Local {
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this if always true?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moving code around mistake. Good catch. Thanks.

Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
@nickolaev nickolaev merged commit 64bda6f into master Jun 13, 2020
@nickolaev nickolaev deleted the fix/e2e_local_global branch June 17, 2020 08:54
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

2 participants