Skip to content

Commit

Permalink
Remove deprecated field. (knative#4943)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nghia Tran authored and knative-prow-robot committed Jul 26, 2019
1 parent 2405481 commit 03b0436
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
8 changes: 2 additions & 6 deletions pkg/reconciler/ingress/resources/virtual_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,8 @@ func makeVirtualServiceRoute(hosts []string, http *v1alpha1.HTTPIngressPath, gat
Attempts: http.Retries.Attempts,
PerTryTimeout: http.Retries.PerTryTimeout.Duration.String(),
},
// TODO(mattmoor): Remove AppendHeaders when 1.1 is a hard dependency.
// AppendHeaders is deprecated in Istio 1.1 in favor of Headers,
// however, 1.0.x doesn't support Headers.
DeprecatedAppendHeaders: http.AppendHeaders,
Headers: h,
WebsocketUpgrade: true,
Headers: h,
WebsocketUpgrade: true,
}
}

Expand Down
9 changes: 0 additions & 9 deletions pkg/reconciler/ingress/resources/virtual_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,6 @@ func TestMakeMeshVirtualServiceSpec_CorrectRoutes(t *testing.T) {
},
},
},
DeprecatedAppendHeaders: map[string]string{
"foo": "bar",
},
Timeout: defaultMaxRevisionTimeout.String(),
Retries: &v1alpha3.HTTPRetry{
Attempts: networking.DefaultRetryCount,
Expand Down Expand Up @@ -387,9 +384,6 @@ func TestMakeIngressVirtualServiceSpec_CorrectRoutes(t *testing.T) {
},
},
},
DeprecatedAppendHeaders: map[string]string{
"foo": "bar",
},
Timeout: defaultMaxRevisionTimeout.String(),
Retries: &v1alpha3.HTTPRetry{
Attempts: networking.DefaultRetryCount,
Expand All @@ -415,9 +409,6 @@ func TestMakeIngressVirtualServiceSpec_CorrectRoutes(t *testing.T) {
},
},
},
DeprecatedAppendHeaders: map[string]string{
"foo": "baz",
},
Timeout: defaultMaxRevisionTimeout.String(),
Retries: &v1alpha3.HTTPRetry{
Attempts: networking.DefaultRetryCount,
Expand Down

0 comments on commit 03b0436

Please sign in to comment.