Changed HTTPGetAction to allow user-defined schemes
This commit is contained in:
@@ -610,8 +610,20 @@ type HTTPGetAction struct {
|
||||
Port util.IntOrString `json:"port,omitempty"`
|
||||
// Optional: Host name to connect to, defaults to the pod IP.
|
||||
Host string `json:"host,omitempty"`
|
||||
// Optional: Scheme to use for connecting to the host, defaults to HTTP.
|
||||
Scheme URIScheme `json:"scheme,omitempty"`
|
||||
}
|
||||
|
||||
// URIScheme identifies the scheme used for connection to a host for Get actions
|
||||
type URIScheme string
|
||||
|
||||
const (
|
||||
// URISchemeHTTP means that the scheme used will be http://
|
||||
URISchemeHTTP URIScheme = "HTTP"
|
||||
// URISchemeHTTPS means that the scheme used will be https://
|
||||
URISchemeHTTPS URIScheme = "HTTPS"
|
||||
)
|
||||
|
||||
// TCPSocketAction describes an action based on opening a socket
|
||||
type TCPSocketAction struct {
|
||||
// Required: Port to connect to.
|
||||
|
Reference in New Issue
Block a user