Skip to content

Commit

Permalink
use case-insensitive header keys for http probes
Browse files Browse the repository at this point in the history
Kubernetes-commit: 23b09f8d26cb6f7a9375c6d3bf23ffcc21dcbc62
  • Loading branch information
dddddai authored and k8s-publishing-bot committed Apr 12, 2023
1 parent 0545f3a commit 9483bbc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion core/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion core/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2137,7 +2137,8 @@ type SecretEnvSource struct {

// HTTPHeader describes a custom header to be used in HTTP probes
type HTTPHeader struct {
// The header field name
// The header field name.
// This will be canonicalized upon output, so case-variant names will be understood as the same header.
Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
// The header field value
Value string `json:"value" protobuf:"bytes,2,opt,name=value"`
Expand Down
2 changes: 1 addition & 1 deletion core/v1/types_swagger_doc_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ func (HTTPGetAction) SwaggerDoc() map[string]string {

var map_HTTPHeader = map[string]string{
"": "HTTPHeader describes a custom header to be used in HTTP probes",
"name": "The header field name",
"name": "The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.",
"value": "The header field value",
}

Expand Down

0 comments on commit 9483bbc

Please sign in to comment.