From 265841e6f49964bd95ef5d1ce9040243726d760e Mon Sep 17 00:00:00 2001 From: "red-hat-konflux[bot]" <126015336+red-hat-konflux[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 04:18:19 +0000 Subject: [PATCH] fix(deps): update module gopkg.in/yaml.v2 to v3 Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> --- controllers/secret_controller.go | 2 +- controllers/secret_controller_test.go | 2 +- go.mod | 3 ++- pkg/types/alertmanagerconfig.go | 2 +- test/e2e/utils/utils.go | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/controllers/secret_controller.go b/controllers/secret_controller.go index 5536ce4a..6f607f69 100644 --- a/controllers/secret_controller.go +++ b/controllers/secret_controller.go @@ -23,7 +23,7 @@ import ( "runtime/debug" "time" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/controllers/secret_controller_test.go b/controllers/secret_controller_test.go index 8670e117..f99bc355 100644 --- a/controllers/secret_controller_test.go +++ b/controllers/secret_controller_test.go @@ -14,7 +14,7 @@ import ( alertmanager "github.com/openshift/configure-alertmanager-operator/pkg/types" monitoringv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1" "go.uber.org/mock/gomock" - yaml "gopkg.in/yaml.v2" + yaml "gopkg.in/yaml.v3" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" k8sruntime "k8s.io/apimachinery/pkg/runtime" diff --git a/go.mod b/go.mod index bead1de0..b06170e8 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/prometheus/client_golang v1.23.2 github.com/prometheus/common v0.70.0 go.uber.org/mock v0.6.0 - gopkg.in/yaml.v2 v2.4.0 + gopkg.in/yaml.v3 v3.0.1 k8s.io/api v0.36.2 k8s.io/apimachinery v0.36.2 k8s.io/client-go v0.36.2 @@ -148,6 +148,7 @@ require ( google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af // indirect gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect k8s.io/apiextensions-apiserver v0.36.2 // indirect k8s.io/klog/v2 v2.140.0 // indirect k8s.io/kube-openapi v0.0.0-20260706235625-cdb1db5517a0 // indirect diff --git a/pkg/types/alertmanagerconfig.go b/pkg/types/alertmanagerconfig.go index 20e4edcd..c1121220 100644 --- a/pkg/types/alertmanagerconfig.go +++ b/pkg/types/alertmanagerconfig.go @@ -3,7 +3,7 @@ package alertmanagerconfig import ( "fmt" - yaml "gopkg.in/yaml.v2" + yaml "gopkg.in/yaml.v3" ) // PDRegexLP is the regular expression used in Pager Duty for any Layered Product namespaces. diff --git a/test/e2e/utils/utils.go b/test/e2e/utils/utils.go index c4f9f706..3b4f5d19 100644 --- a/test/e2e/utils/utils.go +++ b/test/e2e/utils/utils.go @@ -15,7 +15,7 @@ import ( "github.com/onsi/gomega" amconfig "github.com/prometheus/alertmanager/config" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" authenticationv1 "k8s.io/api/authentication/v1" v1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors"