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

optimizing NB contract including CustomLinuxOSConfig and others #4214

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
222 changes: 71 additions & 151 deletions pkg/proto/nbcontract/v1/config.pb.go

Large diffs are not rendered by default.

25 changes: 12 additions & 13 deletions pkg/proto/nbcontract/v1/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,21 @@ message Configuration {
// custom_search_domain specifies the custom search domain configuration
CustomSearchDomain custom_search_domain = 46;
optional CustomLinuxOSConfig custom_linux_os_config = 47;

//we do not need these in the final contract, these are consts
string cse_helper_filepath = 49;
string cse_distro_helper_filepath = 50;
string cse_install_filepath = 51;
string cse_distro_install_filepath = 52;
string cse_config_filepath = 53;

string dhcpv6_service_filepath = 54;
string dhcpv6_config_filepath = 55;

// azure_private_registry_server specifies the Azure private registry server
string azure_private_registry_server = 56;

// private_egress_proxy_address specifies the private egress proxy address
string private_egress_proxy_address = 57;
FeatureState artifact_streaming_enabled = 58;
bool is_kata = 59; // we can calculate this on the VHD, will remove from final contract
bool needs_cgroupv2 = 60; // we can calculate this on the VHD, will remove from final contract

// enable_artifact_streaming specifies whether artifact streaming is enabled or disabled on the VM node
bool enable_artifact_streaming = 58;

// is_kata specifies whether the node is a Kata node
bool is_kata = 59;

// needs_cgroupv2 specifies whether the node needs cgroupv2
bool needs_cgroupv2 = 60;

// Here begins the final contract
optional HTTPProxyConfig http_proxy_config = 61;
Expand Down
392 changes: 192 additions & 200 deletions pkg/proto/nbcontract/v1/customlinuxosconfig.pb.go

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions pkg/proto/nbcontract/v1/customlinuxosconfig.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@ package nbcontract.v1;
// Custom Linux Node OS Config
message CustomLinuxOSConfig {
// The size in MB of a swap file that will be created on each node
optional int32 swap_file_size = 1;
int32 swap_file_size = 1;

// Valid values are "always", "defer", "defer+madvise", "madvise" and "never"
optional string transparent_hugepage_support = 2;
string transparent_hugepage_support = 2;

// Valid values are "always", "madvise" and "never"
optional string transparent_defrag = 3;
string transparent_defrag = 3;

// Sysctl settings for Linux agent nodes
optional SysctlConfig sysctl_config = 4;
SysctlConfig sysctl_config = 4;

// Ulimit settings for Linux agent nodes
optional UlimitConfig ulimit_config = 5;
UlimitConfig ulimit_config = 5;
}

message SysctlConfig {
// using optional here to allow detecting if the field is set or not (explicit presence in proto3)
optional int32 NetCoreSomaxconn = 1;
optional int32 NetCoreNetdevMaxBacklog = 2;
optional int32 NetCoreRmemDefault = 3;
Expand Down Expand Up @@ -51,6 +52,7 @@ message SysctlConfig {
}

message UlimitConfig {
// using optional here to allow detecting if the field is set or not (explicit presence in proto3)
optional string NoFile = 1;
optional string MaxLockedMemory = 2;
}
115 changes: 49 additions & 66 deletions pkg/proto/nbcontract/v1/kubeletconfig.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions pkg/proto/nbcontract/v1/kubeletconfig.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ message KubeletConfig {
repeated Taint startup_taints = 4;
KubeletDiskType kubelet_disk_type = 5;

// kubelet_config_file_status specifies if the kubelet_config_file_content should be applied.
FeatureState kubelet_config_file_status = 6;

// kubelet_config_file_content is the content of the kubelet config file.
string kubelet_config_file_content = 7;
string kubelet_client_key = 8;
string kubelet_client_cert_content = 9;
string kubelet_config_file_content = 6;
string kubelet_client_key = 7;
string kubelet_client_cert_content = 8;
}

message Taint {
Expand Down
Loading
Loading