diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index 66e43957..bbb80630 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -107,6 +107,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
diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml
index 51550f9d..a724185d 100644
--- a/.github/workflows/prerelease.yml
+++ b/.github/workflows/prerelease.yml
@@ -108,6 +108,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
@@ -311,6 +318,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/action-install-gh-release@v1.11.0
+ 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
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7be23b5a..f7e5c752 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -107,6 +107,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
@@ -338,9 +345,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
diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml
index b7245d64..e09a81ca 100644
--- a/.github/workflows/run-acceptance-tests.yml
+++ b/.github/workflows/run-acceptance-tests.yml
@@ -117,6 +117,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
diff --git a/provider/cmd/pulumi-resource-keycloak/schema.json b/provider/cmd/pulumi-resource-keycloak/schema.json
index 92dbd1d2..4aff82b8 100644
--- a/provider/cmd/pulumi-resource-keycloak/schema.json
+++ b/provider/cmd/pulumi-resource-keycloak/schema.json
@@ -26,12 +26,14 @@
"openid": "OpenId",
"saml": "Saml"
},
- "compatibility": "tfbridge20"
+ "compatibility": "tfbridge20",
+ "respectSchemaVersion": true
},
"go": {
"importBasePath": "github.com/pulumi/pulumi-keycloak/sdk/v5/go/keycloak",
"generateResourceContainerTypes": true,
- "generateExtraInputTypes": true
+ "generateExtraInputTypes": true,
+ "respectSchemaVersion": true
},
"nodejs": {
"packageDescription": "A Pulumi package for creating and managing keycloak cloud resources.",
@@ -44,7 +46,8 @@
"@types/node": "^10.0.0"
},
"compatibility": "tfbridge20",
- "disableUnionOutputTypes": true
+ "disableUnionOutputTypes": true,
+ "respectSchemaVersion": true
},
"python": {
"requires": {
@@ -52,6 +55,7 @@
},
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/mrparkers/terraform-provider-keycloak)\n\u003e distributed under [MIT](https://mit-license.org/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-keycloak` repo](https://github.com/pulumi/pulumi-keycloak/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-keycloak` repo](https://github.com/mrparkers/terraform-provider-keycloak/issues).",
"compatibility": "tfbridge20",
+ "respectSchemaVersion": true,
"pyproject": {
"enabled": true
}
diff --git a/provider/resources.go b/provider/resources.go
index c248d311..03cf1750 100644
--- a/provider/resources.go
+++ b/provider/resources.go
@@ -172,6 +172,7 @@ func Provider() tfbridge.ProviderInfo {
"@types/node": "^10.0.0", // so we can access strongly typed node definitions.
"@types/mime": "^2.0.0",
},
+ RespectSchemaVersion: true,
},
Golang: &tfbridge.GolangInfo{
ImportBasePath: path.Join(
@@ -181,8 +182,10 @@ func Provider() tfbridge.ProviderInfo {
mainPkg,
),
GenerateResourceContainerTypes: true,
+ RespectSchemaVersion: true,
},
Python: &tfbridge.PythonInfo{
+ RespectSchemaVersion: true,
Requires: map[string]string{
"pulumi": ">=3.0.0,<4.0.0",
},
@@ -190,6 +193,7 @@ func Provider() tfbridge.ProviderInfo {
},
CSharp: &tfbridge.CSharpInfo{
+ RespectSchemaVersion: true,
PackageReferences: map[string]string{
"Pulumi": "3.*",
},
diff --git a/sdk/dotnet/Pulumi.Keycloak.csproj b/sdk/dotnet/Pulumi.Keycloak.csproj
index a0930d61..276bc6d2 100644
--- a/sdk/dotnet/Pulumi.Keycloak.csproj
+++ b/sdk/dotnet/Pulumi.Keycloak.csproj
@@ -9,6 +9,7 @@
https://pulumi.io
https://github.com/pulumi/pulumi-keycloak
logo.png
+ 5.0.0-alpha.0+dev
net6.0
enable
diff --git a/sdk/dotnet/pulumi-plugin.json b/sdk/dotnet/pulumi-plugin.json
index 347a2dfe..f20ff843 100644
--- a/sdk/dotnet/pulumi-plugin.json
+++ b/sdk/dotnet/pulumi-plugin.json
@@ -1,4 +1,5 @@
{
"resource": true,
- "name": "keycloak"
+ "name": "keycloak",
+ "version": "5.0.0-alpha.0+dev"
}
diff --git a/sdk/go/keycloak/internal/pulumiUtilities.go b/sdk/go/keycloak/internal/pulumiUtilities.go
index d466faef..cc1433c2 100644
--- a/sdk/go/keycloak/internal/pulumiUtilities.go
+++ b/sdk/go/keycloak/internal/pulumiUtilities.go
@@ -165,7 +165,7 @@ func callPlainInner(
func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOption {
defaults := []pulumi.ResourceOption{}
- version := SdkVersion
+ version := semver.MustParse("5.0.0-alpha.0+dev")
if !version.Equals(semver.Version{}) {
defaults = append(defaults, pulumi.Version(version.String()))
}
@@ -176,7 +176,7 @@ func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOptio
func PkgInvokeDefaultOpts(opts []pulumi.InvokeOption) []pulumi.InvokeOption {
defaults := []pulumi.InvokeOption{}
- version := SdkVersion
+ version := semver.MustParse("5.0.0-alpha.0+dev")
if !version.Equals(semver.Version{}) {
defaults = append(defaults, pulumi.Version(version.String()))
}
diff --git a/sdk/go/keycloak/pulumi-plugin.json b/sdk/go/keycloak/pulumi-plugin.json
index 347a2dfe..f20ff843 100644
--- a/sdk/go/keycloak/pulumi-plugin.json
+++ b/sdk/go/keycloak/pulumi-plugin.json
@@ -1,4 +1,5 @@
{
"resource": true,
- "name": "keycloak"
+ "name": "keycloak",
+ "version": "5.0.0-alpha.0+dev"
}
diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json
index 5ddb3e93..b5e4fe0f 100644
--- a/sdk/nodejs/package.json
+++ b/sdk/nodejs/package.json
@@ -1,6 +1,6 @@
{
"name": "@pulumi/keycloak",
- "version": "${VERSION}",
+ "version": "5.0.0-alpha.0+dev",
"description": "A Pulumi package for creating and managing keycloak cloud resources.",
"keywords": [
"pulumi",
@@ -22,6 +22,7 @@
},
"pulumi": {
"resource": true,
- "name": "keycloak"
+ "name": "keycloak",
+ "version": "5.0.0-alpha.0+dev"
}
}
diff --git a/sdk/python/pulumi_keycloak/pulumi-plugin.json b/sdk/python/pulumi_keycloak/pulumi-plugin.json
index 347a2dfe..f20ff843 100644
--- a/sdk/python/pulumi_keycloak/pulumi-plugin.json
+++ b/sdk/python/pulumi_keycloak/pulumi-plugin.json
@@ -1,4 +1,5 @@
{
"resource": true,
- "name": "keycloak"
+ "name": "keycloak",
+ "version": "5.0.0-alpha.0+dev"
}
diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml
index 6be221a8..3232be83 100644
--- a/sdk/python/pyproject.toml
+++ b/sdk/python/pyproject.toml
@@ -5,7 +5,7 @@
keywords = ["pulumi", "keycloak"]
readme = "README.md"
requires-python = ">=3.8"
- version = "0.0.0"
+ version = "5.0.0a0+dev"
[project.license]
text = "Apache-2.0"
[project.urls]