Commit 67ed90a
committed
test/kubernetes: use zero-value TextParser until prometheus/common is bumped
expfmt.NewTextParser was introduced in a later prometheus/common
release than the one pinned here (v0.59.1), so every CoreDNS PR
that runs the Kubernetes test step fails with:
./metrics_test.go:87:15: undefined: expfmt.NewTextParser
Revert that call site to the zero-value `var tp expfmt.TextParser`
pattern (which defaults to legacy validation) so the job compiles
on the currently pinned dependency. Once go.mod's prometheus/
common is bumped to a version that exports NewTextParser (see
coredns/coredns#7731), this can be re-applied without the compat
note.
Also drop the now-unused prometheus/common/model import.
Signed-off-by: SAY-5 <SAY-5@users.noreply.github.com>1 parent 326aa94 commit 67ed90a
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
88 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
0 commit comments