Skip to content

Commit

Permalink
pr(anns) use consistent pluralization
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Raines committed Oct 28, 2020
1 parent e59bd23 commit ad6632b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/ingress/annotations/annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const (
RegexPriorityKey = "/regex-priority"
HostHeaderKey = "/host-header"
MethodsKey = "/methods"
SNIKey = "/snis"
SNIsKey = "/snis"

// DefaultIngressClass defines the default class used
// by Kong's ingress controller.
Expand Down Expand Up @@ -207,9 +207,9 @@ func ExtractMethods(anns map[string]string) []string {
return strings.Split(val, ",")
}

// ExtractSNI extracts the route SNI match criteria annotation value.
// ExtractSNIs extracts the route SNI match criteria annotation value.
func ExtractSNIs(anns map[string]string) ([]string, bool) {
val, exists := anns[AnnotationPrefix+SNIKey]
val, exists := anns[AnnotationPrefix+SNIsKey]
if val == "" {
return []string{}, exists
}
Expand Down

0 comments on commit ad6632b

Please sign in to comment.