Skip to content

Commit 1969a71

Browse files
authored
Merge pull request #38 from leelavg/fix-29011
Bug 2247737: add APIs to scheme, role and role binding to bundle
2 parents 79770f7 + 45e7895 commit 1969a71

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

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

+18
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,14 @@ spec:
599599
- get
600600
- list
601601
- update
602+
- apiGroups:
603+
- config.openshift.io
604+
resources:
605+
- clusterversions
606+
verbs:
607+
- get
608+
- list
609+
- watch
602610
serviceAccountName: ocs-client-operator-status-reporter
603611
deployments:
604612
- label:
@@ -886,6 +894,16 @@ spec:
886894
verbs:
887895
- create
888896
serviceAccountName: ocs-client-operator-csi-rbd-provisioner-sa
897+
- rules:
898+
- apiGroups:
899+
- operators.coreos.com
900+
resources:
901+
- clusterserviceversions
902+
verbs:
903+
- get
904+
- list
905+
- watch
906+
serviceAccountName: ocs-client-operator-status-reporter
889907
strategy: deployment
890908
installModes:
891909
- supported: true

config/rbac/kustomization.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ resources:
2121
- status-reporter-sa.yaml
2222
- status-reporter-clusterrole.yaml
2323
- status-reporter-clusterrole_binding.yaml
24+
- status-reporter-role.yaml
25+
- status-reporter-role_binding.yaml
2426
# CSI RBAC
2527
- csi_cephfs_plugin_clusterrole.yaml
2628
- csi_cephfs_plugin_clusterrole_binding.yaml

service/status-report/main.go

+8
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ func main() {
5151
klog.Exitf("Failed to add client-go to scheme: %v", err)
5252
}
5353

54+
if err := opv1a1.AddToScheme(scheme); err != nil {
55+
klog.Exitf("Failed to add opv1a1 to scheme: %v", err)
56+
}
57+
58+
if err := configv1.AddToScheme(scheme); err != nil {
59+
klog.Exitf("Failed to add configv1 to scheme: %v", err)
60+
}
61+
5462
config, err := config.GetConfig()
5563
if err != nil {
5664
klog.Exitf("Failed to get config: %v", err)

0 commit comments

Comments
 (0)