<commit_before>// This proto is expected to be provided on disk or via the command-line to
// Envoy. It provides sufficient information for Envoy to fetch the rest of
// its configuration from either disk or management server(s).

syntax = "proto3";

package envoy.api.v2;

import "api/base.proto";
import "api/cds.proto";

message Bootstrap {
  // Node identity to present to the management server and for instance
  // identification purposes (e.g. in generated headers).
  Node node = 1;
  // All Listeners are provided by a single LDS configuration source.
  ConfigSource lds_config = 2;
  // All post-bootstrap Cluster definitions are provided by a single CDS
  // configuration source.
  ConfigSource cds_config = 3;
  // A single ADS source may be optionally specified. This must have api_type GRPC.
  ApiConfigSource ads_config = 4;
  // If a network based configuration source is specified for cds_config, it's
  // necessary to have some initial cluster definitions available to allow Envoy
  // to know how to speak to the management server. These cluster definitions
  // may not use EDS (i.e. they should be static IP or DNS-based).
  repeated Cluster bootstrap_clusters = 5;
  // TODO(htuch): Add support for HDS.
}
<commit_msg>Adding a "bind to address" to the bootstrap proto (#136)<commit_after>// This proto is expected to be provided on disk or via the command-line to
// Envoy. It provides sufficient information for Envoy to fetch the rest of
// its configuration from either disk or management server(s).

syntax = "proto3";

package envoy.api.v2;

import "api/address.proto";
import "api/base.proto";
import "api/cds.proto";

// An extensible structure containing the address Envoy should bind to when establishing upstream
// connections.
message UpstreamBindConfig {
  // The address Envoy should bind to when establishing upstream connections.
  ResolvedAddress source_address = 1;
}

message Bootstrap {
  // Node identity to present to the management server and for instance
  // identification purposes (e.g. in generated headers).
  Node node = 1;
  // All Listeners are provided by a single LDS configuration source.
  ConfigSource lds_config = 2;
  // All post-bootstrap Cluster definitions are provided by a single CDS
  // configuration source.
  ConfigSource cds_config = 3;
  // A single ADS source may be optionally specified. This must have api_type GRPC.
  ApiConfigSource ads_config = 4;
  // If a network based configuration source is specified for cds_config, it's
  // necessary to have some initial cluster definitions available to allow Envoy
  // to know how to speak to the management server. These cluster definitions
  // may not use EDS (i.e. they should be static IP or DNS-based).
  repeated Cluster bootstrap_clusters = 5;
  // Optional configuration used to bind newly established upstream connections.
  UpstreamBindConfig upstream_bind_config = 6;
  // TODO(htuch): Add support for HDS.
}

{'fraction_non_alphanumeric': 0.06893039049235994, 'fraction_numerical': 0.0064516129032258064, 'mean_word_length': 3.6985645933014353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7348204', 'n_tokens_mistral': 800, 'n_tokens_neox': 763, 'n_words': 380}