Skip to content

Commit

Permalink
chore: fix typos in godocs
Browse files Browse the repository at this point in the history
Co-authored-by: Mattia Lavacca <lavacca.mattia@gmail.com>
  • Loading branch information
shaneutt and mlavacca committed Sep 21, 2023
1 parent f9ea74b commit 4c5425f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apis/v1beta1/gateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ type GatewayAddress struct {
Value string `json:"value"`
}

// GatewayStatusAddress describes an network address that is bound to a Gateway.
// GatewayStatusAddress describes a network address that is bound to a Gateway.
//
// +kubebuilder:validation:XValidation:message="Hostname value must only contain valid characters (matching ^(\\*\\.)?[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$)",rule="self.type == 'Hostname' ? self.value.matches(r\"\"\"^(\\*\\.)?[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$\"\"\"): true"
type GatewayStatusAddress struct {
Expand Down
4 changes: 2 additions & 2 deletions conformance/utils/kubernetes/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ func getContentsFromPathOrURL(fs embed.FS, location string, timeoutConfig config
return bytes.NewBuffer(b), nil
}

// convertGatewayAddrsToPrimitives converts a slice of Gateway addresses and
// to a slice of primite types and then returns them as a []interface{} so that
// convertGatewayAddrsToPrimitives converts a slice of Gateway addresses
// to a slice of primitive types and then returns them as a []interface{} so that
// they can be applied back to an unstructured Gateway.
func convertGatewayAddrsToPrimitives(gwaddrs []v1beta1.GatewayAddress) (raw []interface{}) {
for _, addr := range gwaddrs {
Expand Down

0 comments on commit 4c5425f

Please sign in to comment.