mesh: add ComputedImplicitDestinations resource for future use

Also:

- Add some v2 TestController machinery to help test complex
  dependency mappers.
pull/20593/head
R.B. Boyer 10 months ago committed by Chris S. Kim
parent 671c436415
commit dc685df58e

@ -0,0 +1,19 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package authv2beta1
import (
pbresource "github.com/hashicorp/consul/proto-public/pbresource"
)
func (src *Source) GetWorkloadIdentityReference() *pbresource.Reference {
return &pbresource.Reference{
Type: WorkloadIdentityType,
Name: src.IdentityName,
Tenancy: &pbresource.Tenancy{
Partition: src.Partition,
Namespace: src.Namespace,
},
}
}

@ -20,6 +20,7 @@ const (
DestinationsConfigurationKind = "DestinationsConfiguration"
GRPCRouteKind = "GRPCRoute"
HTTPRouteKind = "HTTPRoute"
ImplicitDestinationKind = "ImplicitDestination"
MeshConfigurationKind = "MeshConfiguration"
MeshGatewayKind = "MeshGateway"
ProxyConfigurationKind = "ProxyConfiguration"
@ -88,6 +89,12 @@ var (
Kind: HTTPRouteKind,
}
ImplicitDestinationType = &pbresource.Type{
Group: GroupName,
GroupVersion: Version,
Kind: ImplicitDestinationKind,
}
MeshConfigurationType = &pbresource.Type{
Group: GroupName,
GroupVersion: Version,

Loading…
Cancel
Save