Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Add port_specification fields to compute_health_check (#174)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and Stuart Paterson committed Aug 23, 2019
1 parent 56c3cc3 commit 92aeea9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/resources/google_compute_health_check.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ Properties that can be accessed from the `google_compute_health_check` resource:

* `proxy_header`: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.

* `port_specification`: Specifies how port is selected for health checking, can be one of the following values: * `USE_FIXED_PORT`: The port number in `port` is used for health checking. * `USE_NAMED_PORT`: The `portName` is used for health checking. * `USE_SERVING_PORT`: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTP health check follows behavior specified in `port` and `portName` fields.

* `https_health_check`: A nested object resource

* `host`: The value of the host header in the HTTPS health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
Expand All @@ -68,6 +70,8 @@ Properties that can be accessed from the `google_compute_health_check` resource:

* `proxy_header`: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.

* `port_specification`: Specifies how port is selected for health checking, can be one of the following values: * `USE_FIXED_PORT`: The port number in `port` is used for health checking. * `USE_NAMED_PORT`: The `portName` is used for health checking. * `USE_SERVING_PORT`: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTPS health check follows behavior specified in `port` and `portName` fields.

* `tcp_health_check`: A nested object resource

* `request`: The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
Expand All @@ -80,6 +84,8 @@ Properties that can be accessed from the `google_compute_health_check` resource:

* `proxy_header`: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.

* `port_specification`: Specifies how port is selected for health checking, can be one of the following values: * `USE_FIXED_PORT`: The port number in `port` is used for health checking. * `USE_NAMED_PORT`: The `portName` is used for health checking. * `USE_SERVING_PORT`: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, TCP health check follows behavior specified in `port` and `portName` fields.

* `ssl_health_check`: A nested object resource

* `request`: The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
Expand All @@ -92,6 +98,8 @@ Properties that can be accessed from the `google_compute_health_check` resource:

* `proxy_header`: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.

* `port_specification`: Specifies how port is selected for health checking, can be one of the following values: * `USE_FIXED_PORT`: The port number in `port` is used for health checking. * `USE_NAMED_PORT`: The `portName` is used for health checking. * `USE_SERVING_PORT`: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, SSL health check follows behavior specified in `port` and `portName` fields.



## GCP Permissions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class HealthCheckHttpHealthCheck

attr_reader :proxy_header

attr_reader :port_specification

def initialize(args = nil, parent_identifier = nil)
return if args.nil?
@parent_identifier = parent_identifier
Expand All @@ -38,6 +40,7 @@ def initialize(args = nil, parent_identifier = nil)
@port = args['port']
@port_name = args['portName']
@proxy_header = args['proxyHeader']
@port_specification = args['portSpecification']
end

def to_s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class HealthCheckHttpsHealthCheck

attr_reader :proxy_header

attr_reader :port_specification

def initialize(args = nil, parent_identifier = nil)
return if args.nil?
@parent_identifier = parent_identifier
Expand All @@ -38,6 +40,7 @@ def initialize(args = nil, parent_identifier = nil)
@port = args['port']
@port_name = args['portName']
@proxy_header = args['proxyHeader']
@port_specification = args['portSpecification']
end

def to_s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class HealthCheckSslHealthCheck

attr_reader :proxy_header

attr_reader :port_specification

def initialize(args = nil, parent_identifier = nil)
return if args.nil?
@parent_identifier = parent_identifier
Expand All @@ -35,6 +37,7 @@ def initialize(args = nil, parent_identifier = nil)
@port = args['port']
@port_name = args['portName']
@proxy_header = args['proxyHeader']
@port_specification = args['portSpecification']
end

def to_s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class HealthCheckTcpHealthCheck

attr_reader :proxy_header

attr_reader :port_specification

def initialize(args = nil, parent_identifier = nil)
return if args.nil?
@parent_identifier = parent_identifier
Expand All @@ -35,6 +37,7 @@ def initialize(args = nil, parent_identifier = nil)
@port = args['port']
@port_name = args['portName']
@proxy_header = args['proxyHeader']
@port_specification = args['portSpecification']
end

def to_s
Expand Down

0 comments on commit 92aeea9

Please sign in to comment.