2023-07-21 16:21:39 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-21 17:31:54 +00:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
2023-07-21 16:21:39 +00:00
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
|
2023-09-22 16:51:15 +00:00
|
|
|
package hashicorp.consul.mesh.v2beta1.pbproxystate;
|
2023-07-21 16:21:39 +00:00
|
|
|
|
|
|
|
import "google/protobuf/wrappers.proto";
|
2023-09-22 16:51:15 +00:00
|
|
|
import "pbmesh/v2beta1/pbproxystate/address.proto";
|
2023-07-21 16:21:39 +00:00
|
|
|
|
|
|
|
message Endpoints {
|
2023-08-01 17:35:17 +00:00
|
|
|
repeated Endpoint endpoints = 1;
|
2023-07-21 16:21:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Endpoint {
|
|
|
|
oneof address {
|
|
|
|
HostPortAddress host_port = 1;
|
|
|
|
UnixSocketAddress unix_socket = 2;
|
|
|
|
}
|
|
|
|
HealthStatus health_status = 3;
|
|
|
|
google.protobuf.UInt32Value load_balancing_weight = 4;
|
|
|
|
}
|
|
|
|
|
2023-10-13 14:55:58 +00:00
|
|
|
// +kubebuilder:validation:Enum=HEALTH_STATUS_UNKNOWN;HEALTH_STATUS_HEALTHY;HEALTH_STATUS_UNHEALTHY
|
|
|
|
// +kubebuilder:validation:Type=string
|
2023-07-21 16:21:39 +00:00
|
|
|
enum HealthStatus {
|
|
|
|
// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
|
|
|
|
HEALTH_STATUS_UNKNOWN = 0;
|
|
|
|
HEALTH_STATUS_HEALTHY = 1;
|
|
|
|
HEALTH_STATUS_UNHEALTHY = 2;
|
|
|
|
}
|