Merge pull request #101647 from pacoxu/disable-StreamingProxyRedirects

Default StreamingProxyRedirects to disabled

Kubernetes-commit: c8abbc0edb3d22ebbcdfd24709b0e94a0ac6217d
This commit is contained in:
Kubernetes Publisher 2021-05-26 13:46:02 -07:00
commit 970187d575
4 changed files with 14 additions and 13 deletions

4
Godeps/Godeps.json generated
View File

@ -924,7 +924,7 @@
},
{
"ImportPath": "k8s.io/api",
"Rev": "c1965f366614"
"Rev": "b0d9a0e45e6f"
},
{
"ImportPath": "k8s.io/apimachinery",
@ -932,7 +932,7 @@
},
{
"ImportPath": "k8s.io/client-go",
"Rev": "fe090a55f17e"
"Rev": "ccac4151908b"
},
{
"ImportPath": "k8s.io/component-base",

8
go.mod
View File

@ -38,9 +38,9 @@ require (
google.golang.org/grpc v1.27.1
gopkg.in/natefinch/lumberjack.v2 v2.0.0
gopkg.in/square/go-jose.v2 v2.2.2
k8s.io/api v0.0.0-20210526145656-c1965f366614
k8s.io/api v0.0.0-20210526225344-b0d9a0e45e6f
k8s.io/apimachinery v0.0.0-20210526145310-44113beed5d3
k8s.io/client-go v0.0.0-20210526150137-fe090a55f17e
k8s.io/client-go v0.0.0-20210526225611-ccac4151908b
k8s.io/component-base v0.0.0-20210526151053-fd43e6f3a496
k8s.io/klog/v2 v2.9.0
k8s.io/kube-openapi v0.0.0-20210421082810-95288971da7e
@ -51,8 +51,8 @@ require (
)
replace (
k8s.io/api => k8s.io/api v0.0.0-20210526145656-c1965f366614
k8s.io/api => k8s.io/api v0.0.0-20210526225344-b0d9a0e45e6f
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20210526145310-44113beed5d3
k8s.io/client-go => k8s.io/client-go v0.0.0-20210526150137-fe090a55f17e
k8s.io/client-go => k8s.io/client-go v0.0.0-20210526225611-ccac4151908b
k8s.io/component-base => k8s.io/component-base v0.0.0-20210526151053-fd43e6f3a496
)

8
go.sum
View File

@ -684,12 +684,12 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
honnef.co/go/tools v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
k8s.io/api v0.0.0-20210526145656-c1965f366614 h1:dtbswgrsOmr2QNHHLs4Paz6zOMQpjQRageoUbsdIrsA=
k8s.io/api v0.0.0-20210526145656-c1965f366614/go.mod h1:eWIkn4RdojmLDA8CIg8qxYIu2OMC0e1fQw5tIpdntMo=
k8s.io/api v0.0.0-20210526225344-b0d9a0e45e6f h1:RltThoVZBYapPUF5y7XS/5Nyf+l05lf0zLUQEm6YJBw=
k8s.io/api v0.0.0-20210526225344-b0d9a0e45e6f/go.mod h1:eWIkn4RdojmLDA8CIg8qxYIu2OMC0e1fQw5tIpdntMo=
k8s.io/apimachinery v0.0.0-20210526145310-44113beed5d3 h1:EackAoZYmz9kh+g/lsA1j+zXT594K8sow0aZsaTGrpY=
k8s.io/apimachinery v0.0.0-20210526145310-44113beed5d3/go.mod h1:4Cv2ieSta05uBKxq3lhGnvQDmwXVxNYosMEyZpoDRoA=
k8s.io/client-go v0.0.0-20210526150137-fe090a55f17e h1:5MCG3fTV3m//oRn/KPaHuAAA+tXe1H7ClB60gs/3QyM=
k8s.io/client-go v0.0.0-20210526150137-fe090a55f17e/go.mod h1:8uOEHQRLo077MIJmxGgmZ4l/kv/pBCcaX1MxAZqBfFs=
k8s.io/client-go v0.0.0-20210526225611-ccac4151908b h1:CKaQ+Dp3YEITCHaDCLS+1R6Kp500p04eCos+yYrhC08=
k8s.io/client-go v0.0.0-20210526225611-ccac4151908b/go.mod h1:9rpSK7gYyoSHTTvO7v3dxUnNCwpaIWlUd8snZkv6RNQ=
k8s.io/component-base v0.0.0-20210526151053-fd43e6f3a496 h1:ok5fhoRCblWF0FEx+uDGmsqMzNevooBrcvM9QurRCCw=
k8s.io/component-base v0.0.0-20210526151053-fd43e6f3a496/go.mod h1:K2nAkGafkyCSORyfWBUUfW8EcDiHy/wkOIhSC6nQdzg=
k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=

View File

@ -38,12 +38,13 @@ const (
// StreamingProxyRedirects controls whether the apiserver should intercept (and follow)
// redirects from the backend (Kubelet) for streaming requests (exec/attach/port-forward).
//
// This feature is deprecated, and will be removed in v1.22.
// This feature is deprecated, and will be removed in v1.24.
StreamingProxyRedirects featuregate.Feature = "StreamingProxyRedirects"
// owner: @tallclair
// alpha: v1.12
// beta: v1.14
// deprecated: v1.22
//
// ValidateProxyRedirects controls whether the apiserver should validate that redirects are only
// followed to the same host. Only used if StreamingProxyRedirects is enabled.
@ -173,8 +174,8 @@ func init() {
// To add a new feature, define a key for it above and add it here. The features will be
// available throughout Kubernetes binaries.
var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureSpec{
StreamingProxyRedirects: {Default: true, PreRelease: featuregate.Deprecated},
ValidateProxyRedirects: {Default: true, PreRelease: featuregate.Beta},
StreamingProxyRedirects: {Default: false, PreRelease: featuregate.Deprecated},
ValidateProxyRedirects: {Default: true, PreRelease: featuregate.Deprecated},
AdvancedAuditing: {Default: true, PreRelease: featuregate.GA},
APIResponseCompression: {Default: true, PreRelease: featuregate.Beta},
APIListChunking: {Default: true, PreRelease: featuregate.Beta},