mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Espaced '/' character in query to InfluxDB
This commit is contained in:
parent
ddcb605109
commit
0b798906e7
@ -124,7 +124,8 @@ func (s *influxdbSource) GetUsagePercentile(kind api.ResourceName, perc int64, i
|
|||||||
if exactMatch {
|
if exactMatch {
|
||||||
imgPattern = "='" + image + "'"
|
imgPattern = "='" + image + "'"
|
||||||
} else {
|
} else {
|
||||||
imgPattern = "=~/^" + image + "/"
|
// Escape character "/" in image pattern.
|
||||||
|
imgPattern = "=~/^" + strings.Replace(image, "/", "\\/", -1) + "/"
|
||||||
}
|
}
|
||||||
var namespaceCond string
|
var namespaceCond string
|
||||||
if namespace != "" {
|
if namespace != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user