consul/proto-public/pbcatalog/v1alpha1/service_endpoints.proto
Iryna Shustava 3c70e14713
sidecar-proxy controller: L4 controller with explicit upstreams (NET-3988) (#18352)
* This controller generates and saves ProxyStateTemplate for sidecar proxies.
* It currently supports single-port L4 ports only.
* It keeps a cache of all destinations to make it easier to compute and retrieve destinations.
* It will update the status of the pbmesh.Upstreams resource if anything is invalid.
* This commit also changes service endpoints to include workload identity. This made the implementation a bit easier as we don't need to look up as many workloads and instead rely on endpoints data.
2023-09-07 09:37:15 -06:00

36 lines
1.0 KiB
Protocol Buffer

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
syntax = "proto3";
package hashicorp.consul.catalog.v1alpha1;
import "pbcatalog/v1alpha1/health.proto";
import "pbcatalog/v1alpha1/workload.proto";
import "pbresource/resource.proto";
message ServiceEndpoints {
repeated Endpoint endpoints = 1;
}
message Endpoint {
// target_ref is the reference to the resource
// for this endpoint endpoint. This currently must be a workload.
hashicorp.consul.resource.ID target_ref = 1;
// addresses is the list of addresses for this endpoint.
// This has the same structure as the workload addresses.
repeated WorkloadAddress addresses = 2;
// ports is the map of ports for this endpoint.
// This has the same structure as the workload ports but
// will be filtered to just the ports selected by the service.
map<string, WorkloadPort> ports = 3;
// health_status is the aggregated health status of this endpoint.
Health health_status = 4;
// identity is the name of the workload identity for this endpoint.
string identity = 5;
}