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: 2c81ecc2e29a124e2df155d9fe7f5a937a2d074c
  • Loading branch information
dddddai authored and k8s-publishing-bot committed Apr 12, 2023
1 parent 5b93db5 commit 5fee752
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 @@ -832,7 +832,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 5fee752

Please sign in to comment.