diff --git a/go.mod b/go.mod index 618dc0f3dd..a0041da0ab 100644 --- a/go.mod +++ b/go.mod @@ -32,9 +32,9 @@ require ( k8s.io/apimachinery v0.19.7 k8s.io/client-go v0.19.7 knative.dev/eventing v0.21.3 - knative.dev/hack v0.0.0-20210317214554-58edbdc42966 - knative.dev/pkg v0.0.0-20210323202917-b558677ab034 - knative.dev/serving v0.21.1-0.20210324203324-20815258c92d + knative.dev/hack v0.0.0-20210325223819-b6ab329907d3 + knative.dev/pkg v0.0.0-20210326074119-78ca0709a410 + knative.dev/serving v0.21.1-0.20210326184920-a597700c68a1 sigs.k8s.io/yaml v1.2.0 ) diff --git a/go.sum b/go.sum index fcf27c2f66..2776df9084 100644 --- a/go.sum +++ b/go.sum @@ -1274,27 +1274,27 @@ k8s.io/legacy-cloud-providers v0.19.7/go.mod h1:dsZk4gH9QIwAtHQ8CK0Ps257xlfgoXE3 k8s.io/utils v0.0.0-20200729134348-d5654de09c73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20210111153108-fddb29f9d009 h1:0T5IaWHO3sJTEmCP6mUlBvMukxPKUQWqiI/YuiBNMiQ= k8s.io/utils v0.0.0-20210111153108-fddb29f9d009/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -knative.dev/caching v0.0.0-20210318161455-3aa75bbb7d3d/go.mod h1:+BIx6s0cyWZbC5TR3gGVTAFroZ8p/FUTQ1AJ9W3RN9w= +knative.dev/caching v0.0.0-20210326074020-7582ffe4d468/go.mod h1:JGb1+zQeTgB+Q8APobpWXYg3I8YBw5EGa6xmXJ7zPsk= knative.dev/eventing v0.21.3 h1:H4hDHhlyScnU90Ns/qQfC69KCygPHX36Z0EM4i2fAwk= knative.dev/eventing v0.21.3/go.mod h1:JjbVEOTJJHqo9CTxbTfrMn018hG8fOr3UfBoCJ7KWaA= knative.dev/hack v0.0.0-20210203173706-8368e1f6eacf h1:u4cY4jr2LYvhoz/1HBWEPsMiLkm0HMdDTfmmw1RE8zE= knative.dev/hack v0.0.0-20210203173706-8368e1f6eacf/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI= -knative.dev/hack v0.0.0-20210309141825-9b73a256fd9a h1:0UGKyvFzY1Czu0lP9+0IrJhwtKe2oNLI2GYa7MIQ5c0= -knative.dev/hack v0.0.0-20210309141825-9b73a256fd9a/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI= knative.dev/hack v0.0.0-20210317214554-58edbdc42966 h1:qSnMQkq4gnhD5Hb8Mpfn7IrpkiQFhXXFPOA7uIl2lAc= knative.dev/hack v0.0.0-20210317214554-58edbdc42966/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI= -knative.dev/networking v0.0.0-20210323181619-8fc278deb519 h1:GK+MZwnn+mCFOqvqCM/lGIaM/xPNrlIdpehuiORFYlI= -knative.dev/networking v0.0.0-20210323181619-8fc278deb519/go.mod h1:edlXQYmWk/JjzXDVgIiLSbFJnpm4rTZZprDcXvzKLNY= +knative.dev/hack v0.0.0-20210325223819-b6ab329907d3 h1:km0Rrh0T9/wA2pivQm1hqSPVwgNgGCHC2WNn3GakZmE= +knative.dev/hack v0.0.0-20210325223819-b6ab329907d3/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI= +knative.dev/networking v0.0.0-20210326122720-354e242e6878 h1:lt5rrrZHEGBf0LVrNzoBdVpQwEFlvsoJ9LjZssgxzQY= +knative.dev/networking v0.0.0-20210326122720-354e242e6878/go.mod h1:mvfNSGU+bI9JOha6K5ZxGFNL57Y4jnJ68X8ggqdbik4= knative.dev/pkg v0.0.0-20210215165523-84c98f3c3e7a/go.mod h1:TJSdebQOWX5N2bszohOYVi0H1QtXbtlYLuMghAFBMhY= knative.dev/pkg v0.0.0-20210216013737-584933f8280b h1:2v+GBBenjPXhtk3KX/YqxCQVBU6o/AaRkkqE58lgFRQ= knative.dev/pkg v0.0.0-20210216013737-584933f8280b/go.mod h1:TJSdebQOWX5N2bszohOYVi0H1QtXbtlYLuMghAFBMhY= -knative.dev/pkg v0.0.0-20210315160101-6a33a1ab29ac h1:aGbaOcyNqxnvvujRtSMfkwehPER3TTsAw5mgCVqYZ08= -knative.dev/pkg v0.0.0-20210315160101-6a33a1ab29ac/go.mod h1:7swdJzGy7U6iq8538vt2yFsZJqmnSAxMFexWK9Ktyes= knative.dev/pkg v0.0.0-20210323202917-b558677ab034 h1:Uj1gJL+G6cEInJ7dbCSrtxAhtxoLLjIjRCA7xeQyUrQ= knative.dev/pkg v0.0.0-20210323202917-b558677ab034/go.mod h1:o1aTlbc+h60DP9P6nd/WmP99Ny9Ls3U/JIjL4xMgqpw= +knative.dev/pkg v0.0.0-20210326074119-78ca0709a410 h1:vXmDAeefAY0jOIuJ6fJ0QSlJkjTEKKU1gVi9LVTOIUw= +knative.dev/pkg v0.0.0-20210326074119-78ca0709a410/go.mod h1:PD5g8hUCXq6iR3tILjmZeJBvQfXGnHMPKryq54qHJhg= knative.dev/reconciler-test v0.0.0-20210216030508-77f50054d024/go.mod h1:RP/K5xJylB72Go6eAsXYEsQHp4zCCNMNjmsqhvq7wko= -knative.dev/serving v0.21.1-0.20210324203324-20815258c92d h1:WupdyHVxXBC5urjRJLJ/Zl01k9OFJuqX8w2VlCGgVqM= -knative.dev/serving v0.21.1-0.20210324203324-20815258c92d/go.mod h1:1X8Ik4sgaEBq6FjvMIGCA4cqrW5wxQLAoIiaDLhIY7c= +knative.dev/serving v0.21.1-0.20210326184920-a597700c68a1 h1:6gqKPUeupLV7Dki9o7+I9Asg5Hh9LNMSJgK97HqRJ1o= +knative.dev/serving v0.21.1-0.20210326184920-a597700c68a1/go.mod h1:tx7Whw6acb6XI1eV4C03rbt4ydsaRRuwwWclDR+rIJI= modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw= modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk= modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k= diff --git a/vendor/knative.dev/hack/library.sh b/vendor/knative.dev/hack/library.sh index d72bfe6b70..de744c1d96 100644 --- a/vendor/knative.dev/hack/library.sh +++ b/vendor/knative.dev/hack/library.sh @@ -156,6 +156,9 @@ function wait_until_object_does_not_exist() { } # Waits until all pods are running in the given namespace. +# This function handles some edge cases that `kubectl wait` does not support, +# and it provides nice debug info on the state of the pod if it failed, +# that’s why we have this long bash function instead of using `kubectl wait`. # Parameters: $1 - namespace. function wait_until_pods_running() { echo -n "Waiting until all pods in namespace $1 are up" diff --git a/vendor/knative.dev/networking/pkg/network.go b/vendor/knative.dev/networking/pkg/network.go index 40914e064a..0342b0fec0 100644 --- a/vendor/knative.dev/networking/pkg/network.go +++ b/vendor/knative.dev/networking/pkg/network.go @@ -180,6 +180,9 @@ const ( // load balancers to not load balance the respective request but to // send it to the request's target directly. PassthroughLoadbalancingHeaderName = "K-Passthrough-Lb" + + // EnableMeshPodAddressabilityKey is the config for enabling pod addressability in mesh. + EnableMeshPodAddressabilityKey = "enable-mesh-pod-addressability" ) // DomainTemplateValues are the available properties people can choose from @@ -251,6 +254,14 @@ type Config struct { // cluster administrator is responsible for pre-creating ClusterDomainClaims // and delegating them to namespaces via their spec.Namespace field. AutocreateClusterDomainClaims bool + + // EnableMeshPodAddressability specifies whether networking plugins will add + // additional information to deployed applications to make their pods directl + // accessible via their IPs even if mesh is enabled and thus direct-addressability + // is usually not possible. + // Consumers like Knative Serving can use this setting to adjust their behavior + // accordingly, i.e. to drop fallback solutions for non-pod-addressable systems. + EnableMeshPodAddressability bool } // HTTPProtocol indicates a type of HTTP endpoint behavior @@ -298,6 +309,7 @@ func NewConfigFromMap(data map[string]string) (*Config, error) { cm.AsString(TagTemplateKey, &nc.TagTemplate), cm.AsInt(RolloutDurationKey, &nc.RolloutDurationSecs), cm.AsBool(AutocreateClusterDomainClaimsKey, &nc.AutocreateClusterDomainClaims), + cm.AsBool(EnableMeshPodAddressabilityKey, &nc.EnableMeshPodAddressability), ); err != nil { return nil, err } diff --git a/vendor/modules.txt b/vendor/modules.txt index 9a335d5b9a..a31977f929 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1156,15 +1156,15 @@ knative.dev/eventing/test/upgrade/prober/wathola/fetcher knative.dev/eventing/test/upgrade/prober/wathola/forwarder knative.dev/eventing/test/upgrade/prober/wathola/receiver knative.dev/eventing/test/upgrade/prober/wathola/sender -# knative.dev/hack v0.0.0-20210317214554-58edbdc42966 +# knative.dev/hack v0.0.0-20210325223819-b6ab329907d3 ## explicit knative.dev/hack knative.dev/hack/shell -# knative.dev/networking v0.0.0-20210323181619-8fc278deb519 +# knative.dev/networking v0.0.0-20210326122720-354e242e6878 knative.dev/networking/pkg knative.dev/networking/pkg/apis/networking knative.dev/networking/pkg/apis/networking/v1alpha1 -# knative.dev/pkg v0.0.0-20210323202917-b558677ab034 +# knative.dev/pkg v0.0.0-20210326074119-78ca0709a410 ## explicit knative.dev/pkg/apiextensions/storageversion knative.dev/pkg/apiextensions/storageversion/cmd/migrate @@ -1279,7 +1279,7 @@ knative.dev/pkg/webhook/resourcesemantics knative.dev/pkg/webhook/resourcesemantics/conversion knative.dev/pkg/webhook/resourcesemantics/defaulting knative.dev/pkg/webhook/resourcesemantics/validation -# knative.dev/serving v0.21.1-0.20210324203324-20815258c92d +# knative.dev/serving v0.21.1-0.20210326184920-a597700c68a1 ## explicit knative.dev/serving/pkg/apis/autoscaling knative.dev/serving/pkg/apis/autoscaling/v1alpha1