diff --git a/go.mod b/go.mod index 1b57eb7264..f27db5711c 100644 --- a/go.mod +++ b/go.mod @@ -31,7 +31,6 @@ require ( google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98 google.golang.org/grpc v1.58.3 google.golang.org/protobuf v1.31.0 - gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v3 v3.0.1 k8s.io/api v0.28.3 k8s.io/apimachinery v0.28.3 @@ -117,6 +116,7 @@ require ( google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect gopkg.in/inf.v0 v0.9.1 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect k8s.io/apiextensions-apiserver v0.28.3 // indirect k8s.io/component-base v0.28.3 // indirect k8s.io/gengo v0.0.0-20220902162205-c0856e24416d // indirect diff --git a/pkg/operator/apis/monitoring/v1/types.go b/pkg/operator/apis/monitoring/v1/types.go index d732275f0b..d1f1d61ef9 100644 --- a/pkg/operator/apis/monitoring/v1/types.go +++ b/pkg/operator/apis/monitoring/v1/types.go @@ -27,7 +27,7 @@ import ( "github.com/prometheus/prometheus/discovery" discoverykube "github.com/prometheus/prometheus/discovery/kubernetes" "github.com/prometheus/prometheus/model/relabel" - yaml "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" diff --git a/pkg/operator/apis/monitoring/v1/types_test.go b/pkg/operator/apis/monitoring/v1/types_test.go index 8279bf7cd9..957e4d554f 100644 --- a/pkg/operator/apis/monitoring/v1/types_test.go +++ b/pkg/operator/apis/monitoring/v1/types_test.go @@ -26,7 +26,7 @@ import ( "github.com/google/go-cmp/cmp/cmpopts" prommodel "github.com/prometheus/common/model" "github.com/prometheus/prometheus/model/relabel" - yaml "gopkg.in/yaml.v2" + yaml "gopkg.in/yaml.v3" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" ) diff --git a/pkg/rules/rules.go b/pkg/rules/rules.go index d44c0e223d..b426972a4a 100644 --- a/pkg/rules/rules.go +++ b/pkg/rules/rules.go @@ -21,7 +21,7 @@ import ( "github.com/prometheus/prometheus/model/labels" "github.com/prometheus/prometheus/model/rulefmt" "github.com/prometheus/prometheus/promql/parser" - yaml "gopkg.in/yaml.v2" + yaml "gopkg.in/yaml.v3" monitoringv1 "github.com/GoogleCloudPlatform/prometheus-engine/pkg/operator/apis/monitoring/v1" )