-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add proxy_protocol feature for load_balancer #2325
Conversation
@@ -74,6 +75,12 @@ func resourceIBMISLBListener() *schema.Resource { | |||
Description: "certificate instance for the Loadbalancer", | |||
}, | |||
|
|||
isLBListenerAcceptProxyProtocol: { | |||
Type: schema.TypeBool, | |||
Optional: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add default value as "false" as per API docs
@@ -65,6 +65,7 @@ The following arguments are supported: | |||
* `default_pool` - (Optional, string) The load balancer pool unique identifier. | |||
* `certificate_instance` - (Optional, string) CRN of the certificate instance. | |||
* `connection_limit` - (Optional, int) The connection limit of the listener. Valid range 1 to 15000. Network load balancer does not support `connection_limit` argument. | |||
* `accept_proxy_protocol` - (Optional, boolean) If true, listener will forward PROXY protocol information. Supported by load balancers in the application family otherwise false. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the default value also
@@ -69,6 +71,7 @@ The following arguments are supported: | |||
* `health_monitor_port` - (Optional, int) The health check port number | |||
* `session_persistence_type` - (Optional, string) The session persistence type, Enumeration type: source_ip, http_cookie, app_cookie | |||
* `session_persistence_cookie_name` - (Optional, string) Session persistence cookie name. This option is applicable only to --session-persistence-type | |||
* `proxy_protocol` - (Otpional, string) The PROXY protocol setting for this pool. Supported by load balancers in the application family otherwise disabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the supported values.
=== RUN TestAccIBMISLBPool_basic
--- PASS: TestAccIBMISLBPool_basic (569.11s)
PASS
ok github.com/IBM-Cloud/terraform-provider-ibm/ibm 570.401s
=== RUN TestAccIBMISLBListener_basic
--- PASS: TestAccIBMISLBListener_basic (605.86s)
PASS
ok github.com/IBM-Cloud/terraform-provider-ibm/ibm 607.333s