Skip to content

Commit

Permalink
Make kong_consumer_key_auth Resource Improbable (#154)
Browse files Browse the repository at this point in the history
* feat: make the kong_consumer_key_auth resource importable

* chore: update the workflow to use crazy-max's action for pgp

and another linting fix release workflow
  • Loading branch information
devanshutanna authored Apr 11, 2024
1 parent 9e50bd9 commit c76ec53
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
-
name: Import GPG key
id: import_gpg
uses: hashicorp/ghaction-import-gpg@v2.1.0
env:
uses: crazy-max/ghaction-import-gpg@v6.1.0
with:
# These secrets will need to be configured for the repository:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
-
name: Run GoReleaser
uses: goreleaser/[email protected]
Expand Down
4 changes: 3 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ builds:
ignore:
- goos: darwin
goarch: '386'
- goos: windows
goarch: 'arm64'
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
- format: zip
Expand All @@ -47,7 +49,7 @@ signs:
- "${signature}"
- "--detach-sign"
- "${artifact}"
release:
# release:
# If you want to manually examine the release before its live, uncomment this line:
# draft: true
changelog:
Expand Down
3 changes: 3 additions & 0 deletions kong/resource_kong_consumer_key_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ func resourceKongConsumerKeyAuth() *schema.Resource {
ReadContext: resourceKongConsumerKeyAuthRead,
DeleteContext: resourceKongConsumerKeyAuthDelete,
UpdateContext: resourceKongConsumerKeyAuthUpdate,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
Schema: map[string]*schema.Schema{
"consumer_id": {
Type: schema.TypeString,
Expand Down

0 comments on commit c76ec53

Please sign in to comment.