Skip to content

Commit

Permalink
feat: upgrade kube2pulumi to v0.0.11 (#10)
Browse files Browse the repository at this point in the history
chore(docs): update pulumi kubernetes version
  • Loading branch information
Hunter-Thompson authored Aug 30, 2022
1 parent 5c4c829 commit 95a9c3d
Show file tree
Hide file tree
Showing 280 changed files with 36,361 additions and 8,244 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Uses Pulumi's kube2pulumi as a base.

```
$ curl -fsSL https://get.pulumi.com | sh
$ pulumi plugin install resource kubernetes v2.4.2
$ pulumi plugin install resource kubernetes v3.0.0
```

## Usage
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ go 1.16

require (
github.com/bradleyjkemp/cupaloy v2.3.0+incompatible
github.com/pulumi/kube2pulumi v0.0.10
github.com/pulumi/kube2pulumi v0.0.11
github.com/spf13/cobra v1.0.0
github.com/spf13/viper v1.8.1
golang.org/x/net v0.0.0-20210520170846-37e1c6afe023 // indirect
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 // indirect
)
160 changes: 149 additions & 11 deletions go.sum

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions pkg/kube2cdk8s/kube2cdk8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package kube2cdk8s

import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"regexp"
Expand All @@ -14,13 +13,12 @@ import (
)

func Kube2CDK8S(filePath string) (string, error) {

path, _, err := kube2pulumi.Kube2PulumiFile(filePath, "typescript")
path, _, err := kube2pulumi.Kube2PulumiFile(filePath, "", "typescript")
if err != nil {
return "", err
}

input, err := ioutil.ReadFile(path)
input, err := os.ReadFile(path)
if err != nil {
return "", err
}
Expand Down Expand Up @@ -71,10 +69,9 @@ func Kube2CDK8S(filePath string) (string, error) {
}

func Kube2CDK8SMultiple(filePath string) (string, error) {

var result string

input, err := ioutil.ReadFile(filePath)
input, err := os.ReadFile(filePath)
if err != nil {
return "", err
}
Expand Down
3 changes: 1 addition & 2 deletions util/util.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package util

import (
"io/ioutil"
"os"
)

func CreateTempFile(text []byte) (*os.File, error) {
tmpFile, err := ioutil.TempFile(os.TempDir(), "prefix-")
tmpFile, err := os.CreateTemp(os.TempDir(), "prefix-")
if err != nil {
return nil, err
}
Expand Down
24 changes: 0 additions & 24 deletions vendor/github.com/gofrs/flock/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions vendor/github.com/gofrs/flock/.travis.yml

This file was deleted.

27 changes: 0 additions & 27 deletions vendor/github.com/gofrs/flock/LICENSE

This file was deleted.

41 changes: 0 additions & 41 deletions vendor/github.com/gofrs/flock/README.md

This file was deleted.

25 changes: 0 additions & 25 deletions vendor/github.com/gofrs/flock/appveyor.yml

This file was deleted.

127 changes: 0 additions & 127 deletions vendor/github.com/gofrs/flock/flock.go

This file was deleted.

Loading

0 comments on commit 95a9c3d

Please sign in to comment.