This is experimental project, for demonstration purposes, do not use in production.
The Pulumi Provider for kind enables Pulumi to provision local Kubernetes clusters on base of Kubernetes IN Docker (kind).
This provider is a Terraform Bridge for terraform-provider-kind.
First, clone this repo with the name of the desired provider in place of kind
:
git clone https://github.com/pulumi/pulumi-tf-provider-boilerplate pulumi-kind
Second, replace references to kind
with the name of your provider:
make prepare NAME=kind REPOSITORY=github.com/pawelprazak/pulumi-kind
Next, list the configuration points for the provider in the area of the README.
Note: If the name of the desired Pulumi provider differs from the name of the Terraform provider, you will need to carefully distinguish between the references - see https://github.com/pulumi/pulumi-azure for an example.
In order to properly build the sdks, the following tools are expected:
pulumictl
(See the project's README for installation instructions: https://github.com/pulumi/pulumictl)
In the root of the repository, run:
(cd provider && go get github.com/kyma-incubator/terraform-provider-kind)
(wherekind
is the name of the provider - note the parenthesis to run this in a subshell)(cd provider && go mod download)
- Edit
provider/resources.go
to map each resource, and specify provider information make build_sdks
make clean cleanup cleanup_local
make provider lint_provider
make install_local
make build_nodejs
make install_nodejs_sdk
make test
export GITHUB_TOKEN="..."
make tag
make prerelease_snapshot
make release
To manually install the plugin (pulumi #13), e.g.:
pulumi plugin install resource kind v0.0.1-alpha.1621596329+ac2e0588 --server https://github.com/pawelprazak/pulumi-kind/releases/download/v0.0.1-alpha.1621596329+ac2e0588
This package is available in many languages in the standard packaging formats.
To use from JavaScript or TypeScript in Node.js, install using either npm
:
$ npm install @pawelprazak/pulumi-kind
or yarn
:
$ yarn add @pawelprazak/pulumi-kind
Not published. I don't have a present need for this. If you do please open a pull request with instructions for how to publish a PIP package.
To use from Python, install using pip
:
$ pip install pulumi_kind
Not published. I don't have a present need for this. If you do please open a pull request with instructions for how to publish a .NET package.
To use from Go, use go get
to grab the latest version of the library
$ go get github.com/pawelprazak/pulumi-kind/sdk/go/...
TODO
TODO
For detailed reference documentation, please visit the API docs.