mirror of https://github.com/hashicorp/consul
Also: - Add some v2 TestController machinery to help test complex dependency mappers.pull/20593/head
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,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue