generated from labd/terraform-provider-scaffolding-framework
-
-
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.
Merge pull request #3 from labd/feat/namespace
Feat/namespace
- Loading branch information
Showing
34 changed files
with
41,469 additions
and
760 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,3 @@ | ||
kind: Added | ||
body: Added namespace resource | ||
time: 2024-07-22T16:07:19.572818707+02:00 |
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,34 @@ | ||
name: release | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
cache: true | ||
|
||
- name: Import GPG key | ||
id: import_gpg | ||
uses: paultyng/[email protected] | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
PASSPHRASE: ${{ secrets.PASSPHRASE }} | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -33,3 +33,5 @@ website/vendor | |
|
||
# Keep windows files with windows line endings | ||
*.winfile eol=crlf | ||
|
||
local |
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,9 +1,16 @@ | ||
version: '3' | ||
|
||
tasks: | ||
dependencies: | ||
cmds: | ||
- go install github.com/bufbuild/buf/cmd/[email protected] | ||
- go install google.golang.org/protobuf/cmd/[email protected] | ||
- go install connectrpc.com/connect/cmd/[email protected] | ||
|
||
format: | ||
cmds: | ||
- go fmt ./... | ||
- terraform fmt -recursive ./examples | ||
|
||
test: | ||
cmds: | ||
|
@@ -22,3 +29,7 @@ tasks: | |
cmds: | ||
- go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./... | ||
- go tool cover -func=coverage.txt | ||
|
||
generate/sdk: | ||
cmds: | ||
- buf generate --path proto/wg/cosmo/common --path proto/wg/cosmo/platform --path proto/wg/cosmo/notifications --path proto/wg/cosmo/node |
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,21 @@ | ||
version: v2 | ||
managed: | ||
enabled: true | ||
disable: | ||
- file_option: go_package | ||
module: buf.build/googleapis/googleapis | ||
override: | ||
- file_option: go_package_prefix | ||
value: github.com/labd/terraform-provider-wundergraph/sdk | ||
plugins: | ||
- local: protoc-gen-connect-go | ||
out: sdk | ||
opt: paths=source_relative | ||
- local: protoc-gen-go | ||
out: sdk | ||
opt: paths=source_relative | ||
inputs: | ||
- git_repo: https://github.com/wundergraph/cosmo | ||
|
||
|
||
# https://github.com/wundergraph/cosmo/blob/main/proto/wg/cosmo/platform/v1/platform.proto |
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "wundergraph_namespace Resource - terraform-provider-wundergraph" | ||
subcategory: "" | ||
description: |- | ||
Namespace resource example. | ||
--- | ||
|
||
# wundergraph_namespace (Resource) | ||
|
||
Namespace resource example. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "wundergraph_namespace" "my-namespace" { | ||
name = "my-namespace" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the namespace. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Example identifier |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 +1,6 @@ | ||
provider "scaffolding" { | ||
# example configuration here | ||
provider "wundergraph" { | ||
api_key = "<your-api-key>" | ||
|
||
# The URL of the WunderGraph API. Default to https://cosmo-cp.wundergraph.com | ||
# api_url = "https://cosmo-cp.wundergraph.com" | ||
} |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
resource "wundergraph_namespace" "my-namespace" { | ||
name = "my-namespace" | ||
} |
Oops, something went wrong.