Skip to content

Commit

Permalink
move vmtype and lbconfig to clusterconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Lily Pan committed Mar 27, 2024
1 parent 8bf7226 commit 96b373c
Show file tree
Hide file tree
Showing 6 changed files with 290 additions and 491 deletions.
349 changes: 273 additions & 76 deletions pkg/proto/nbcontract/v1/clusterconfig.pb.go

Large diffs are not rendered by default.

20 changes: 17 additions & 3 deletions pkg/proto/nbcontract/v1/clusterconfig.proto
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
syntax = "proto3";
package nbcontract.v1;

import "pkg/proto/nbcontract/v1/loadbalancerconfig.proto";
import "pkg/proto/nbcontract/v1/vmtype.proto";

// Cluster Config fields stored in azure.json used by cloud-provider-azure
message ClusterConfig {
string resource_group = 1;
Expand All @@ -16,11 +13,28 @@ message ClusterConfig {
LoadBalancerConfig load_balancer_config = 8;
}

enum VmType {
VM_TYPE_UNSPECIFIED = 0;
VM_TYPE_STANDARD = 1;
VM_TYPE_VMSS = 2;
}

message ClusterNetworkConfig {
string vnet_name = 1;
string vnet_resource_group = 2;
string subnet = 3;
string security_group_name = 4;
string route_table = 5;
}

message LoadBalancerConfig {
LoadBalancerSku load_balancer_sku = 1;
bool exclude_master_from_standard_load_balancer = 2;
int32 max_load_balancer_rule_count = 3;
}

enum LoadBalancerSku {
LOAD_BALANCER_SKU_UNSPECIFIED = 0;
LOAD_BALANCER_SKU_BASIC = 1; // to be confirmed
LOAD_BALANCER_SKU_STANDARD = 2;
}
245 changes: 0 additions & 245 deletions pkg/proto/nbcontract/v1/loadbalancerconfig.pb.go

This file was deleted.

14 changes: 0 additions & 14 deletions pkg/proto/nbcontract/v1/loadbalancerconfig.proto

This file was deleted.

Loading

0 comments on commit 96b373c

Please sign in to comment.