Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
628 changes: 628 additions & 0 deletions kubernetes/customresourcedefinitions.gen.yaml

Large diffs are not rendered by default.

61 changes: 61 additions & 0 deletions networking/v1alpha3/destination_rule.gen.json

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

1,025 changes: 896 additions & 129 deletions networking/v1alpha3/destination_rule.pb.go

Large diffs are not rendered by default.

178 changes: 177 additions & 1 deletion networking/v1alpha3/destination_rule.pb.html

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

53 changes: 53 additions & 0 deletions networking/v1alpha3/destination_rule.proto
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,8 @@ message LoadBalancerSettings {
// Locality load balancer settings, this will override mesh wide settings in entirety, meaning no merging would be performed
// between this object and the object one in MeshConfig
LocalityLoadBalancerSetting locality_lb_setting = 3;

LoadBalancerSubsetSetting lb_subset_setting = 4;
}

// Connection pool settings for an upstream host. The settings apply to
Expand Down Expand Up @@ -1069,3 +1071,54 @@ message LocalityLoadBalancerSetting{
// e.g. true means that turn on locality load balancing for this DestinationRule no matter what mesh wide settings is.
google.protobuf.BoolValue enabled = 3;
}

// Locality load balancing settings.
message LoadBalancerSubsetSetting {

// If NO_FALLBACK is selected, a result
// equivalent to no healthy hosts is reported. If ANY_ENDPOINT is selected,
// any cluster endpoint may be returned (subject to policy, health checks,
// etc). If DEFAULT_SUBSET is selected, load balancing is performed over the
// endpoints matching the values from the default_subset field.
enum LbSubsetFallbackPolicy {
NO_FALLBACK = 0;
ANY_ENDPOINT = 1;
DEFAULT_SUBSET = 2;
};

LbSubsetFallbackPolicy fallback_policy = 1;

// Metadata on endpoint
map<string, string> metadata = 2;

// Specifications for subsets.
message SubsetSelector{
// Allows to override top level fallback policy per selector.
enum SubsetSelectorFallbackPolicy {
// If NOT_DEFINED top level config fallback policy is used instead.
NOT_DEFINED = 0;

// If NO_FALLBACK is selected, a result equivalent to no healthy hosts is reported.
NO_FALLBACK = 1;

// If ANY_ENDPOINT is selected, any cluster endpoint may be returned
// (subject to policy, health checks, etc).
ANY_ENDPOINT = 2;

// If DEFAULT_SUBSET is selected, load balancing is performed over the
// endpoints matching the values from the default_subset field.
DEFAULT_SUBSET = 3;
}

// List of keys to match with the weighted cluster metadata.
repeated string keys = 1;

// The behavior used when no endpoint subset matches the selected route's
// metadata.
SubsetSelectorFallbackPolicy fallback_policy = 2;
};

// One or more subset selectors
repeated SubsetSelector subset_selectors = 3;
}

42 changes: 42 additions & 0 deletions networking/v1alpha3/destination_rule_deepcopy.gen.go

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

Loading