mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 11:40:06 +00:00
Net 6439 (#19517)
* node health controller tenancy * some prog * some fixes * revert * pr comment resolved * removed name * Add namespace and tenancy in sidecar proxy controller test * revert node health controller * clean up data * fix local * copy from ENT * removed dup code * removed tenancy * add test tenancies
This commit is contained in:
parent
2296bd5c9a
commit
515eed8c7c
File diff suppressed because it is too large
Load Diff
@ -43,6 +43,22 @@ func Resource(rtype *pbresource.Type, name string) *resourceBuilder {
|
||||
}
|
||||
}
|
||||
|
||||
func ResourceWithTenancy(rtype *pbresource.Type, name string, tenancy *pbresource.Tenancy) *resourceBuilder {
|
||||
return &resourceBuilder{
|
||||
resource: &pbresource.Resource{
|
||||
Id: &pbresource.ID{
|
||||
Type: &pbresource.Type{
|
||||
Group: rtype.Group,
|
||||
GroupVersion: rtype.GroupVersion,
|
||||
Kind: rtype.Kind,
|
||||
},
|
||||
Name: name,
|
||||
Tenancy: tenancy,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func ResourceID(id *pbresource.ID) *resourceBuilder {
|
||||
return &resourceBuilder{
|
||||
resource: &pbresource.Resource{
|
||||
|
Loading…
x
Reference in New Issue
Block a user