Skip to content

Commit 3a9868e

Browse files
authored
Update to catalogd v0.21.0 (#1183)
This has a new API path (olm... vs catalogd...) Update all references to catalogd.operatorframework.io
1 parent 0597b88 commit 3a9868e

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

config/base/rbac/role.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ rules:
1111
verbs:
1212
- get
1313
- apiGroups:
14-
- catalogd.operatorframework.io
14+
- ""
15+
resources:
16+
- serviceaccounts/token
17+
verbs:
18+
- create
19+
- apiGroups:
20+
- olm.operatorframework.io
1521
resources:
1622
- catalogmetadata
1723
verbs:
1824
- list
1925
- watch
2026
- apiGroups:
21-
- catalogd.operatorframework.io
27+
- olm.operatorframework.io
2228
resources:
2329
- clustercatalogs
2430
verbs:
2531
- list
2632
- watch
27-
- apiGroups:
28-
- ""
29-
resources:
30-
- serviceaccounts/token
31-
verbs:
32-
- create
3333
- apiGroups:
3434
- olm.operatorframework.io
3535
resources:

config/samples/catalogd_operatorcatalog.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: catalogd.operatorframework.io/v1alpha1
1+
apiVersion: olm.operatorframework.io/v1alpha1
22
kind: ClusterCatalog
33
metadata:
44
name: operatorhubio

docs/Tasks/adding-a-catalog.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
2121
1. Create a catalog custom resource (CR):
2222

2323
``` yaml title="clustercatalog_cr.yaml"
24-
apiVersion: catalogd.operatorframework.io/v1alpha1
24+
apiVersion: olm.operatorframework.io/v1alpha1
2525
kind: ClusterCatalog
2626
metadata:
2727
name: operatorhubio
@@ -43,7 +43,7 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
4343
To disable polling, set a zero value, such as `0s`.
4444

4545
``` yaml title="Example `operatorhubio.yaml` CR"
46-
apiVersion: catalogd.operatorframework.io/v1alpha1
46+
apiVersion: olm.operatorframework.io/v1alpha1
4747
kind: ClusterCatalog
4848
metadata:
4949
name: operatorhub
@@ -62,7 +62,7 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
6262
```
6363

6464
``` text title="Example output"
65-
clustercatalog.catalogd.operatorframework.io/operatorhubio created
65+
clustercatalog.olm.operatorframework.io/operatorhubio created
6666
```
6767

6868
### Verification
@@ -91,12 +91,12 @@ This catalog is distributed as an image [quay.io/operatorhubio/catalog](https://
9191
Namespace:
9292
Labels: <none>
9393
Annotations: <none>
94-
API Version: catalogd.operatorframework.io/v1alpha1
94+
API Version: olm.operatorframework.io/v1alpha1
9595
Kind: ClusterCatalog
9696
Metadata:
9797
Creation Timestamp: 2024-03-12T19:34:50Z
9898
Finalizers:
99-
catalogd.operatorframework.io/delete-server-cache
99+
olm.operatorframework.io/delete-server-cache
100100
Generation: 2
101101
Resource Version: 6469
102102
UID: 2e2778cb-dda6-4645-96b7-992e8dd37503

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
github.com/onsi/ginkgo/v2 v2.20.1
1515
github.com/onsi/gomega v1.34.1
1616
github.com/operator-framework/api v0.27.0
17-
github.com/operator-framework/catalogd v0.20.0
17+
github.com/operator-framework/catalogd v0.21.0
1818
github.com/operator-framework/helm-operator-plugins v0.5.0
1919
github.com/operator-framework/operator-registry v1.46.0
2020
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,8 @@ github.com/openshift/crd-schema-checker v0.0.0-20240404194209-35a9033b1d11 h1:eT
516516
github.com/openshift/crd-schema-checker v0.0.0-20240404194209-35a9033b1d11/go.mod h1:EmVJt97N+pfWFsli/ipXTBZqSG5F5KGQhm3c3IsGq1o=
517517
github.com/operator-framework/api v0.27.0 h1:OrVaGKZJvbZo58HTv2guz7aURkhVKYhFqZ/6VpifiXI=
518518
github.com/operator-framework/api v0.27.0/go.mod h1:lg2Xx+S8NQWGYlEOvFwQvH46E5EK5IrAIL7HWfAhciM=
519-
github.com/operator-framework/catalogd v0.20.0 h1:m5ugxf9fjEUaNHy81lSu6jFzTEt0XpEo44+T7g9On+U=
520-
github.com/operator-framework/catalogd v0.20.0/go.mod h1:F4KehkAI/bpDI4IVXNxQ7dlWtVBYvc2qkxSa7mIFGRk=
519+
github.com/operator-framework/catalogd v0.21.0 h1:j5C19Aw3u3PpFgJGE1DF0lajS+pEX5FNlDKkocCKrAM=
520+
github.com/operator-framework/catalogd v0.21.0/go.mod h1:PTMUO/oi7mgXX60U9hDsd23EUwNm1mycnGXAa2hnMsE=
521521
github.com/operator-framework/helm-operator-plugins v0.5.0 h1:qph2OoECcI9mpuUBtOsWOMgvpx52mPTTSvzVxICsT04=
522522
github.com/operator-framework/helm-operator-plugins v0.5.0/go.mod h1:yVncrZ/FJNqedMil+055fk6sw8aMKRrget/AqGM0ig0=
523523
github.com/operator-framework/operator-lib v0.15.0 h1:0QeRM4PMtThqINpcFGCEBnIV3Z8u7/8fYLEx6mUtdcM=

hack/test/pre-upgrade-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ TEST_CLUSTER_CATALOG_NAME=$2
2020
TEST_CLUSTER_EXTENSION_NAME=$3
2121

2222
kubectl apply -f - << EOF
23-
apiVersion: catalogd.operatorframework.io/v1alpha1
23+
apiVersion: olm.operatorframework.io/v1alpha1
2424
kind: ClusterCatalog
2525
metadata:
2626
name: ${TEST_CLUSTER_CATALOG_NAME}

internal/controllers/clusterextension_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ type InstalledBundleGetter interface {
8585
//+kubebuilder:rbac:groups=core,resources=serviceaccounts/token,verbs=create
8686
//+kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get
8787

88-
//+kubebuilder:rbac:groups=catalogd.operatorframework.io,resources=clustercatalogs,verbs=list;watch
89-
//+kubebuilder:rbac:groups=catalogd.operatorframework.io,resources=catalogmetadata,verbs=list;watch
88+
//+kubebuilder:rbac:groups=olm.operatorframework.io,resources=clustercatalogs,verbs=list;watch
89+
//+kubebuilder:rbac:groups=olm.operatorframework.io,resources=catalogmetadata,verbs=list;watch
9090

9191
// The operator controller needs to watch all the bundle objects and reconcile accordingly. Though not ideal, but these permissions are required.
9292
// This has been taken from rukpak, and an issue was created before to discuss it: https://github.com/operator-framework/rukpak/issues/800.

0 commit comments

Comments
 (0)