Fix struct tags for TCPService enterprise meta (#16781)

* Fix struct tags for TCPService enterprise meta

* Add changelog
This commit is contained in:
John Maguire 2023-03-27 12:17:04 -04:00 committed by GitHub
parent 5cf24b4698
commit 74dfee9359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
.changelog/16781.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
gateway: **(Enterprise only)** Fix bug where namespace/partition would fail to unmarshal for TCPServices.
```

View File

@ -556,7 +556,7 @@ func (e *TCPRouteConfigEntry) CanWrite(authz acl.Authorizer) error {
type TCPService struct {
Name string
acl.EnterpriseMeta
acl.EnterpriseMeta `hcl:",squash" mapstructure:",squash"`
}
func (s TCPService) ServiceName() ServiceName {