Add httpHeaders to httpGet liveness probe
Also update existing documentation and try to steer users away from 'host'. Add validation.
This commit is contained in:
@@ -749,6 +749,22 @@ func deepCopy_v1_HTTPGetAction(in HTTPGetAction, out *HTTPGetAction, c *conversi
|
||||
}
|
||||
out.Host = in.Host
|
||||
out.Scheme = in.Scheme
|
||||
if in.HTTPHeaders != nil {
|
||||
out.HTTPHeaders = make([]HTTPHeader, len(in.HTTPHeaders))
|
||||
for i := range in.HTTPHeaders {
|
||||
if err := deepCopy_v1_HTTPHeader(in.HTTPHeaders[i], &out.HTTPHeaders[i], c); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
} else {
|
||||
out.HTTPHeaders = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func deepCopy_v1_HTTPHeader(in HTTPHeader, out *HTTPHeader, c *conversion.Cloner) error {
|
||||
out.Name = in.Name
|
||||
out.Value = in.Value
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -2576,6 +2592,7 @@ func init() {
|
||||
deepCopy_v1_GitRepoVolumeSource,
|
||||
deepCopy_v1_GlusterfsVolumeSource,
|
||||
deepCopy_v1_HTTPGetAction,
|
||||
deepCopy_v1_HTTPHeader,
|
||||
deepCopy_v1_Handler,
|
||||
deepCopy_v1_HostPathVolumeSource,
|
||||
deepCopy_v1_ISCSIVolumeSource,
|
||||
|
||||
Reference in New Issue
Block a user