Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.

Commit

Permalink
Upgrade to the latest Pulumi SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
benesch committed Jan 3, 2022
1 parent b5480cf commit 1b76510
Show file tree
Hide file tree
Showing 6 changed files with 256 additions and 79 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ bin
sdk
__pycache__
venv
node_modules
4 changes: 4 additions & 0 deletions cmd/pulumi-resource-docker-buildkit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ type dockerBuildkitProvider struct {
loginLock sync.Mutex
}

func (k *dockerBuildkitProvider) Call(ctx context.Context, req *rpc.CallRequest) (*rpc.CallResponse, error) {
return nil, fmt.Errorf("Call is not yet implemented")
}

func (k *dockerBuildkitProvider) CheckConfig(ctx context.Context, req *rpc.CheckRequest) (*rpc.CheckResponse, error) {
return &rpc.CheckResponse{Inputs: req.GetNews()}, nil
}
Expand Down
12 changes: 8 additions & 4 deletions cmd/pulumi-sdkgen-docker-buildkit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package main

import (
"encoding/json"
"fmt"
"os"
"path/filepath"
Expand Down Expand Up @@ -146,9 +145,14 @@ func run(version string) error {
},
},
},
Language: map[string]json.RawMessage{
"python": json.RawMessage("{}"),
"nodejs": json.RawMessage(`{"packageName": "@materializeinc/pulumi-docker-buildkit"}`),
Language: map[string]schema.RawMessage{
"python": schema.RawMessage("{}"),
"nodejs": schema.RawMessage(`{
"packageName": "@materializeinc/docker-buildkit",
"dependencies": {
"@pulumi/pulumi": "^3.0.0"
}
}`),
},
}
ppkg, err := schema.ImportSpec(spec, nil)
Expand Down
4 changes: 2 additions & 2 deletions examples/aws-python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pulumi==3.10.3
pulumi==3.21.0
pulumi-aws==4.17.0
-e file:../../sdk/python
-e file:../../sdk/python
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ require (
github.com/golang/protobuf v1.5.2
github.com/moby/buildkit v0.9.0
github.com/pkg/errors v0.9.1
github.com/pulumi/pulumi/pkg/v3 v3.0.0
github.com/pulumi/pulumi/sdk/v3 v3.0.0
golang.org/x/sys v0.0.0-20210426230700-d19ff857e887 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.21.0
github.com/pulumi/pulumi/sdk/v3 v3.21.0
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect
)
Loading

0 comments on commit 1b76510

Please sign in to comment.