Skip to content

Commit

Permalink
deps: Move to sigs.k8s.io/yaml (#429)
Browse files Browse the repository at this point in the history
https://github.com/kubernetes-sigs/yaml is a more active fork of
github.com/ghodss/yaml.

Signed-off-by: Manuel Rüger <[email protected]>
  • Loading branch information
mrueg authored Aug 30, 2023
1 parent c76e810 commit 882fbab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/plexsystems/konstraint
go 1.19

require (
github.com/ghodss/yaml v1.0.0
github.com/open-policy-agent/frameworks/constraint v0.0.0-20220218180203-c2a0d8cdf85a
github.com/open-policy-agent/opa v0.55.0
github.com/sirupsen/logrus v1.9.3
Expand All @@ -12,6 +11,7 @@ require (
golang.org/x/text v0.12.0
k8s.io/apiextensions-apiserver v0.28.1
k8s.io/apimachinery v0.28.1
sigs.k8s.io/yaml v1.3.0
)

require (
Expand All @@ -24,6 +24,7 @@ require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emicklei/go-restful/v3 v3.10.1 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
Expand Down Expand Up @@ -86,5 +87,4 @@ require (
sigs.k8s.io/controller-runtime v0.11.1 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)
2 changes: 1 addition & 1 deletion internal/commands/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"os"
"strings"

"github.com/ghodss/yaml"
"github.com/plexsystems/konstraint/internal/rego"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"sigs.k8s.io/yaml"
)

func newConvertCommand() *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (

"github.com/plexsystems/konstraint/internal/rego"

"github.com/ghodss/yaml"
v1 "github.com/open-policy-agent/frameworks/constraint/pkg/apis/templates/v1"
"github.com/open-policy-agent/frameworks/constraint/pkg/apis/templates/v1beta1"
log "github.com/sirupsen/logrus"
Expand All @@ -18,6 +17,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schema"
"sigs.k8s.io/yaml"
)

const (
Expand Down

0 comments on commit 882fbab

Please sign in to comment.