2023-08-03 18:42:04 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-21 17:31:54 +00:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
2023-08-03 18:42:04 +00:00
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
|
2023-09-22 16:51:15 +00:00
|
|
|
package hashicorp.consul.mesh.v2beta1;
|
2023-08-03 18:42:04 +00:00
|
|
|
|
|
|
|
import "pbresource/resource.proto";
|
|
|
|
|
|
|
|
// NOTE: roughly equivalent to structs.ResourceReference
|
|
|
|
message ParentReference {
|
2023-10-13 14:55:58 +00:00
|
|
|
// For east/west configuration, this should point to a Service.
|
|
|
|
// For north/south it should point to a Gateway.
|
2023-08-03 18:42:04 +00:00
|
|
|
hashicorp.consul.resource.Reference ref = 1;
|
|
|
|
|
2023-09-22 23:41:49 +00:00
|
|
|
// For east/west this is the name of the Consul Service port to direct traffic to
|
|
|
|
// or empty to imply all.
|
|
|
|
// For north/south this is TBD.
|
2024-01-29 18:43:41 +00:00
|
|
|
//
|
|
|
|
// For more details on potential values of this field, see documentation for
|
|
|
|
// Service.ServicePort.
|
2023-08-03 18:42:04 +00:00
|
|
|
string port = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message BackendReference {
|
2023-10-13 14:55:58 +00:00
|
|
|
// For east/west configuration, this should point to a Service.
|
2023-08-03 18:42:04 +00:00
|
|
|
hashicorp.consul.resource.Reference ref = 1;
|
|
|
|
|
2023-09-22 23:41:49 +00:00
|
|
|
// For east/west this is the name of the Consul Service port to direct traffic to
|
|
|
|
// or empty to imply using the same value as the parent ref.
|
|
|
|
// For north/south this is TBD.
|
2024-01-29 18:43:41 +00:00
|
|
|
//
|
|
|
|
// For more details on potential values of this field, see documentation for
|
|
|
|
// Service.ServicePort.
|
2023-09-22 23:41:49 +00:00
|
|
|
string port = 2;
|
2023-08-03 18:42:04 +00:00
|
|
|
string datacenter = 3;
|
|
|
|
}
|