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

Multivcs trunk #481

Merged
merged 3 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 5 additions & 5 deletions .github/workflows/analysis-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.19"
go-version: "1.21"

- name: Check formatting using gofmt
run: gofmt -s -l -d .

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
args: -v
uses: reviewdog/action-golangci-lint@v2
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: { reporter: github-pr-review }
2 changes: 1 addition & 1 deletion .github/workflows/check-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.19"
go-version: "1.21"

- name: Generate documentation
run: cd tools && go generate ./...
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
run: |
echo "It is not possible to release a provider with the name 'spacelift' to the Spacelift registry using manual workflow."
exit 1

- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -30,9 +31,13 @@ jobs:
- name: Unshallow
run: git fetch --prune --unshallow

- name: Update goreleaser project name
run: |
echo -e "project_name: terraform-provider-${{ inputs.providerType }}\n$(cat .goreleaser.yml)" > .goreleaser.yml

- name: Set up Go
uses: actions/setup-go@v4
with: { go-version: 1.19 }
with: { go-version: 1.21 }

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Set up Go
uses: actions/setup-go@v4
with: { go-version: 1.19 }
with: { go-version: 1.21 }

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.19"
go-version: "1.21"

- name: Install Terraform
uses: hashicorp/setup-terraform@v2
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Test

on: [push]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
deployment:
name: Test the code
Expand All @@ -14,7 +18,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.19"
go-version: "1.21"

- name: Install Terraform
uses: hashicorp/setup-terraform@v2
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ linters:
- ineffassign
- nolintlint
- staticcheck
- structcheck
- unused
- typecheck

severity:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If you want to build from source, you can simply use `go build` in the root of t

To develop the provider locally you need the following tools:

- [Go 1.19](https://go.dev/doc/install).
- [Go 1.21](https://go.dev/doc/install).
- [GoReleaser](https://goreleaser.com/).
- A Spacelift account to use for testing.

Expand Down
11 changes: 10 additions & 1 deletion docs/data-sources/azure_devops_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@ data "spacelift_azure_devops_integration" "azure_devops_integration" {}
<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `id` (String) Azure DevOps integration id. If not provided, the default integration will be returned

### Read-Only

- `id` (String) The ID of this resource.
- `description` (String) Azure DevOps integration description
- `is_default` (Boolean) Azure DevOps integration is default
- `labels` (List of String) Azure DevOps integration labels
- `name` (String) Azure DevOps integration name
- `organization_url` (String) Azure DevOps integration organization url
- `space_id` (String) Azure DevOps integration space id
- `webhook_password` (String) Azure DevOps integration webhook password
- `webhook_url` (String) Azure DevOps integration webhook url
10 changes: 9 additions & 1 deletion docs/data-sources/bitbucket_cloud_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,16 @@ data "spacelift_bitbucket_cloud_integration" "bitbucket_cloud_integration" {}
<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `id` (String) Bitbucket Cloud integration id. If not provided, the default integration will be returned

### Read-Only

- `id` (String) The ID of this resource.
- `description` (String) Bitbucket Cloud integration description
- `is_default` (Boolean) Bitbucket Cloud integration is default
- `labels` (List of String) Bitbucket Cloud integration labels
- `name` (String) Bitbucket Cloud integration name
- `space_id` (String) Bitbucket Cloud integration space id
- `username` (String) Bitbucket Cloud username
- `webhook_url` (String) Bitbucket Cloud integration webhook URL
11 changes: 10 additions & 1 deletion docs/data-sources/bitbucket_datacenter_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,19 @@ data "spacelift_bitbucket_datacenter_integration" "bitbucket_datacenter_integrat
<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `id` (String) Bitbucket Datacenter integration id. If not provided, the default integration will be returned

### Read-Only

- `api_host` (String) Bitbucket Datacenter integration api host
- `id` (String) The ID of this resource.
- `description` (String) Bitbucket Datacenter integration description
- `is_default` (Boolean) Bitbucket Datacenter integration is default
- `labels` (List of String) Bitbucket Datacenter integration labels
- `name` (String) Bitbucket Datacenter integration name
- `space_id` (String) Bitbucket Datacenter integration space id
- `user_facing_host` (String) Bitbucket Datacenter integration user facing host
- `username` (String) Bitbucket Datacenter username
- `webhook_secret` (String) Bitbucket Datacenter integration webhook secret
- `webhook_url` (String) Bitbucket Datacenter integration webhook URL
11 changes: 10 additions & 1 deletion docs/data-sources/github_enterprise_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,18 @@ data "spacelift_github_enterprise_integration" "github_enterprise_integration" {
<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `id` (String) Github integration id. If not provided, the default integration will be returned

### Read-Only

- `api_host` (String) Github integration api host
- `app_id` (String) Github integration app id
- `id` (String) The ID of this resource.
- `description` (String) Github integration description
- `is_default` (Boolean) Github integration is default
- `labels` (List of String) Github integration labels
- `name` (String) Github integration name
- `space_id` (String) Github integration space id
- `webhook_secret` (String) Github integration webhook secret
- `webhook_url` (String) Github integration webhook url
11 changes: 10 additions & 1 deletion docs/data-sources/gitlab_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@ data "spacelift_gitlab_integration" "gitlab_integration" {}
<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `id` (String) Gitlab integration id. If not provided, the default integration will be returned

### Read-Only

- `api_host` (String) Gitlab integration api host
- `id` (String) The ID of this resource.
- `description` (String) Gitlab integration description
- `is_default` (Boolean) Gitlab integration is default
- `labels` (List of String) Gitlab integration labels
- `name` (String) Gitlab integration name
- `space_id` (String) Gitlab integration space id
- `webhook_secret` (String) Gitlab integration webhook secret
- `webhook_url` (String) Gitlab integration webhook url
5 changes: 5 additions & 0 deletions docs/data-sources/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ data "spacelift_module" "k8s-module" {

Read-Only:

- `id` (String)
- `project` (String)


Expand All @@ -62,6 +63,7 @@ Read-Only:

Read-Only:

- `id` (String)
- `namespace` (String)


Expand All @@ -70,6 +72,7 @@ Read-Only:

Read-Only:

- `id` (String)
- `namespace` (String)


Expand All @@ -78,6 +81,7 @@ Read-Only:

Read-Only:

- `id` (String)
- `namespace` (String)


Expand All @@ -86,4 +90,5 @@ Read-Only:

Read-Only:

- `id` (String)
- `namespace` (String)
5 changes: 5 additions & 0 deletions docs/data-sources/stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Read-Only:

Read-Only:

- `id` (String)
- `project` (String)


Expand All @@ -97,6 +98,7 @@ Read-Only:

Read-Only:

- `id` (String)
- `namespace` (String)


Expand All @@ -105,6 +107,7 @@ Read-Only:

Read-Only:

- `id` (String)
- `namespace` (String)


Expand All @@ -124,6 +127,7 @@ Read-Only:

Read-Only:

- `id` (String)
- `namespace` (String)


Expand All @@ -132,6 +136,7 @@ Read-Only:

Read-Only:

- `id` (String)
- `namespace` (String)


Expand Down
5 changes: 5 additions & 0 deletions docs/data-sources/stacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ Read-Only:

Read-Only:

- `id` (String)
- `project` (String)


Expand All @@ -194,6 +195,7 @@ Read-Only:

Read-Only:

- `id` (String)
- `namespace` (String)


Expand All @@ -202,6 +204,7 @@ Read-Only:

Read-Only:

- `id` (String)
- `namespace` (String)


Expand All @@ -221,6 +224,7 @@ Read-Only:

Read-Only:

- `id` (String)
- `namespace` (String)


Expand All @@ -229,6 +233,7 @@ Read-Only:

Read-Only:

- `id` (String)
- `namespace` (String)


Expand Down
20 changes: 20 additions & 0 deletions docs/resources/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ Required:

- `project` (String) The name of the Azure DevOps project

Optional:

- `id` (String) ID of the Azure Devops integration. If not specified, the default integration will be used.


<a id="nestedblock--bitbucket_cloud"></a>
### Nested Schema for `bitbucket_cloud`
Expand All @@ -81,6 +85,10 @@ Required:

- `namespace` (String) The Bitbucket project containing the repository

Optional:

- `id` (String) The ID of the Bitbucket Cloud integration. If not specified, the default integration will be used.


<a id="nestedblock--bitbucket_datacenter"></a>
### Nested Schema for `bitbucket_datacenter`
Expand All @@ -89,6 +97,10 @@ Required:

- `namespace` (String) The Bitbucket project containing the repository

Optional:

- `id` (String) The ID of the Bitbucket Datacenter integration. If not specified, the default integration will be used.


<a id="nestedblock--github_enterprise"></a>
### Nested Schema for `github_enterprise`
Expand All @@ -97,6 +109,10 @@ Required:

- `namespace` (String) The GitHub organization / user the repository belongs to

Optional:

- `id` (String) The ID of the GitHub Enterprise integration. If not specified, the default integration will be used.


<a id="nestedblock--gitlab"></a>
### Nested Schema for `gitlab`
Expand All @@ -105,6 +121,10 @@ Required:

- `namespace` (String) The GitLab namespace containing the repository

Optional:

- `id` (String) ID of the Gitlab integration. If not specified, the default integration will be used.

## Import

Import is supported using the following syntax:
Expand Down
Loading
Loading