Skip to content

Commit d9c97cd

Browse files
kevinrizzagallettilance
authored andcommitted
[opm] - Add registry add and rm bundle commands
Adds opm registry command to add bundle content from images to the database. For non-default bundles, once the database has been updated, the bundle and csv field are deleted from all bundles that are not the tip of the default channel of the package being updated. Adds opm registry command to rm a package from the database (removing all owned APIs).
1 parent ecd83e6 commit d9c97cd

Some content is hidden

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

45 files changed

+20695
-68
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: etcdbackups.etcd.database.coreos.com
5+
spec:
6+
group: etcd.database.coreos.com
7+
version: v1beta2
8+
scope: Namespaced
9+
names:
10+
kind: EtcdBackup
11+
listKind: EtcdBackupList
12+
plural: etcdbackups
13+
singular: etcdbackup
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: etcdclusters.etcd.database.coreos.com
5+
spec:
6+
group: etcd.database.coreos.com
7+
version: v1beta2
8+
scope: Namespaced
9+
names:
10+
plural: etcdclusters
11+
singular: etcdcluster
12+
kind: EtcdCluster
13+
listKind: EtcdClusterList
14+
shortNames:
15+
- etcdclus
16+
- etcd

bundles/etcd.0.9.0/manifests/etcdoperator.v0.9.0.yaml

Lines changed: 280 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: etcdrestores.etcd.database.coreos.com
5+
spec:
6+
group: etcd.database.coreos.com
7+
version: v1beta2
8+
scope: Namespaced
9+
names:
10+
kind: EtcdRestore
11+
listKind: EtcdRestoreList
12+
plural: etcdrestores
13+
singular: etcdrestore
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
annotations:
2+
operators.operatorframework.io.bundle.package.v1: "etcd"
3+
operators.operatorframework.io.bundle.channels.v1: "alpha,stable"
4+
operators.operatorframework.io.bundle.channel.default.v1: "stable"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: etcdbackups.etcd.database.coreos.com
5+
spec:
6+
group: etcd.database.coreos.com
7+
version: v1beta2
8+
scope: Namespaced
9+
names:
10+
kind: EtcdBackup
11+
listKind: EtcdBackupList
12+
plural: etcdbackups
13+
singular: etcdbackup
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: etcdclusters.etcd.database.coreos.com
5+
spec:
6+
group: etcd.database.coreos.com
7+
version: v1beta2
8+
scope: Namespaced
9+
names:
10+
plural: etcdclusters
11+
singular: etcdcluster
12+
kind: EtcdCluster
13+
listKind: EtcdClusterList
14+
shortNames:
15+
- etcdclus
16+
- etcd

bundles/etcd.0.9.2/manifests/etcdoperator.v0.9.2.clusterserviceversion.yaml

Lines changed: 283 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: etcdrestores.etcd.database.coreos.com
5+
spec:
6+
group: etcd.database.coreos.com
7+
version: v1beta2
8+
scope: Namespaced
9+
names:
10+
kind: EtcdRestore
11+
listKind: EtcdRestoreList
12+
plural: etcdrestores
13+
singular: etcdrestore
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
annotations:
2+
operators.operatorframework.io.bundle.package.v1: "etcd"
3+
operators.operatorframework.io.bundle.channels.v1: "alpha,stable"
4+
operators.operatorframework.io.bundle.channel.default.v1: "alpha"

0 commit comments

Comments
 (0)