Skip to content

Commit b1babc6

Browse files
Merge pull request #279 from red-hat-storage/sync_ds--main
Syncing latest changes from main for ocs-client-operator
2 parents 51c8014 + ea0594e commit b1babc6

File tree

145 files changed

+3987
-3767
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+3987
-3767
lines changed

bundle/manifests/ocs-client-operator.clusterserviceversion.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
categories: Storage
88
console.openshift.io/plugins: '["odf-client-console"]'
99
containerImage: quay.io/ocs-dev/ocs-client-operator:latest
10-
createdAt: "2024-11-18T12:48:54Z"
10+
createdAt: "2024-11-22T04:24:54Z"
1111
description: OpenShift Data Foundation client operator enables consumption of
1212
storage services from a remote centralized OpenShift Data Foundation provider
1313
cluster.
@@ -316,15 +316,14 @@ spec:
316316
- update
317317
- watch
318318
- apiGroups:
319-
- ramendr.openshift.io
319+
- replication.storage.openshift.io
320320
resources:
321-
- drclusterconfigs
321+
- volumereplicationclass
322322
verbs:
323323
- create
324324
- delete
325325
- get
326326
- list
327-
- update
328327
- watch
329328
- apiGroups:
330329
- security.openshift.io

cmd/main.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import (
3131
// Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.)
3232
// to ensure that exec-entrypoint and run can make use of them.
3333
csiopv1a1 "github.com/ceph/ceph-csi-operator/api/v1alpha1"
34+
replicationv1alpha1 "github.com/csi-addons/kubernetes-csi-addons/api/replication.storage/v1alpha1"
3435
snapapi "github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumesnapshot/v1"
3536
nbapis "github.com/noobaa/noobaa-operator/v5/pkg/apis"
3637
configv1 "github.com/openshift/api/config/v1"
@@ -80,6 +81,7 @@ func init() {
8081
utilruntime.Must(csiopv1a1.AddToScheme(scheme))
8182
utilruntime.Must(nbapis.AddToScheme(scheme))
8283
utilruntime.Must(ramenv1alpha1.AddToScheme(scheme))
84+
utilruntime.Must(replicationv1alpha1.AddToScheme(scheme))
8385
//+kubebuilder:scaffold:scheme
8486
}
8587

@@ -152,7 +154,7 @@ func main() {
152154
os.Exit(1)
153155
}
154156

155-
availCrds, err := getAvailableCRDNames(context.Background(), apiClient)
157+
_, err = getAvailableCRDNames(context.Background(), apiClient)
156158
if err != nil {
157159
setupLog.Error(err, "Unable get a list of available CRD names")
158160
os.Exit(1)
@@ -183,7 +185,6 @@ func main() {
183185
Client: mgr.GetClient(),
184186
Scheme: mgr.GetScheme(),
185187
OperatorNamespace: utils.GetOperatorNamespace(),
186-
AvailableCrds: availCrds,
187188
}).SetupWithManager(mgr); err != nil {
188189
setupLog.Error(err, "unable to create controller", "controller", "StorageClaim")
189190
os.Exit(1)

config/rbac/role.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,14 @@ rules:
273273
- update
274274
- watch
275275
- apiGroups:
276-
- ramendr.openshift.io
276+
- replication.storage.openshift.io
277277
resources:
278-
- drclusterconfigs
278+
- volumereplicationclass
279279
verbs:
280280
- create
281281
- delete
282282
- get
283283
- list
284-
- update
285284
- watch
286285
- apiGroups:
287286
- security.openshift.io

go.mod

+15-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/red-hat-storage/ocs-client-operator
22

3-
go 1.22.5
3+
go 1.22.7
44

55
replace (
66
github.com/portworx/sched-ops => github.com/portworx/sched-ops v0.20.4-openstorage-rc3 // required by Rook v1.12
@@ -19,22 +19,23 @@ exclude (
1919

2020
require (
2121
github.com/ceph/ceph-csi-operator/api v0.0.0-20241114115439-f325f74205d3
22+
github.com/csi-addons/kubernetes-csi-addons v0.10.0
2223
github.com/go-logr/logr v1.4.2
2324
github.com/kubernetes-csi/external-snapshotter/client/v8 v8.0.0
2425
github.com/onsi/ginkgo v1.16.5
25-
github.com/onsi/gomega v1.34.1
26+
github.com/onsi/gomega v1.34.2
2627
github.com/openshift/api v0.0.0-20240828125535-01b3675ba7b3
2728
github.com/operator-framework/api v0.27.0
2829
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.76.0
2930
github.com/ramendr/ramen/api v0.0.0-20241001141243-29d6f22ad237
3031
github.com/red-hat-storage/ocs-client-operator/api v0.0.0-00010101000000-000000000000
31-
github.com/red-hat-storage/ocs-operator/services/provider/api/v4 v4.0.0-20241113175552-201c936738fd
32+
github.com/red-hat-storage/ocs-operator/services/provider/api/v4 v4.0.0-20241120160011-2e7cf0127dd4
3233
github.com/stretchr/testify v1.9.0
33-
google.golang.org/grpc v1.66.0
34-
k8s.io/api v0.31.0
34+
google.golang.org/grpc v1.68.0
35+
k8s.io/api v0.31.1
3536
k8s.io/apiextensions-apiserver v0.31.0
36-
k8s.io/apimachinery v0.31.0
37-
k8s.io/client-go v0.31.0
37+
k8s.io/apimachinery v0.31.1
38+
k8s.io/client-go v0.31.1
3839
k8s.io/klog/v2 v2.130.1
3940
k8s.io/utils v0.0.0-20240821151609-f90d01438635
4041
sigs.k8s.io/controller-runtime v0.19.0
@@ -92,15 +93,15 @@ require (
9293
go.uber.org/multierr v1.11.0 // indirect
9394
go.uber.org/zap v1.27.0 // indirect
9495
golang.org/x/exp v0.0.0-20240823005443-9b4947da3948 // indirect
95-
golang.org/x/net v0.28.0 // indirect
96-
golang.org/x/oauth2 v0.22.0 // indirect
97-
golang.org/x/sys v0.24.0 // indirect
98-
golang.org/x/term v0.23.0 // indirect
99-
golang.org/x/text v0.17.0 // indirect
96+
golang.org/x/net v0.29.0 // indirect
97+
golang.org/x/oauth2 v0.23.0 // indirect
98+
golang.org/x/sys v0.25.0 // indirect
99+
golang.org/x/term v0.24.0 // indirect
100+
golang.org/x/text v0.18.0 // indirect
100101
golang.org/x/time v0.6.0 // indirect
101102
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
102-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240827150818-7e3bb234dfed // indirect
103-
google.golang.org/protobuf v1.34.2 // indirect
103+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
104+
google.golang.org/protobuf v1.35.1 // indirect
104105
gopkg.in/inf.v0 v0.9.1 // indirect
105106
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
106107
gopkg.in/yaml.v3 v3.0.1 // indirect

0 commit comments

Comments
 (0)