Skip to content

Commit 95a9c3d

Browse files
feat: upgrade kube2pulumi to v0.0.11 (#10)
chore(docs): update pulumi kubernetes version
1 parent 5c4c829 commit 95a9c3d

File tree

280 files changed

+36361
-8244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

280 files changed

+36361
-8244
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Uses Pulumi's kube2pulumi as a base.
1313

1414
```
1515
$ curl -fsSL https://get.pulumi.com | sh
16-
$ pulumi plugin install resource kubernetes v2.4.2
16+
$ pulumi plugin install resource kubernetes v3.0.0
1717
```
1818

1919
## Usage

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ go 1.16
44

55
require (
66
github.com/bradleyjkemp/cupaloy v2.3.0+incompatible
7-
github.com/pulumi/kube2pulumi v0.0.10
7+
github.com/pulumi/kube2pulumi v0.0.11
88
github.com/spf13/cobra v1.0.0
99
github.com/spf13/viper v1.8.1
1010
golang.org/x/net v0.0.0-20210520170846-37e1c6afe023 // indirect
11-
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 // indirect
1211
)

go.sum

Lines changed: 149 additions & 11 deletions
Large diffs are not rendered by default.

pkg/kube2cdk8s/kube2cdk8s.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package kube2cdk8s
22

33
import (
44
"fmt"
5-
"io/ioutil"
65
"os"
76
"path/filepath"
87
"regexp"
@@ -14,13 +13,12 @@ import (
1413
)
1514

1615
func Kube2CDK8S(filePath string) (string, error) {
17-
18-
path, _, err := kube2pulumi.Kube2PulumiFile(filePath, "typescript")
16+
path, _, err := kube2pulumi.Kube2PulumiFile(filePath, "", "typescript")
1917
if err != nil {
2018
return "", err
2119
}
2220

23-
input, err := ioutil.ReadFile(path)
21+
input, err := os.ReadFile(path)
2422
if err != nil {
2523
return "", err
2624
}
@@ -71,10 +69,9 @@ func Kube2CDK8S(filePath string) (string, error) {
7169
}
7270

7371
func Kube2CDK8SMultiple(filePath string) (string, error) {
74-
7572
var result string
7673

77-
input, err := ioutil.ReadFile(filePath)
74+
input, err := os.ReadFile(filePath)
7875
if err != nil {
7976
return "", err
8077
}

util/util.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
package util
22

33
import (
4-
"io/ioutil"
54
"os"
65
)
76

87
func CreateTempFile(text []byte) (*os.File, error) {
9-
tmpFile, err := ioutil.TempFile(os.TempDir(), "prefix-")
8+
tmpFile, err := os.CreateTemp(os.TempDir(), "prefix-")
109
if err != nil {
1110
return nil, err
1211
}

vendor/github.com/gofrs/flock/.gitignore

Lines changed: 0 additions & 24 deletions
This file was deleted.

vendor/github.com/gofrs/flock/.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

vendor/github.com/gofrs/flock/LICENSE

Lines changed: 0 additions & 27 deletions
This file was deleted.

vendor/github.com/gofrs/flock/README.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

vendor/github.com/gofrs/flock/appveyor.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)