Changes UA regex for Kube probe detection
Trying to stop Kubernetes' regular health check probes from loading an actual raw text request.
This commit is contained in:
parent
4ae545d514
commit
4bf2f67410
|
@ -178,7 +178,7 @@ func isDisallowedUserAgent(userAgent string) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func isKubeReadinessProbe(userAgent string) bool {
|
func isKubeReadinessProbe(userAgent string) bool {
|
||||||
r, _ := regexp.Compile("kube-probe")
|
r, _ := regexp.Compile("GoogleHC")
|
||||||
if r.MatchString(userAgent) {
|
if r.MatchString(userAgent) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue