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

feat: add pr automation trigger terraform resource #50

Merged
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ jobs:
check-latest: true
- uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1
with:
version: v1.59
version: v1.59
args: --timeout=10m
21 changes: 21 additions & 0 deletions docs/data-sources/config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "plural_config Data Source - terraform-provider-plural"
subcategory: ""
description: |-
A representation of a config to authenticate to app.plural.sh
---

# plural_config (Data Source)

A representation of a config to authenticate to app.plural.sh



<!-- schema generated by tfplugindocs -->
## Schema

### Read-Only

- `email` (String) The email used to authenticate to plural.
- `token` (String) Access token used to authenticate to plural.
25 changes: 25 additions & 0 deletions docs/data-sources/group.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "plural_group Data Source - terraform-provider-plural"
subcategory: ""
description: |-
A representation of a group to organize authorization in your plural console.
---

# plural_group (Data Source)

A representation of a group to organize authorization in your plural console.



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) Name of this group.

### Read-Only

- `description` (String) Description of this group.
- `id` (String) Internal identifier of this group.
28 changes: 28 additions & 0 deletions docs/data-sources/user.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "plural_user Data Source - terraform-provider-plural"
subcategory: ""
description: |-
A representation of a user to authenticate to your plural console.
---

# plural_user (Data Source)

A representation of a user to authenticate to your plural console.



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `email` (String) Email address of this user.

### Optional

- `id` (String) Internal identifier of this user.

### Read-Only

- `name` (String) Name of the user.
31 changes: 31 additions & 0 deletions docs/resources/global_service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "plural_global_service Resource - terraform-provider-plural"
subcategory: ""
description: |-
GlobalService resource
---

# plural_global_service (Resource)

GlobalService resource



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) Name of this GlobalService.
- `service_id` (String) The id of the service that will be replicated by this global service.

### Optional

- `distro` (String) Kubernetes distribution for this global servie, eg EKS, AKS, GKE, K3S.
- `provider_id` (String) Id of a CAPI provider that this global service targets.
- `tags` (Map of String) Key-value tags used to target clusters for this global service.

### Read-Only

- `id` (String) Internal identifier of this GlobalService.
28 changes: 28 additions & 0 deletions docs/resources/group.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "plural_group Resource - terraform-provider-plural"
subcategory: ""
description: |-
group resource
---

# plural_group (Resource)

group resource



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) Name of this group.

### Optional

- `description` (String) Description of this group.

### Read-Only

- `id` (String) Internal identifier of this group.
25 changes: 25 additions & 0 deletions docs/resources/group_member.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "plural_group_member Resource - terraform-provider-plural"
subcategory: ""
description: |-
GroupMember resource
---

# plural_group_member (Resource)

GroupMember resource



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `group_id` (String) group id for this group member.
- `user_id` (String) user id for this group member.

### Read-Only

- `id` (String) Internal identifier of this group member.
26 changes: 26 additions & 0 deletions docs/resources/pr_automation_trigger.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "plural_pr_automation_trigger Resource - terraform-provider-plural"
subcategory: ""
description: |-

---

# plural_pr_automation_trigger (Resource)





<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `pr_automation_branch` (String) Branch that should be created against PR Automation base branch.
- `pr_automation_id` (String) ID of the PR Automation that should be triggered.

### Optional

- `context` (Map of String) PR Automation configuration context.
- `repo_slug` (String) Repo slug of the repository PR Automation should be triggered against. If not provided PR Automation repo will be used. Format: <userOrOrg>/<repoName>
49 changes: 49 additions & 0 deletions docs/resources/rbac.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "plural_rbac Resource - terraform-provider-plural"
subcategory: ""
description: |-
A representation of rbac settings for a provider or cluster.
---

# plural_rbac (Resource)

A representation of rbac settings for a provider or cluster.



<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `bindings` (Attributes) Read and write policies of this resource. (see [below for nested schema](#nestedatt--bindings))
- `cluster_id` (String) The cluster id for these rbac settings
- `service_id` (String) The service id for these rbac settings

<a id="nestedatt--bindings"></a>
### Nested Schema for `bindings`

Optional:

- `read` (Attributes Set) Read policies of this resource. (see [below for nested schema](#nestedatt--bindings--read))
- `write` (Attributes Set) Write policies of this resource. (see [below for nested schema](#nestedatt--bindings--write))

<a id="nestedatt--bindings--read"></a>
### Nested Schema for `bindings.read`

Optional:

- `group_id` (String)
- `id` (String)
- `user_id` (String)


<a id="nestedatt--bindings--write"></a>
### Nested Schema for `bindings.write`

Optional:

- `group_id` (String)
- `id` (String)
- `user_id` (String)
20 changes: 20 additions & 0 deletions example/prautomationtrigger/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
terraform {
required_providers {
plural = {
source = "pluralsh/plural"
version = "0.2.1"
}
}
}

provider "plural" {
use_cli = true
}

resource "plural_pr_automation_trigger" "trigger" {
pr_automation_id = "1cc7483e-78dd-4470-9ae4-6eb2c8cc1785"
pr_automation_branch = "prautomation"
context = {
version: "v0.0.0"
}
}
Loading
Loading