-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into PORT-6792-disable-automations-revert
- Loading branch information
Showing
133 changed files
with
5,742 additions
and
565 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 |
---|---|---|
@@ -1 +1 @@ | ||
@talsabagport @danielsinai @dvirsegev @matarpeles @pazhersh @MPTG94 | ||
@talsabagport @danielsinai @dvirsegev @matarpeles @pazhersh @MPTG94 @erikzaadi |
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 |
---|---|---|
|
@@ -4,3 +4,5 @@ local/ | |
__debug_bin* | ||
terraform-provider-port-labs | ||
.idea | ||
**/terraform.tfstat* | ||
**/.terraform |
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,56 @@ | ||
# Contributing to the Port Terraform Provider | ||
|
||
## Setting up your developer workspace: | ||
|
||
* Have [golang](https://go.dev/doc/install) installed | ||
* Run `make dev-setup` | ||
|
||
## Verifying your contribution: | ||
|
||
Be sure to run: | ||
|
||
```sh | ||
make lint | ||
``` | ||
|
||
**NOTE**: Should be installed with `make dev-setup`, if you prefer manually, have a look at the [installation guide](https://golangci-lint.run/welcome/install/#local-installation). | ||
|
||
|
||
In addition, when changing documentation, run `make gen-docs`. | ||
|
||
You can preview how the documentation will look in the Terraform registry with [this tool](https://registry.terraform.io/tools/doc-preview). | ||
|
||
## Running your tests | ||
|
||
Expose the following environment variables: | ||
|
||
`PORT_CLIENT_ID` | ||
|
||
`PORT_CLIENT_SECRET` | ||
|
||
`PORT_BASE_URL` - Optional | ||
|
||
Then run: | ||
|
||
```sh | ||
make acctest | ||
|
||
# or filtered for your specific test: | ||
|
||
TEST_FILTER=.*MyCustomResource.* make acctest | ||
``` | ||
## Running your code as the actual terraform provider | ||
|
||
```sh | ||
make dev-run-integration | ||
``` | ||
|
||
Then export the printed `TF_REATTACH_PROVIDERS` environment variable, then your `terraform` will use your running code. | ||
|
||
## Debugging your code with `dlv` | ||
|
||
Install [Delve](https://github.com/go-delve/delve) | ||
|
||
```sh | ||
make dev-debug | ||
``` |
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
Oops, something went wrong.