diff --git a/cmd/resource-topology-exporter/main.go b/cmd/resource-topology-exporter/main.go index 1faaa5c6..51fa5d85 100644 --- a/cmd/resource-topology-exporter/main.go +++ b/cmd/resource-topology-exporter/main.go @@ -79,7 +79,7 @@ func main() { klog.Infof("terminal pods are filtered from the PodResourcesLister client") cli, err = terminalpods.NewFromLister(context.TODO(), cli, k8scli, time.Minute, parsedArgs.Global.Debug) if err != nil { - klog.Fatalf("failed to get PodResourceAPI client: %w", err) + klog.Fatalf("failed to get PodResourceAPI client: %v", err) } } diff --git a/pkg/metrics/server/setup.go b/pkg/metrics/server/setup.go index 79883faf..d877dd39 100644 --- a/pkg/metrics/server/setup.go +++ b/pkg/metrics/server/setup.go @@ -122,7 +122,7 @@ func PortFromEnv() int { } port, err := strconv.Atoi(envValue) if err != nil { - klog.Warningf("the env variable METRICS_PORT has inccorrect value %q: %w", envValue, err) + klog.Warningf("the env variable METRICS_PORT has inccorrect value %q: %v", envValue, err) return 0 } return port diff --git a/pkg/podres/middleware/podexclude/podexclude.go b/pkg/podres/middleware/podexclude/podexclude.go index b92282ce..dd2f1d43 100644 --- a/pkg/podres/middleware/podexclude/podexclude.go +++ b/pkg/podres/middleware/podexclude/podexclude.go @@ -112,7 +112,7 @@ func ShouldExclude(podExcludes List, namespace, name string, debug bool) bool { for _, item := range podExcludes { nsMatch, err := filepath.Match(item.NamespacePattern, namespace) if err != nil && debug { - klog.Warningf("match error: namespace glob=%q pod=%s/%: %v", item.NamespacePattern, namespace, name, err) + klog.Warningf("match error: namespace glob=%q pod=%s/%s: %v", item.NamespacePattern, namespace, name, err) continue } if !nsMatch { @@ -120,7 +120,7 @@ func ShouldExclude(podExcludes List, namespace, name string, debug bool) bool { } nMatch, err := filepath.Match(item.NamePattern, name) if err != nil && debug { - klog.Warningf("match error: name glob=%q pod=%s/%: %v", item.NamePattern, namespace, name, err) + klog.Warningf("match error: name glob=%q pod=%s/%s: %v", item.NamePattern, namespace, name, err) continue } if !nMatch {