Skip to content

Commit

Permalink
import yaml.v2 as it used to be (#262)
Browse files Browse the repository at this point in the history
Signed-off-by: Nandor Kracser <[email protected]>
  • Loading branch information
bonifaido authored Jun 3, 2020
1 parent 74bc090 commit 620988d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ require (
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1 // indirect
gopkg.in/square/go-jose.v2 v2.3.1 // indirect
gopkg.in/yaml.v2 v2.2.8
gopkg.in/yaml.v3 v3.0.0-20200121175148-a6ecf24a6d71
k8s.io/apimachinery v0.18.2
k8s.io/client-go v0.18.2
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/command/cluster/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
"github.com/banzaicloud/banzai-cli/internal/cli"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
yaml "gopkg.in/yaml.v3"
yaml "gopkg.in/yaml.v2"

serviceutils "github.com/banzaicloud/banzai-cli/internal/cli/command/cluster/integratedservice/utils"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/command/controlplane/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/google/uuid"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"gopkg.in/yaml.v3"
"gopkg.in/yaml.v2"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/command/controlplane/installer_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"gopkg.in/yaml.v3"
"gopkg.in/yaml.v2"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/command/controlplane/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/banzaicloud/banzai-cli/internal/cli/input"
"github.com/imdario/mergo"
log "github.com/sirupsen/logrus"
"gopkg.in/yaml.v3"
"gopkg.in/yaml.v2"
)

func fileExists(filename string) bool {
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/input/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"

// "gopkg.in/yaml.v3" -- could not be used for kubernetes types
// "gopkg.in/yaml.v2" -- could not be used for kubernetes types
"github.com/ghodss/yaml"
v1 "k8s.io/client-go/tools/clientcmd/api/v1"

Expand Down
2 changes: 1 addition & 1 deletion internal/cli/output/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"io"

"emperror.dev/errors"
yaml "gopkg.in/yaml.v3"
yaml "gopkg.in/yaml.v2"

"github.com/banzaicloud/banzai-cli/pkg/formatting"
)
Expand Down

0 comments on commit 620988d

Please sign in to comment.