Skip to content
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

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

astha-jain
Copy link
Contributor

@astha-jain astha-jain commented Mar 8, 2021

=== 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

@@ -74,6 +75,12 @@ func resourceIBMISLBListener() *schema.Resource {
Description: "certificate instance for the Loadbalancer",
},

isLBListenerAcceptProxyProtocol: {
Type: schema.TypeBool,
Optional: true,
Copy link
Collaborator

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.
Copy link
Collaborator

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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the supported values.

@hkantare hkantare merged commit e5cb09b into IBM-Cloud:master Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants