-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cdf6215
Showing
3,547 changed files
with
741,194 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,24 @@ | ||
provider: junipermist | ||
major-version: 0 | ||
makeTemplate: bridged | ||
generate-nightly-test-workflow: true | ||
providerDefaultBranch: main | ||
|
||
plugins: | ||
- name: std | ||
version: "1.6.2" | ||
- name: terraform | ||
version: "1.0.16" | ||
kind: converter | ||
|
||
actions: | ||
preTest: | ||
- name: make upstream | ||
run: | | ||
make upstream | ||
- name: Run provider tests | ||
run: | | ||
cd provider && go test -v -json -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 . 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
# Use `pulumi convert` for translating examples from TF to Pulumi. | ||
pulumiConvert: 1 |
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,12 @@ | ||
FROM jetpackio/devbox:latest | ||
|
||
# Installing your devbox project | ||
WORKDIR /code | ||
COPY devbox.json devbox.json | ||
COPY devbox.lock devbox.lock | ||
RUN sudo chown -R "${DEVBOX_USER}:${DEVBOX_USER}" /code | ||
|
||
|
||
RUN devbox run -- echo "Installed Packages." | ||
|
||
RUN devbox shellenv --init-hook >> ~/.profile |
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,16 @@ | ||
{ | ||
"name": "Devbox Remote Container", | ||
"build": { | ||
"dockerfile": "./Dockerfile", | ||
"context": ".." | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": {}, | ||
"extensions": [ | ||
"jetpack-io.devbox" | ||
] | ||
} | ||
}, | ||
"remoteUser": "devbox" | ||
} |
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 @@ | ||
sdk/**/* linguist-generated=true |
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,69 @@ | ||
name: Bug Report | ||
description: Report something that's not working correctly | ||
labels: ["kind/bug", "needs-triage"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
You can also ask questions on our [Community Slack](https://slack.pulumi.com/). | ||
- type: textarea | ||
id: what-happened | ||
attributes: | ||
label: Describe what happened | ||
description: Please summarize what happened, including what Pulumi commands you ran, as well as | ||
an inline snippet of any relevant error or console output. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: sample-program | ||
attributes: | ||
label: Sample program | ||
description: | | ||
<details><summary>Provide a reproducible sample program</summary> | ||
If this is a bug you encountered while running a Pulumi command, please provide us with a minimal, | ||
self-contained Pulumi program that reproduces this behavior so that we can investigate on our end. | ||
Without a functional reproduction, we will not be able to prioritize this bug. | ||
**Note:** If the program output is more than a few lines, please send us a Gist or a link to a file. | ||
</details> | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: log-output | ||
attributes: | ||
label: Log output | ||
description: | | ||
<details><summary>How to Submit Logs</summary> | ||
If this is something that is dependent on your environment, please also provide us with the output of | ||
`pulumi up --logtostderr --logflow -v=10` from the root of your project. | ||
We may also ask you to supply us with debug output following [these steps](https://www.pulumi.com/docs/using-pulumi/pulumi-packages/debugging-provider-packages/). | ||
**Note:** If the log output is more than a few lines, please send us a Gist or a link to a file. | ||
</details> | ||
- type: textarea | ||
id: resources | ||
attributes: | ||
label: Affected Resource(s) | ||
description: Please list the affected Pulumi Resource(s) or Function(s). | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: versions | ||
attributes: | ||
label: Output of `pulumi about` | ||
description: Provide the output of `pulumi about` from the root of your project. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: ctx | ||
attributes: | ||
label: Additional context | ||
description: Anything else you would like to add? | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: voting | ||
attributes: | ||
label: Contributing | ||
value: | | ||
Vote on this issue by adding a 👍 reaction. | ||
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already). |
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,16 @@ | ||
name: Download binary assets | ||
description: Downloads the provider and tfgen binaries to `bin/`. | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download provider + tfgen binaries | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: junipermist-provider.tar.gz | ||
path: ${{ github.workspace }}/bin | ||
- name: Untar provider binaries | ||
shell: bash | ||
run: | | ||
tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace}}/bin | ||
find ${{ github.workspace }} -name "pulumi-*-junipermist" -print -exec chmod +x {} \; |
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,19 @@ | ||
name: Download SDK asset | ||
description: Restores the SDK asset for a language. | ||
|
||
inputs: | ||
language: | ||
required: true | ||
description: One of nodejs, python, dotnet, go, java | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download ${{ inputs.language }} SDK | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ inputs.language }}-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- name: Uncompress SDK folder | ||
shell: bash | ||
run: tar -zxf ${{ github.workspace }}/sdk/${{ inputs.language }}.tar.gz -C ${{ github.workspace }}/sdk/${{ inputs.language }} |
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,81 @@ | ||
name: Setup tools | ||
description: Installs Go, Pulumi, pulumictl, schema-tools, Node.JS, Python, dotnet and Java. | ||
|
||
inputs: | ||
tools: | ||
description: | | ||
Comma separated list of tools to install. The default of "all" installs all tools. Available tools are: | ||
go | ||
pulumicli | ||
pulumictl | ||
schema-tools | ||
node | ||
python | ||
dotnet | ||
java | ||
default: all | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install Go | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'go') | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.21.x" | ||
cache-dependency-path: | | ||
provider/*.sum | ||
upstream/*.sum | ||
sdk/*.sum | ||
- name: Install pulumictl | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'pulumictl') | ||
uses: jaxxstorm/action-install-gh-release@v1.11.0 | ||
with: | ||
tag: v0.0.46 | ||
repo: pulumi/pulumictl | ||
|
||
- name: Install Pulumi CLI | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'pulumicli') | ||
uses: pulumi/actions@v5 | ||
with: | ||
pulumi-version: "dev" | ||
|
||
- name: Install Schema Tools | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'schema-tools') | ||
uses: jaxxstorm/action-install-gh-release@v1.11.0 | ||
with: | ||
repo: pulumi/schema-tools | ||
|
||
- name: Setup Node | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'node') | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
registry-url: https://registry.npmjs.org | ||
|
||
- name: Setup DotNet | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'dotnet') | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- name: Setup Python | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'python') | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11.8 | ||
|
||
- name: Setup Java | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'java') | ||
uses: actions/setup-java@v4 | ||
with: | ||
cache: gradle | ||
distribution: temurin | ||
java-version: 11 | ||
|
||
- name: Setup Gradle | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'java') | ||
uses: gradle/gradle-build-action@v3 | ||
with: | ||
gradle-version: 7.6 |
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,15 @@ | ||
name: Upload bin assets | ||
description: Uploads the provider and tfgen binaries to `bin/`. | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Tar provider binaries | ||
shell: bash | ||
run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace }}/bin/ pulumi-resource-junipermist pulumi-tfgen-junipermist | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: junipermist-provider.tar.gz | ||
path: ${{ github.workspace }}/bin/provider.tar.gz | ||
retention-days: 30 |
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,20 @@ | ||
name: Upload SDK asset | ||
description: Upload the SDK for a specific language as an asset for the workflow. | ||
|
||
inputs: | ||
language: | ||
required: true | ||
description: One of nodejs, python, dotnet, go, java | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Compress SDK folder | ||
shell: bash | ||
run: tar -zcf sdk/${{ inputs.language }}.tar.gz -C sdk/${{ inputs.language }} . | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.language }}-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/${{ inputs.language }}.tar.gz | ||
retention-days: 30 |
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,56 @@ | ||
name: "Build Provider" | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
description: Version of the provider to build | ||
|
||
jobs: | ||
build_provider: | ||
name: Build ${{ matrix.platform.os }}-${{ matrix.platform.arch }} | ||
runs-on: ubuntu-latest | ||
env: | ||
PROVIDER_VERSION: ${{ inputs.version }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
platform: | ||
- os: linux | ||
arch: amd64 | ||
- os: linux | ||
arch: arm64 | ||
- os: darwin | ||
arch: amd64 | ||
- os: darwin | ||
arch: arm64 | ||
- os: windows | ||
arch: amd64 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
- name: Setup tools | ||
uses: ./.github/actions/setup-tools | ||
with: | ||
tools: pulumictl, go | ||
- name: Download schema-embed.json | ||
uses: actions/download-artifact@v4 | ||
with: | ||
# Use a pattern to avoid failing if the artifact doesn't exist | ||
pattern: schema-embed.* | ||
# Avoid creating directories for each artifact | ||
merge-multiple: true | ||
path: provider/cmd/pulumi-resource-junipermist/schema-embed.json | ||
- name: Prepare for build | ||
# This installs plugins and prepares upstream | ||
run: make upstream | ||
- name: Build & package provider | ||
run: make provider_dist-${{ matrix.platform.os }}-${{ matrix.platform.arch }} | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pulumi-resource-junipermist-v${{ inputs.version }}-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz | ||
path: bin/pulumi-resource-junipermist-v${{ inputs.version }}-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz | ||
retention-days: 30 |
Oops, something went wrong.