Skip to content

Commit a678875

Browse files
committedJan 24, 2023
Updated rhc-osdk-utils. Made some changes to make that upgrade work.
1 parent 91eed18 commit a678875

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed
 

‎controllers/frontend_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import (
3939
"sigs.k8s.io/controller-runtime/pkg/source"
4040

4141
crd "github.com/RedHatInsights/frontend-operator/api/v1alpha1"
42-
resCache "github.com/RedHatInsights/rhc-osdk-utils/resource_cache"
42+
resCache "github.com/RedHatInsights/rhc-osdk-utils/resourceCache"
4343
prom "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
4444

4545
"github.com/RedHatInsights/rhc-osdk-utils/utils"

‎controllers/reconcile.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
crd "github.com/RedHatInsights/frontend-operator/api/v1alpha1"
1212
localUtil "github.com/RedHatInsights/frontend-operator/controllers/utils"
13-
resCache "github.com/RedHatInsights/rhc-osdk-utils/resource_cache"
13+
resCache "github.com/RedHatInsights/rhc-osdk-utils/resourceCache"
1414
"github.com/RedHatInsights/rhc-osdk-utils/utils"
1515
"github.com/go-logr/logr"
1616

‎controllers/status.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ func GetFrontendFigures(ctx context.Context, client client.Client, o *crd.Fronte
105105
}},
106106
}
107107

108-
results := counter.Count(ctx, client)
108+
results, err := counter.Count(ctx, client)
109+
if err != nil {
110+
return crd.FrontendDeployments{}, "", errors.Wrap("count resources: ", err)
111+
}
109112

110113
deploymentStats.ManagedDeployments = int32(results.Managed)
111114
deploymentStats.ReadyDeployments = int32(results.Ready)

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.17
44

55
require (
66
github.com/RedHatInsights/clowder v0.50.0
7-
github.com/RedHatInsights/rhc-osdk-utils v0.6.2
7+
github.com/RedHatInsights/rhc-osdk-utils v0.7.0
88
github.com/go-logr/logr v1.2.0
99
github.com/go-logr/zapr v1.2.0
1010
github.com/onsi/ginkgo v1.16.5

‎go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ github.com/RedHatInsights/go-difflib v1.0.0 h1:BoruyjZfxO81sEynhkG6c4SMAQOjuBWez
7979
github.com/RedHatInsights/go-difflib v1.0.0/go.mod h1:UMKOFdypYfrKT1B1nbGodM09nhOiAmcjes8qWP7Myrs=
8080
github.com/RedHatInsights/rhc-osdk-utils v0.6.2 h1:VXTqk6VHrsaEPSw3N95rCq+g0y2LR7t9Za0wBS2/RyA=
8181
github.com/RedHatInsights/rhc-osdk-utils v0.6.2/go.mod h1:MQoUQGaVjM25JsownEKKa2Tef0qnJOm1ljocaQ0nx40=
82+
github.com/RedHatInsights/rhc-osdk-utils v0.7.0 h1:KgOiw2nKS26RuiSRVWVHtXNPx23VMspuB0bLCLIAlTs=
83+
github.com/RedHatInsights/rhc-osdk-utils v0.7.0/go.mod h1:MQoUQGaVjM25JsownEKKa2Tef0qnJOm1ljocaQ0nx40=
8284
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
8385
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
8486
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=

0 commit comments

Comments
 (0)
Please sign in to comment.