Skip to content

ParentReference.Namespace has unnecessary pointer to string. #1220

@briantkennedy

Description

@briantkennedy

https://github.com/kubernetes-sigs/gateway-api/blob/master/apis/v1beta1/shared_types.go#L48

"Namespace is the namespace of the referent. When unspecified (or empty string), this refers to the local namespace of the Route."

Given that the zero value in Go for a string type is empty string, there's no need for ParentReference.Namespace to be of type *string, rather, string would have the same interface with a simpler implementation.

Metadata

Metadata

Assignees

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions