2023-05-05 13:47:28 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-21 17:31:54 +00:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
2023-05-05 13:47:28 +00:00
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
|
2023-09-22 16:51:15 +00:00
|
|
|
package hashicorp.consul.mesh.v2beta1;
|
2023-05-05 13:47:28 +00:00
|
|
|
|
|
|
|
message ExposeConfig {
|
|
|
|
repeated ExposePath expose_paths = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExposePath {
|
|
|
|
uint32 listener_port = 1;
|
|
|
|
string path = 2;
|
|
|
|
uint32 local_path_port = 3;
|
2023-10-12 01:23:16 +00:00
|
|
|
ExposePathProtocol protocol = 4;
|
|
|
|
}
|
|
|
|
|
2023-10-13 14:55:58 +00:00
|
|
|
// +kubebuilder:validation:Enum=EXPOSE_PATH_PROTOCOL_HTTP;EXPOSE_PATH_PROTOCOL_HTTP2
|
|
|
|
// +kubebuilder:validation:Type=string
|
2023-10-12 01:23:16 +00:00
|
|
|
enum ExposePathProtocol {
|
|
|
|
// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
|
|
|
|
EXPOSE_PATH_PROTOCOL_HTTP = 0;
|
|
|
|
EXPOSE_PATH_PROTOCOL_HTTP2 = 1;
|
2023-05-05 13:47:28 +00:00
|
|
|
}
|