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

Loading…
Cancel
Save