-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🚛 load balancer resource * Fix whitespace in server resource
- Loading branch information
1 parent
600e3f5
commit 44772aa
Showing
22 changed files
with
1,795 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Terraform Provider Tests | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/test.yaml' | ||
- '**.go' | ||
|
||
permissions: | ||
# Permission for checking out code | ||
contents: read | ||
|
||
jobs: | ||
acceptance: | ||
name: Acceptance Tests | ||
runs-on: ubuntu-latest | ||
environment: test | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: 'go.mod' | ||
- uses: hashicorp/setup-terraform@v2 | ||
with: | ||
terraform_version: '1.5.*' | ||
terraform_wrapper: false | ||
- run: go test -v -cover ./... | ||
env: | ||
TF_ACC: '1' | ||
BINARYLANE_API_TOKEN: ${{ secrets.BINARYLANE_API_TOKEN }} | ||
# unit: | ||
# name: Unit Tests | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/setup-go@v4 | ||
# with: | ||
# go-version-file: 'go.mod' | ||
# - run: go test -v -cover ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "binarylane_load_balancer Data Source - terraform-provider-binarylane" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# binarylane_load_balancer (Data Source) | ||
|
||
|
||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `id` (Number) The ID of the load balancer to fetch. | ||
|
||
### Read-Only | ||
|
||
- `forwarding_rules` (List of Object) The rules that control which traffic the load balancer will forward to servers in the pool. Leave null to accept a default "HTTP" only forwarding rule. (see [below for nested schema](#nestedatt--forwarding_rules)) | ||
- `health_check` (Object) The rules that determine which servers are considered 'healthy' and in the server pool for the load balancer. Leave this null to accept appropriate defaults based on the forwarding_rules. (see [below for nested schema](#nestedatt--health_check)) | ||
- `name` (String) The hostname of the load balancer. | ||
- `region` (String) Leave null to create an anycast load balancer. | ||
- `server_ids` (List of Number) A list of server IDs to assign to this load balancer. | ||
|
||
<a id="nestedatt--forwarding_rules"></a> | ||
### Nested Schema for `forwarding_rules` | ||
|
||
Read-Only: | ||
|
||
- `entry_protocol` (String) | ||
|
||
|
||
<a id="nestedatt--health_check"></a> | ||
### Nested Schema for `health_check` | ||
|
||
Read-Only: | ||
|
||
- `path` (String) | ||
- `protocol` (String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "binarylane_load_balancer Resource - terraform-provider-binarylane" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# binarylane_load_balancer (Resource) | ||
|
||
|
||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The hostname of the load balancer. | ||
|
||
### Optional | ||
|
||
- `forwarding_rules` (Attributes List) The rules that control which traffic the load balancer will forward to servers in the pool. Leave null to accept a default "HTTP" only forwarding rule. (see [below for nested schema](#nestedatt--forwarding_rules)) | ||
- `health_check` (Attributes) The rules that determine which servers are considered 'healthy' and in the server pool for the load balancer. Leave this null to accept appropriate defaults based on the forwarding_rules. (see [below for nested schema](#nestedatt--health_check)) | ||
- `region` (String) Leave null to create an anycast load balancer. | ||
- `server_ids` (List of Number) A list of server IDs to assign to this load balancer. | ||
|
||
### Read-Only | ||
|
||
- `id` (Number) The ID of the load balancer to fetch. | ||
|
||
<a id="nestedatt--forwarding_rules"></a> | ||
### Nested Schema for `forwarding_rules` | ||
|
||
Required: | ||
|
||
- `entry_protocol` (String) The protocol that traffic must match for this load balancer to forward traffic according to this rule. | ||
|
||
|
||
<a id="nestedatt--health_check"></a> | ||
### Nested Schema for `health_check` | ||
|
||
Optional: | ||
|
||
- `path` (String) Leave null to accept the default '/' path. | ||
- `protocol` (String) Leave null to accept the default HTTP protocol. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.