mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
ad06c96456
This commit adds a new type ComputedDestinations that will contain all destinations from any Destinations resources and will be name-aligned with a workload. This also adds an explicit-destinations controller that computes these resources. This is needed to simplify the tracking we need to do currently in the sidecar-proxy controller and makes it easier to query all explicit destinations that apply to a workload.
17 lines
460 B
Protocol Buffer
17 lines
460 B
Protocol Buffer
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
syntax = "proto3";
|
|
|
|
package hashicorp.consul.mesh.v2beta1;
|
|
|
|
import "pbmesh/v2beta1/destinations.proto";
|
|
import "pbresource/annotations.proto";
|
|
|
|
message ComputedExplicitDestinations {
|
|
option (hashicorp.consul.resource.spec) = {scope: SCOPE_NAMESPACE};
|
|
|
|
// destinations is the list of explicit destinations to define for the selected workloads.
|
|
repeated Destination destinations = 1;
|
|
}
|