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

Allow the collector run in the non-Kubernetes environment #285

Merged
merged 7 commits into from
Jul 1, 2022

Conversation

dxsup
Copy link
Member

@dxsup dxsup commented Jun 30, 2022

Description

Add a disable option, which is false by default, to the configuration of the kubernetesprocessor. If it is true, the kubernetesprocessor won't try to connect to the Kubernetes API-server and will just send the dataGroups it consumes to the next consumer.

Motivation and Context

Some users want to run the collector in the non-Kubernetes environment.

There is also another implementation that meets the requirement. If the kubernetesprocessor fails to connect the API-server when initializing, we don't panic the process and just send the data to the next consumer later. In this way, no option is added. But the problem is that the users don't know whether the connection is ok. By explicitly setting the disable option, the users know the behavior of the processor. So I prefer panicking the process to letting it run if the connection failed and the option is not set, in which way the users could know exactly what happened.

@dxsup dxsup requested a review from NeJan2020 June 30, 2022 13:06
Daxin Wang added 5 commits July 1, 2022 10:38
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
@dxsup dxsup force-pushed the allow-run-non-kubernetes-env branch from 94251d6 to 247ddb4 Compare July 1, 2022 02:39
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
NeJan2020
NeJan2020 previously approved these changes Jul 1, 2022
Copy link
Collaborator

@NeJan2020 NeJan2020 left a comment

Choose a reason for hiding this comment

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

LGTM

@dxsup dxsup merged commit 01771fe into KindlingProject:main Jul 1, 2022
@dxsup dxsup deleted the allow-run-non-kubernetes-env branch July 1, 2022 09:09
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.

2 participants