Unverified Commit 9846a72e authored by Derek Nola's avatar Derek Nola Committed by GitHub

Bump spegel to v0.0.20-k3s1 (#9863)

* Bump spegel to v0.0.20-k3s1 * Remove deprecated libp2p Pretty function * Remove quic-go pin Pinned version is now out of date, indirect dependencies are now newer, with CVE issue fixed Signed-off-by: 's avatarDerek Nola <derek.nola@suse.com>
parent 0e118fe6
...@@ -15,7 +15,7 @@ import ( ...@@ -15,7 +15,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/rancher/wrangler/pkg/merr" "github.com/rancher/wrangler/pkg/merr"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/xenitab/spegel/pkg/routing" "github.com/spegel-org/spegel/pkg/routing"
v1 "k8s.io/api/core/v1" v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/labels"
......
...@@ -32,11 +32,11 @@ import ( ...@@ -32,11 +32,11 @@ import (
"github.com/libp2p/go-libp2p/p2p/host/peerstore/pstoreds" "github.com/libp2p/go-libp2p/p2p/host/peerstore/pstoreds"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/xenitab/spegel/pkg/metrics" "github.com/spegel-org/spegel/pkg/metrics"
"github.com/xenitab/spegel/pkg/oci" "github.com/spegel-org/spegel/pkg/oci"
"github.com/xenitab/spegel/pkg/registry" "github.com/spegel-org/spegel/pkg/registry"
"github.com/xenitab/spegel/pkg/routing" "github.com/spegel-org/spegel/pkg/routing"
"github.com/xenitab/spegel/pkg/state" "github.com/spegel-org/spegel/pkg/state"
"k8s.io/component-base/metrics/legacyregistry" "k8s.io/component-base/metrics/legacyregistry"
) )
...@@ -264,7 +264,7 @@ func (c *Config) peerInfo() http.HandlerFunc { ...@@ -264,7 +264,7 @@ func (c *Config) peerInfo() http.HandlerFunc {
logrus.Debugf("Serving p2p peer addr %s to client at %s", info, client) logrus.Debugf("Serving p2p peer addr %s to client at %s", info, client)
resp.WriteHeader(http.StatusOK) resp.WriteHeader(http.StatusOK)
resp.Header().Set("Content-Type", "text/plain") resp.Header().Set("Content-Type", "text/plain")
fmt.Fprintf(resp, "%s/p2p/%s", info.Addrs[0].String(), info.ID.Pretty()) fmt.Fprintf(resp, "%s/p2p/%s", info.Addrs[0].String(), info.ID.String())
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment