From 379a9780c84cd2cc76e66da4370ac786e4f1c244 Mon Sep 17 00:00:00 2001 From: Knative Automation Date: Thu, 19 May 2022 02:13:28 +0000 Subject: [PATCH] upgrade to latest dependencies bumping knative.dev/networking 3f52bdb...773e2bf: > 773e2bf fix deprecated comments (# 673) Signed-off-by: Knative Automation --- go.mod | 2 +- go.sum | 4 +- .../networking/pkg/deprecated_config.go | 8 ++-- .../networking/pkg/deprecated_header.go | 46 +++++++++---------- .../networking/pkg/deprecated_http.go | 2 +- vendor/modules.txt | 2 +- 6 files changed, 32 insertions(+), 32 deletions(-) diff --git a/go.mod b/go.mod index b66294e9c9..5b2342015b 100644 --- a/go.mod +++ b/go.mod @@ -13,6 +13,6 @@ require ( k8s.io/apimachinery v0.23.5 k8s.io/client-go v0.23.5 knative.dev/hack v0.0.0-20220518013938-b4d4d73a2995 - knative.dev/networking v0.0.0-20220518013728-3f52bdb63511 + knative.dev/networking v0.0.0-20220518142657-773e2bf8a922 knative.dev/pkg v0.0.0-20220518013728-f907b31046d3 ) diff --git a/go.sum b/go.sum index dcb2b5105e..0ba31a08bd 100644 --- a/go.sum +++ b/go.sum @@ -1198,8 +1198,8 @@ knative.dev/hack v0.0.0-20220427014036-5f473869d377/go.mod h1:PHt8x8yX5Z9pPquBEf knative.dev/hack v0.0.0-20220503220458-46c77f157e20/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI= knative.dev/hack v0.0.0-20220518013938-b4d4d73a2995 h1:Bt1Mdo6K6E4gaVUFiI8ZMvFcvsb0e10vLFyW7qKRxy4= knative.dev/hack v0.0.0-20220518013938-b4d4d73a2995/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI= -knative.dev/networking v0.0.0-20220518013728-3f52bdb63511 h1:27VaOzdAjjd3zVKPYFZpahTyws1+n9SlwsXHzFbOZcU= -knative.dev/networking v0.0.0-20220518013728-3f52bdb63511/go.mod h1:8JUhHDPrN9DKOnvpysGIP5trCv7FiGkXq+RDP1605RA= +knative.dev/networking v0.0.0-20220518142657-773e2bf8a922 h1:8Qocz0yb9z9el9ruV1+H7FWZ+3EujVtrw9dDv4qLsEs= +knative.dev/networking v0.0.0-20220518142657-773e2bf8a922/go.mod h1:8JUhHDPrN9DKOnvpysGIP5trCv7FiGkXq+RDP1605RA= knative.dev/pkg v0.0.0-20220503223858-245166458ef4/go.mod h1:NXK3p/UMCbFybBM9xQGii3TuMN/WKHByXcYsTwZ6Y6U= knative.dev/pkg v0.0.0-20220518013728-f907b31046d3 h1:NElwuc4+cGeJGwJEv65uyd552nFedHTBI4rtVZ+eDRw= knative.dev/pkg v0.0.0-20220518013728-f907b31046d3/go.mod h1:mRzBIY8eoQurpADZ4+3LzNuucKOBhsSvhX6lXqMVpIc= diff --git a/vendor/knative.dev/networking/pkg/deprecated_config.go b/vendor/knative.dev/networking/pkg/deprecated_config.go index b7c31befef..f099c68f40 100644 --- a/vendor/knative.dev/networking/pkg/deprecated_config.go +++ b/vendor/knative.dev/networking/pkg/deprecated_config.go @@ -215,7 +215,7 @@ const ( // required when mesh is enabled (unless EnableMeshPodAddressability is set), // but is less efficient. // - // Deprecated: Use knative.dev/pkg/config/MeshCompatibilityModeEnabled + // Deprecated: Use knative.dev/networking/pkg/config/MeshCompatibilityModeEnabled MeshCompatibilityModeEnabled MeshCompatibilityMode = config.MeshCompatibilityModeEnabled // MeshCompatibilityModeDisabled instructs consumers of network plugins, such as @@ -223,7 +223,7 @@ const ( // but will only work with mesh enabled when EnableMeshPodAddressability is // used. // - // Deprecated: Use knative.dev/pkg/config/MeshCompatibilityModeDisabled + // Deprecated: Use knative.dev/networking/pkg/config/MeshCompatibilityModeDisabled MeshCompatibilityModeDisabled MeshCompatibilityMode = config.MeshCompatibilityModeDisabled // MeshCompatibilityModeAuto instructs consumers of network plugins, such as @@ -232,7 +232,7 @@ const ( // determine whether mesh is enabled, and fall back from Direct Pod IP // communication to Cluster IP as needed. // - // Deprecated: Use knative.dev/pkg/config/MeshCompatibilityModeAuto + // Deprecated: Use knative.dev/networking/pkg/config/MeshCompatibilityModeAuto MeshCompatibilityModeAuto MeshCompatibilityMode = config.MeshCompatibilityModeAuto ) @@ -243,5 +243,5 @@ func NewConfigFromConfigMap(configMap *corev1.ConfigMap) (*Config, error) { // NewConfigFromMap creates a Config from the supplied data. // -// Deprecated: Use knative.dev/pkg/config/NewConfigFromMap +// Deprecated: Use knative.dev/networking/pkg/config/NewConfigFromMap var NewConfigFromMap = config.NewConfigFromMap diff --git a/vendor/knative.dev/networking/pkg/deprecated_header.go b/vendor/knative.dev/networking/pkg/deprecated_header.go index f2943f84ee..c2e98c2c31 100644 --- a/vendor/knative.dev/networking/pkg/deprecated_header.go +++ b/vendor/knative.dev/networking/pkg/deprecated_header.go @@ -26,25 +26,25 @@ const ( // with this header will not be passed to the user container or // included in request metrics. // - // Deprecated: use knative.dev/networking/pkg/header.ProbeKey + // Deprecated: use knative.dev/networking/pkg/http/header.ProbeKey ProbeHeaderName = header.ProbeKey // ProxyHeaderName is the name of an internal header that activator // uses to mark requests going through it. // - // Deprecated: use knative.dev/networking/pkg/header.ProxyKey + // Deprecated: use knative.dev/networking/pkg/http/header.ProxyKey ProxyHeaderName = header.ProxyKey // HashHeaderName is the name of an internal header that Ingress controller // uses to find out which version of the networking config is deployed. // - // Deprecated: use knative.dev/networking/pkg/header.HashKey + // Deprecated: use knative.dev/networking/pkg/http/header.HashKey HashHeaderName = header.HashKey // HashHeaderValue is the value that must appear in the HashHeaderName // header in order for our network hash to be injected. // - // Deprecated: use knative.dev/networking/pkg/header.HashValueOverride + // Deprecated: use knative.dev/networking/pkg/http/header.HashValueOverride HashHeaderValue = header.HashValueOverride // OriginalHostHeader is used to avoid Istio host based routing rules @@ -52,102 +52,102 @@ const ( // The header contains the original Host value that can be rewritten // at the Queue proxy level back to be a host header. // - // Deprecated: use knative.dev/networking/pkg/header.OriginalHostKey + // Deprecated: use knative.dev/networking/pkg/http/header.OriginalHostKey OriginalHostHeader = header.OriginalHostKey // KubeProbeUAPrefix is the user agent prefix of the probe. // Since K8s 1.8, prober requests have // User-Agent = "kube-probe/{major-version}.{minor-version}". // - // Deprecated: use knative.dev/networking/pkg/header.KubeProbeUAPrefix + // Deprecated: use knative.dev/networking/pkg/http/header.KubeProbeUAPrefix KubeProbeUAPrefix = header.KubeProbeUAPrefix // KubeletProbeHeaderName is the name of the header supplied by kubelet // probes. Istio with mTLS rewrites probes, but their probes pass a // different user-agent. So we augment the probes with this header. // - // Deprecated: use knative.dev/networking/pkg/header.KubeletProbeHeaderName + // Deprecated: use knative.dev/networking/pkg/http/header.KubeletProbeKey KubeletProbeHeaderName = header.KubeletProbeKey // UserAgentKey is the constant for header "User-Agent". // - // Deprecated: use knative.dev/networking/pkg/header.UserAgentKey + // Deprecated: use knative.dev/networking/pkg/http/header.UserAgentKey UserAgentKey = header.UserAgentKey // ActivatorUserAgent is the user-agent header value set in probe requests sent // from activator. // - // Deprecated: use knative.dev/networking/pkg/header.ActivatorUserAgent + // Deprecated: use knative.dev/networking/pkg/http/header.ActivatorUserAgent ActivatorUserAgent = header.ActivatorUserAgent // QueueProxyUserAgent is the user-agent header value set in probe requests sent // from queue-proxy. // - // Deprecated: use knative.dev/networking/pkg/header.QueueProxyUserAgent + // Deprecated: use knative.dev/networking/pkg/http/header.QueueProxyUserAgent QueueProxyUserAgent = header.QueueProxyUserAgent // IngressReadinessUserAgent is the user-agent header value // set in probe requests for Ingress status. // - // Deprecated: use knative.dev/networking/pkg/header.IngressReadinessUserAgent + // Deprecated: use knative.dev/networking/pkg/http/header.IngressReadinessUserAgent IngressReadinessUserAgent = header.IngressReadinessUserAgent // AutoscalingUserAgent is the user-agent header value set in probe // requests sent by autoscaling implementations. // - // Deprecated: use knative.dev/networking/pkg/header.ActivatorUserAgent + // Deprecated: use knative.dev/networking/pkg/http/header.AutoscalingUserAgent AutoscalingUserAgent = header.AutoscalingUserAgent // TagHeaderName is the name of the header entry which has a tag name as value. // The tag name specifies which route was expected to be chosen by Ingress. // - // Deprecated: use knative.dev/networking/pkg/header.RouteTagKey + // Deprecated: use knative.dev/networking/pkg/http/header.RouteTagKey TagHeaderName = header.RouteTagKey // DefaultRouteHeaderName is the name of the header entry // identifying whether a request is routed via the default route or not. // It has one of the string value "true" or "false". // - // Deprecated: use knative.dev/networking/pkg/header.DefaultRouteKey + // Deprecated: use knative.dev/networking/pkg/http/header.DefaultRouteKey DefaultRouteHeaderName = header.DefaultRouteKey // PassthroughLoadbalancingHeaderName is the name of the header that directs // load balancers to not load balance the respective request but to // send it to the request's target directly. // - // Deprecated: use knative.dev/networking/pkg/header.PassthroughLoadbalancingHeaderName + // Deprecated: use knative.dev/networking/pkg/http/header.PassthroughLoadbalancingKey PassthroughLoadbalancingHeaderName = header.PassthroughLoadbalancingKey // ProtoAcceptContent is the content type to be used when autoscaler scrapes metrics from the QP // - // Deprecated: use knative.dev/networking/pkg/header.ProtobufMIMEType + // Deprecated: use knative.dev/networking/pkg/http/header.ProtobufMIMEType ProtoAcceptContent = header.ProtobufMIMEType // ProbeHeaderValue is the value used in 'K-Network-Probe' // - // Deprecated: use knative.dev/networking/pkg/header.ProbeValue + // Deprecated: use knative.dev/networking/pkg/http/header.ProbeValue ProbeHeaderValue = header.ProbeValue ) // IsKubeletProbe returns true if the request is a Kubernetes probe. // -// Deprecated: use knative.dev/networking/pkg/header.IsKubeletProbe +// Deprecated: use knative.dev/networking/pkg/http/header.IsKubeletProbe var IsKubeletProbe = header.IsKubeletProbe // KnativeProbeHeader returns the value for key ProbeHeaderName in request headers. // -// Deprecated: use knative.dev/networking/pkg/header.GetKnativeProbeValue +// Deprecated: use knative.dev/networking/pkg/http/header.GetKnativeProbeValue var KnativeProbeHeader = header.GetKnativeProbeValue // KnativeProxyHeader returns the value for key ProxyHeaderName in request headers. // -// Deprecated: use knative.dev/networking/pkg/header.GetKnativeProxyValue +// Deprecated: use knative.dev/networking/pkg/http/header.GetKnativeProxyValue var KnativeProxyHeader = header.GetKnativeProxyValue // IsProbe returns true if the request is a Kubernetes probe or a Knative probe, // i.e. non-empty ProbeHeaderName header. // -// Deprecated: use knative.dev/networking/pkg/header.IsProbe +// Deprecated: use knative.dev/networking/pkg/http/header.IsProbe var IsProbe = header.IsProbe // RewriteHostIn removes the `Host` header from the inbound (server) request @@ -155,7 +155,7 @@ var IsProbe = header.IsProbe // This is done to avoid Istio Host based routing, see #3870. // Queue-Proxy will execute the reverse process. // -// Deprecated: use knative.dev/networking/pkg/header.RewriteHostIn +// Deprecated: use knative.dev/networking/pkg/http/header.RewriteHostIn var RewriteHostIn = header.RewriteHostIn // RewriteHostOut undoes the `RewriteHostIn` action. @@ -163,5 +163,5 @@ var RewriteHostIn = header.RewriteHostIn // then uses that as the r.Host (which takes priority over Request.Header["Host"]). // If the request did not have the OriginalHostHeader header set, the request is untouched. // -// Deprecated: use knative.dev/networking/pkg/header.RewriteHostOut +// Deprecated: use knative.dev/networking/pkg/http/header.RewriteHostOut var RewriteHostOut = header.RewriteHostOut diff --git a/vendor/knative.dev/networking/pkg/deprecated_http.go b/vendor/knative.dev/networking/pkg/deprecated_http.go index 195d3f60c9..ad40005266 100644 --- a/vendor/knative.dev/networking/pkg/deprecated_http.go +++ b/vendor/knative.dev/networking/pkg/deprecated_http.go @@ -37,7 +37,7 @@ const ( // streaming/websockets, without flushing more often than necessary for // non-streaming requests. // - // Deprecated: use knative.dev/networking/pkg/http.ReverseProxyFlushInterval + // Deprecated: use knative.dev/networking/pkg/http/proxy.FlushInterval FlushInterval = proxy.FlushInterval ) diff --git a/vendor/modules.txt b/vendor/modules.txt index 64707366aa..964fddf486 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -809,7 +809,7 @@ k8s.io/utils/trace # knative.dev/hack v0.0.0-20220518013938-b4d4d73a2995 ## explicit knative.dev/hack -# knative.dev/networking v0.0.0-20220518013728-3f52bdb63511 +# knative.dev/networking v0.0.0-20220518142657-773e2bf8a922 ## explicit knative.dev/networking/config knative.dev/networking/pkg