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

[Message] deprecate kubernetes_force_watch, use k8s_watch_policy #5934

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion message/trident.proto
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ message TsdbReportInfo {
optional string pcap_data_mount_path = 4;
}

enum K8sWatchPolicy {
UNKNOWN = 0; // Environment variable K8S_WATCH_POLICY does not exist
ONLY_WATCH = 1;
WATCH_DISABLED = 2;
}

message SyncRequest {
optional uint32 boot_time = 1;
optional bool config_accepted = 2 [default = true];
Expand All @@ -95,9 +101,10 @@ message SyncRequest {
repeated string host_ips = 23; // 仅作为注册使用
optional string ctrl_mac = 25;
optional string vtap_group_id_request = 26; // 支持采集器自动加入组
optional bool kubernetes_force_watch = 27 [default = false];
optional bool kubernetes_force_watch = 27 [default = false]; // deprecated, use k8s_watch_policy
optional AgentIdentifier agent_unique_identifier = 28 [default = IP_AND_MAC];
optional string team_id = 29; // agent team identity
optional K8sWatchPolicy k8s_watch_policy = 30 [default = UNKNOWN];

repeated CommunicationVtap communication_vtaps = 31; // 仅对数据节点有意义

Expand Down