Browse Source

Use split wildcard partition name

This way OSS avoids passing a non-empty label, which will be rejected in
OSS consul.
pull/14981/head
freddygv 2 years ago
parent
commit
bf51021c07
  1. 1
      acl/acl_oss.go
  2. 3
      agent/proxycfg/mesh_gateway.go

1
acl/acl_oss.go

@ -4,6 +4,7 @@
package acl
const (
WildcardPartitionName = ""
DefaultPartitionName = ""
)

3
agent/proxycfg/mesh_gateway.go

@ -9,6 +9,7 @@ import (
"strings"
"time"
"github.com/hashicorp/consul/acl"
"github.com/hashicorp/go-hclog"
cachetype "github.com/hashicorp/consul/agent/cache-types"
@ -564,7 +565,7 @@ func (s *handlerMeshGateway) handleUpdate(ctx context.Context, u UpdateEvent, sn
peeringListCtx, cancel := context.WithCancel(ctx)
err := s.dataSources.PeeringList.Notify(peeringListCtx, &cachetype.PeeringListRequest{
Request: &pbpeering.PeeringListRequest{
Partition: structs.WildcardSpecifier,
Partition: acl.WildcardPartitionName,
},
}, peerServersWatchID, s.ch)
if err != nil {

Loading…
Cancel
Save