mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 05:23:04 +00:00
[NET-7106] Add kubebuilder validation annotations to ExportedServicesConsumer proto (#20126)
* Add kubebuilder annotations for validation of ExportedServicesConsumer * Generate proto
This commit is contained in:
parent
131ef2a133
commit
670b140d87
@ -23,6 +23,9 @@ const (
|
|||||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// +kubebuilder:validation:Type=object
|
||||||
|
// +kubebuilder:validation:Schemaless
|
||||||
|
// +kubebuilder:pruning:PreserveUnknownFields
|
||||||
type ExportedServicesConsumer struct {
|
type ExportedServicesConsumer struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
|
@ -5,6 +5,9 @@ syntax = "proto3";
|
|||||||
|
|
||||||
package hashicorp.consul.multicluster.v2beta1;
|
package hashicorp.consul.multicluster.v2beta1;
|
||||||
|
|
||||||
|
// +kubebuilder:validation:Type=object
|
||||||
|
// +kubebuilder:validation:Schemaless
|
||||||
|
// +kubebuilder:pruning:PreserveUnknownFields
|
||||||
message ExportedServicesConsumer {
|
message ExportedServicesConsumer {
|
||||||
oneof consumer_tenancy {
|
oneof consumer_tenancy {
|
||||||
string peer = 1;
|
string peer = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user