-
Notifications
You must be signed in to change notification settings - Fork 31
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 feature/add-custom-headers-to-audit-trail
- Loading branch information
Showing
35 changed files
with
1,046 additions
and
325 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
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
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 |
---|---|---|
|
@@ -24,3 +24,4 @@ key.* | |
dist/ | ||
|
||
test.env | ||
.envrc |
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,62 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "spacelift_gitlab_integration Resource - terraform-provider-spacelift" | ||
subcategory: "" | ||
description: |- | ||
spacelift_gitlab_integration represents an integration with a GitLab instance | ||
--- | ||
|
||
# spacelift_gitlab_integration (Resource) | ||
|
||
`spacelift_gitlab_integration` represents an integration with a GitLab instance | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "spacelift_gitlab_integration" "example" { | ||
name = "GitLab integration (public)" | ||
space_id = "root" | ||
api_host = "https://mygitlab.myorg.com" | ||
user_facing_host = "https://mygitlab.myorg.com" | ||
private_token = "gitlab-token" | ||
} | ||
resource "spacelift_gitlab_integration" "private-example" { | ||
name = "GitLab integration (private)" | ||
is_default = true | ||
api_host = "private://mygitlab" | ||
user_facing_host = "https://mygitlab.myorg.com" | ||
private_token = "gitlab-token" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `api_host` (String) API host URL | ||
- `name` (String) The friendly name of the integration | ||
- `private_token` (String, Sensitive) The GitLab API Token | ||
- `user_facing_host` (String) User facing host URL. | ||
|
||
### Optional | ||
|
||
- `description` (String) Description of the integration | ||
- `is_default` (Boolean) Is the GitLab integration the default for all spaces? If set to `true` the space must be set to `root` in `space_id` or left empty which uses the default | ||
- `labels` (Set of String) Labels to set on the integration | ||
- `space_id` (String) ID (slug) of the space the integration is in; Default: `root` | ||
|
||
### Read-Only | ||
|
||
- `id` (String) GitLab integration id. | ||
- `webhook_secret` (String, Sensitive) Secret for webhooks originating from GitLab repositories | ||
- `webhook_url` (String) URL for webhooks originating from GitLab repositories | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import spacelift_gitlab_integration.example spacelift_gitlab_integration_id | ||
``` |
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 @@ | ||
terraform import spacelift_gitlab_integration.example spacelift_gitlab_integration_id |
15 changes: 15 additions & 0 deletions
15
examples/resources/spacelift_gitlab_integration/resource.tf
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,15 @@ | ||
resource "spacelift_gitlab_integration" "example" { | ||
name = "GitLab integration (public)" | ||
space_id = "root" | ||
api_host = "https://mygitlab.myorg.com" | ||
user_facing_host = "https://mygitlab.myorg.com" | ||
private_token = "gitlab-token" | ||
} | ||
|
||
resource "spacelift_gitlab_integration" "private-example" { | ||
name = "GitLab integration (private)" | ||
is_default = true | ||
api_host = "private://mygitlab" | ||
user_facing_host = "https://mygitlab.myorg.com" | ||
private_token = "gitlab-token" | ||
} |
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.