Skip to content

Commit

Permalink
remove debugging log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gcleroux committed Jan 21, 2025
1 parent da3d1f3 commit 64e6541
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/k8s-gateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: k8s-gateway
description: A fork of the k8s_gateway CoreDNS plugin to allow TXT records
type: application
version: 3.1.0
appVersion: 0.6.0
version: 3.1.1
appVersion: 0.6.1
maintainers:
- email: [email protected]
name: Guillaume
2 changes: 1 addition & 1 deletion charts/k8s-gateway/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
image:
registry: ghcr.io
repository: pinax-network/k8s_gateway
tag: v0.6.0
tag: v0.6.1
pullPolicy: IfNotPresent

# Delegated domain
Expand Down
2 changes: 0 additions & 2 deletions kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -744,15 +744,13 @@ func lookupIngressIndex(ctrl cache.SharedIndexInformer) func([]string) []interfa
obj, _ := ctrl.GetIndexer().ByIndex(ingressHostnameIndex, key)
objs = append(objs, obj...)

log.Debugf("No exact matches found for %s, looking for wildcard ingress host", key)
for len(objs) == 0 {
_, after, found := strings.Cut(key, ".")
if !found {
// No more wildcard recursion
break
}
key = after
log.Debugf("Looking for *.%s", key)
obj, _ := ctrl.GetIndexer().ByIndex(ingressHostnameIndex, "*."+key)
objs = append(objs, obj...)
}
Expand Down

0 comments on commit 64e6541

Please sign in to comment.