-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add load_assignment field in Cluster #3504
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ import "envoy/api/v2/core/health_check.proto"; | |
import "envoy/api/v2/core/protocol.proto"; | ||
import "envoy/api/v2/cluster/circuit_breaker.proto"; | ||
import "envoy/api/v2/cluster/outlier_detection.proto"; | ||
import "envoy/api/v2/eds.proto"; | ||
import "envoy/type/percent.proto"; | ||
|
||
import "google/api/annotations.proto"; | ||
|
@@ -41,7 +42,7 @@ service ClusterDiscoveryService { | |
// [#protodoc-title: Clusters] | ||
|
||
// Configuration for a single upstream cluster. | ||
// [#comment:next free field: 32] | ||
// [#comment:next free field: 34] | ||
message Cluster { | ||
// Supplies the name of the cluster which must be unique across all clusters. | ||
// The cluster name is used when emitting | ||
|
@@ -157,6 +158,21 @@ message Cluster { | |
// then hosts is required. | ||
repeated core.Address hosts = 7; | ||
|
||
// Setting this is required for specifying members of | ||
// :ref:`STATIC<envoy_api_enum_value_Cluster.DiscoveryType.STATIC>`, | ||
// :ref:`STRICT_DNS<envoy_api_enum_value_Cluster.DiscoveryType.STRICT_DNS>` | ||
// or :ref:`LOGICAL_DNS<envoy_api_enum_value_Cluster.DiscoveryType.LOGICAL_DNS>` clusters. | ||
// This field supersedes :ref:`hosts<envoy_api_field_Cluster.hosts>` field. | ||
// | ||
// .. attention:: | ||
// | ||
// Setting this allows CDS static/DNS assignments to contain embedded EDS equivalent | ||
// :ref:`endpoint assignments<envoy_api_msg_ClusterLoadAssignment>`. | ||
// Setting this overrides :ref:`hosts<envoy_api_field_Cluster.hosts>` values. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dio can you make a note to deprecate the hosts field and add to deprecated.md when you do the PR implementing this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, 2ab4f13. Thanks for reminding me. |
||
// | ||
// [#not-implemented-hide:] | ||
ClusterLoadAssignment load_assignment = 33; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the discussion at https://github.com/envoyproxy/envoy/pull/3261/files#r188243657 still applies. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @zuercher thanks, will update it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated in 0001298. |
||
|
||
// Optional :ref:`active health checking <arch_overview_health_checking>` | ||
// configuration for the cluster. If no | ||
// configuration is specified no health checking will be done and all cluster | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"CDS static/DNS" is a bit confusing to read. Can you rephrase? Do you mean "Setting this allows non-EDS cluster types to contain..." ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated f5783e9