Skip to content

Commit

Permalink
Backport/squashing fix for enterprise meta (#16651)
Browse files Browse the repository at this point in the history
* Backport squash structures for config entries

* Add changelog

* Rename changelog file for current PR

* change changelog file name

* Add enterprise only tag to changelog

* Fix changelog
  • Loading branch information
jm96441n authored Mar 20, 2023
1 parent 9e88415 commit 70b8c6b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/16651.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
gateway: **(Enterprise only)** Fix bug where namespace/partition would fail to unmarshal.
```
5 changes: 3 additions & 2 deletions agent/structs/config_entry_routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"fmt"
"strings"

"github.com/hashicorp/consul/acl"
"github.com/miekg/dns"

"github.com/hashicorp/consul/acl"
)

// BoundRoute indicates a route that has parent gateways which
Expand Down Expand Up @@ -443,7 +444,7 @@ type HTTPService struct {
// to routing it to the upstream service
Filters HTTPFilters

acl.EnterpriseMeta
acl.EnterpriseMeta `hcl:",squash" mapstructure:",squash"`
}

func (s HTTPService) ServiceName() ServiceName {
Expand Down
2 changes: 1 addition & 1 deletion agent/structs/config_entry_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type ResourceReference struct {
// unused, this should be blank.
SectionName string

acl.EnterpriseMeta
acl.EnterpriseMeta `hcl:",squash" mapstructure:",squash"`
}

func (r *ResourceReference) String() string {
Expand Down

0 comments on commit 70b8c6b

Please sign in to comment.