Skip to content

Commit

Permalink
Update GitHub Actions workflows. (#468)
Browse files Browse the repository at this point in the history
This PR was automatically generated by the
update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt
repo, from commit c34e73d55a9ea7e72ec250dd792b0c6b5a94cc0e.
  • Loading branch information
pulumi-bot authored May 15, 2024
1 parent 18617e1 commit 4bdeb2a
Show file tree
Hide file tree
Showing 13 changed files with 122 additions and 20 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ jobs:
run: make build_${{ matrix.language }}
- name: Check worktree clean
uses: pulumi/git-status-check-action@v1
with:
allowed-changes: |
sdk/**/pulumi-plugin.json
sdk/dotnet/Pulumi.*.csproj
sdk/go/*/internal/pulumiUtilities.go
sdk/nodejs/package.json
sdk/python/pyproject.toml
- name: Compress SDK folder
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .
- name: Upload artifacts
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ jobs:
run: make build_${{ matrix.language }}
- name: Check worktree clean
uses: pulumi/git-status-check-action@v1
with:
allowed-changes: |
sdk/**/pulumi-plugin.json
sdk/dotnet/Pulumi.*.csproj
sdk/go/*/internal/pulumiUtilities.go
sdk/nodejs/package.json
sdk/python/pyproject.toml
- name: Compress SDK folder
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .
- name: Upload artifacts
Expand Down Expand Up @@ -304,6 +311,42 @@ jobs:
if: failure()
name: Send Publish Failure To Slack
uses: rtCamp/action-slack-notify@v2
publish_go_sdk:
name: publish_go_sdk
needs: publish_sdk
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
tag: v0.0.46
repo: pulumi/pulumictl
- id: version
uses: pulumi/provider-version-action@v1
- name: Download Go SDK
uses: actions/download-artifact@v4
with:
name: go-sdk.tar.gz
path: ${{ github.workspace }}/sdk/
- name: Uncompress Go SDK
run: tar -zxf ${{ github.workspace }}/sdk/go.tar.gz -C
${{ github.workspace }}/sdk/go
shell: bash
- uses: pulumi/publish-go-sdk-action@v1
with:
repository: ${{ github.repository }}
base-ref: ${{ github.sha }}
source: sdk
path: sdk
version: ${{ steps.version.outputs.version }}
additive: false
# Avoid including other language SDKs & artifacts in the commit
files: |
go.*
go/**
!*.tar.gz
test:
name: test
needs: build_sdk
Expand Down
32 changes: 29 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ jobs:
run: make build_${{ matrix.language }}
- name: Check worktree clean
uses: pulumi/git-status-check-action@v1
with:
allowed-changes: |
sdk/**/pulumi-plugin.json
sdk/dotnet/Pulumi.*.csproj
sdk/go/*/internal/pulumiUtilities.go
sdk/nodejs/package.json
sdk/python/pyproject.toml
- name: Compress SDK folder
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .
- name: Upload artifacts
Expand Down Expand Up @@ -331,9 +338,28 @@ jobs:
repo: pulumi/pulumictl
- id: version
uses: pulumi/provider-version-action@v1
- name: Add SDK version tag
run: git tag "sdk/v${{ steps.version.outputs.version }}" && git push origin
"sdk/v${{ steps.version.outputs.version }}"
- name: Download Go SDK
uses: actions/download-artifact@v4
with:
name: go-sdk.tar.gz
path: ${{ github.workspace }}/sdk/
- name: Uncompress Go SDK
run: tar -zxf ${{ github.workspace }}/sdk/go.tar.gz -C
${{ github.workspace }}/sdk/go
shell: bash
- uses: pulumi/publish-go-sdk-action@v1
with:
repository: ${{ github.repository }}
base-ref: ${{ github.sha }}
source: sdk
path: sdk
version: ${{ steps.version.outputs.version }}
additive: false
# Avoid including other language SDKs & artifacts in the commit
files: |
go.*
go/**
!*.tar.gz
clean_up_release_labels:
name: Clean up release labels
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/run-acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ jobs:
run: make build_${{ matrix.language }}
- name: Check worktree clean
uses: pulumi/git-status-check-action@v1
with:
allowed-changes: |
sdk/**/pulumi-plugin.json
sdk/dotnet/Pulumi.*.csproj
sdk/go/*/internal/pulumiUtilities.go
sdk/nodejs/package.json
sdk/python/pyproject.toml
- name: Compress SDK folder
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .
- name: Upload artifacts
Expand Down
10 changes: 7 additions & 3 deletions provider/cmd/pulumi-resource-confluentcloud/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
"namespaces": {
"confluentcloud": "ConfluentCloud"
},
"compatibility": "tfbridge20"
"compatibility": "tfbridge20",
"respectSchemaVersion": true
},
"go": {
"importBasePath": "github.com/pulumi/pulumi-confluentcloud/sdk/go/confluentcloud",
"generateResourceContainerTypes": true,
"generateExtraInputTypes": true
"generateExtraInputTypes": true,
"respectSchemaVersion": true
},
"nodejs": {
"packageDescription": "A Pulumi package for creating and managing Confluent cloud resources.",
Expand All @@ -41,14 +43,16 @@
"@types/node": "^10.0.0"
},
"compatibility": "tfbridge20",
"disableUnionOutputTypes": true
"disableUnionOutputTypes": true,
"respectSchemaVersion": true
},
"python": {
"requires": {
"pulumi": "\u003e=3.0.0,\u003c4.0.0"
},
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/confluentinc/terraform-provider-confluent)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-confluentcloud` repo](https://github.com/pulumi/pulumi-confluentcloud/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-confluent` repo](https://github.com/confluentinc/terraform-provider-confluent/issues).",
"compatibility": "tfbridge20",
"respectSchemaVersion": true,
"pyproject": {
"enabled": true
}
Expand Down
22 changes: 16 additions & 6 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ func Provider() tfbridge.ProviderInfo {
Tok: tfbridge.MakeResource(mainPkg, mainMod, "ApiKey"),
Fields: map[string]*tfbridge.SchemaInfo{
"display_name": tfbridge.AutoName("displayName", 255, "-"),
}},
"confluent_cluster_link": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "ClusterLink"),
},
},
"confluent_cluster_link": {
Tok: tfbridge.MakeResource(mainPkg, mainMod, "ClusterLink"),
Fields: map[string]*tfbridge.SchemaInfo{
"link_name": tfbridge.AutoName("link", 255, "-"),
},
Expand All @@ -81,16 +83,19 @@ func Provider() tfbridge.ProviderInfo {
Tok: tfbridge.MakeResource(mainPkg, mainMod, "Environment"),
Fields: map[string]*tfbridge.SchemaInfo{
"display_name": tfbridge.AutoName("displayName", 255, "-"),
}},
},
},
"confluent_kafka_acl": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "KafkaAcl")},
"confluent_kafka_client_quota": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "KafkaClientQuota")},
"confluent_kafka_cluster": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "KafkaCluster"),
"confluent_kafka_cluster": {
Tok: tfbridge.MakeResource(mainPkg, mainMod, "KafkaCluster"),
Fields: map[string]*tfbridge.SchemaInfo{
"display_name": tfbridge.AutoName("displayName", 255, "-"),
"standard": {Name: "standard", MaxItemsOne: tfbridge.True()},
"basic": {Name: "basic", MaxItemsOne: tfbridge.True()},
"dedicated": {Name: "dedicated", MaxItemsOne: tfbridge.True()},
}},
},
},
"confluent_kafka_cluster_config": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "KafkaClusterConfig")},
"confluent_kafka_mirror_topic": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "KafkaMirrorTopic")},
"confluent_kafka_topic": {
Expand Down Expand Up @@ -147,7 +152,8 @@ func Provider() tfbridge.ProviderInfo {
Tok: tfbridge.MakeResource(mainPkg, mainMod, "ServiceAccount"),
Fields: map[string]*tfbridge.SchemaInfo{
"display_name": tfbridge.AutoName("displayName", 255, "-"),
}},
},
},
"confluent_identity_pool": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "IdentityPool")},
"confluent_identity_provider": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "IdentityProvider")},
"confluent_ksql_cluster": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "KsqlCluster")},
Expand Down Expand Up @@ -177,8 +183,10 @@ func Provider() tfbridge.ProviderInfo {
"@types/node": "^10.0.0", // so we can access strongly typed node definitions.
"@types/mime": "^2.0.0",
},
RespectSchemaVersion: true,
},
Python: &tfbridge.PythonInfo{
RespectSchemaVersion: true,
Requires: map[string]string{
"pulumi": ">=3.0.0,<4.0.0",
},
Expand All @@ -193,8 +201,10 @@ func Provider() tfbridge.ProviderInfo {
mainPkg,
),
GenerateResourceContainerTypes: true,
RespectSchemaVersion: true,
},
CSharp: &tfbridge.CSharpInfo{
RespectSchemaVersion: true,
PackageReferences: map[string]string{
"Pulumi": "3.*",
},
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/Pulumi.ConfluentCloud.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion sdk/dotnet/pulumi-plugin.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/go/confluentcloud/internal/pulumiUtilities.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion sdk/go/confluentcloud/pulumi-plugin.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions sdk/nodejs/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion sdk/python/pulumi_confluentcloud/pulumi-plugin.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/python/pyproject.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4bdeb2a

Please sign in to comment.