Matt Keeler 53fcc5d9a5
Add protoc generator to emit resource type variables (#18957)
The annotations include a little more data than is strictly necessary because we will also have a protoc generator for openapi output.
2023-09-21 17:18:47 -04:00

25 lines
564 B
Protocol Buffer

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
syntax = "proto3";
package hashicorp.consul.catalog.v1alpha1;
import "pbresource/annotations.proto";
message VirtualIPs {
option (hashicorp.consul.resource.spec) = {scope: SCOPE_NAMESPACE};
repeated IP ips = 1;
}
message IP {
// address is the string IPv4 address.
// This could also store IPv6 in the future.
string address = 1;
// generated indicates whether Consul generated or it is user-provided
// (e.g. a ClusterIP of the Kubernetes service).
bool generated = 2;
}