Skip to content

Commit c76ec53

Browse files
Make kong_consumer_key_auth Resource Improbable (#154)
* 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
1 parent 9e50bd9 commit c76ec53

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
-
3333
name: Import GPG key
3434
id: import_gpg
35-
uses: hashicorp/ghaction-import-gpg@v2.1.0
36-
env:
35+
uses: crazy-max/ghaction-import-gpg@v6.1.0
36+
with:
3737
# These secrets will need to be configured for the repository:
38-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
39-
PASSPHRASE: ${{ secrets.PASSPHRASE }}
38+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
39+
passphrase: ${{ secrets.PASSPHRASE }}
4040
-
4141
name: Run GoReleaser
4242
uses: goreleaser/goreleaser-action@v2.5.0

.goreleaser.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ builds:
2828
ignore:
2929
- goos: darwin
3030
goarch: '386'
31+
- goos: windows
32+
goarch: 'arm64'
3133
binary: '{{ .ProjectName }}_v{{ .Version }}'
3234
archives:
3335
- format: zip
@@ -47,7 +49,7 @@ signs:
4749
- "${signature}"
4850
- "--detach-sign"
4951
- "${artifact}"
50-
release:
52+
# release:
5153
# If you want to manually examine the release before its live, uncomment this line:
5254
# draft: true
5355
changelog:

kong/resource_kong_consumer_key_auth.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ func resourceKongConsumerKeyAuth() *schema.Resource {
1515
ReadContext: resourceKongConsumerKeyAuthRead,
1616
DeleteContext: resourceKongConsumerKeyAuthDelete,
1717
UpdateContext: resourceKongConsumerKeyAuthUpdate,
18+
Importer: &schema.ResourceImporter{
19+
State: schema.ImportStatePassthrough,
20+
},
1821
Schema: map[string]*schema.Schema{
1922
"consumer_id": {
2023
Type: schema.TypeString,

0 commit comments

Comments
 (0)