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.catalog.v2beta1;
|
2023-05-05 13:47:28 +00:00
|
|
|
|
2023-09-22 16:51:15 +00:00
|
|
|
import "pbcatalog/v2beta1/selector.proto";
|
2023-09-21 21:18:47 +00:00
|
|
|
import "pbresource/annotations.proto";
|
2023-05-05 13:47:28 +00:00
|
|
|
|
|
|
|
message DNSPolicy {
|
2023-09-21 21:18:47 +00:00
|
|
|
option (hashicorp.consul.resource.spec) = {scope: SCOPE_NAMESPACE};
|
|
|
|
|
2023-05-05 13:47:28 +00:00
|
|
|
WorkloadSelector workloads = 1;
|
|
|
|
Weights weights = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Weights {
|
|
|
|
uint32 passing = 1;
|
|
|
|
uint32 warning = 2;
|
|
|
|
}
|