From 01604d4a6be1f73209f2e0228f9c56f24d2e1985 Mon Sep 17 00:00:00 2001 From: Disaiah Bennett Date: Fri, 5 Apr 2024 13:16:54 -0400 Subject: [PATCH] Updated go.mod to use compatible version for prometheus/common (#661) * updated go.mod to use compatible version for prometheus/common Signed-off-by: Disaiah Bennett * updated main.go to support client cache disable Signed-off-by: Disaiah Bennett --------- Signed-off-by: Disaiah Bennett --- go.mod | 2 +- go.sum | 4 ++-- main.go | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index b88dedc7..305ac4a7 100644 --- a/go.mod +++ b/go.mod @@ -67,7 +67,7 @@ require ( github.com/openshift/custom-resource-status v1.1.3-0.20220503160415-f2fdb4999d87 // indirect github.com/prometheus/client_golang v1.19.0 // indirect github.com/prometheus/client_model v0.6.1 // indirect - github.com/prometheus/common v0.52.2 // indirect + github.com/prometheus/common v0.48.0 // indirect github.com/prometheus/procfs v0.13.0 // indirect github.com/robfig/cron/v3 v3.0.1 // indirect github.com/shopspring/decimal v1.3.1 // indirect diff --git a/go.sum b/go.sum index 82cbac79..556d96aa 100644 --- a/go.sum +++ b/go.sum @@ -216,8 +216,8 @@ github.com/prometheus/client_golang v1.19.0/go.mod h1:ZRM9uEAypZakd+q/x7+gmsvXdU github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= -github.com/prometheus/common v0.52.2 h1:LW8Vk7BccEdONfrJBDffQGRtpSzi5CQaRZGtboOO2ck= -github.com/prometheus/common v0.52.2/go.mod h1:lrWtQx+iDfn2mbH5GUzlH9TSHyfZpHkSiG1W7y3sF2Q= +github.com/prometheus/common v0.48.0 h1:QO8U2CdOzSn1BBsmXJXduaaW+dY/5QLjfB8svtSzKKE= +github.com/prometheus/common v0.48.0/go.mod h1:0/KsvlIEfPQCQ5I2iNSAWKPZziNCvRs5EC6ILDTlAPc= github.com/prometheus/procfs v0.13.0 h1:GqzLlQyfsPbaEHaQkO7tbDlriv/4o5Hudv6OXHGKX7o= github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g= github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs= diff --git a/main.go b/main.go index a0ca1c61..c52db286 100644 --- a/main.go +++ b/main.go @@ -151,6 +151,11 @@ func main() { ctrl.Log.WithName("Backplane Operator version").Info(fmt.Sprintf("%#v", version.Get())) mgrOptions := ctrl.Options{ + Client: client.Options{ + Cache: &client.CacheOptions{ + DisableFor: []client.Object{}, + }, + }, Scheme: scheme, Metrics: metricsserver.Options{ BindAddress: metricsAddr,