refactor(crd): move CR from openebs.io to zfs.openebs.io (#70)

Changed the group name from openebs.io to zfs.openebs.io.

Now ZFS Volume CR will look like this : 
```
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: zfszvolumes.zfs.openebs.io
spec:
  group: zfs.openebs.io
  version: v1alpha1
  scope: Namespaced
  names:
    plural: zfsvolumes
    singular: zfsvolume
    kind:ZFSVolume
    shortNames:
    - zfsvol
    - zv
```

Snapshot CR will look like this :
```
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: zfssnapshots.zfs.openebs.io
spec:
  group: zfs.openebs.io
  version: v1alpha1
  scope: Namespaced
  names:
    plural: fssnapshots
    singular: zfssnapshot
    kind: ZFSSnapshot
    shortNames:
    - zfssnapshot
    - zfssnap

```


Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
Pawan Prakash Sharma 2020-03-30 22:12:34 +05:30 committed by GitHub
parent 3e874ffad7
commit c4c2278d2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 52 additions and 52 deletions

View file

@ -24,8 +24,8 @@ import (
time "time"
internalclientset "github.com/openebs/zfs-localpv/pkg/generated/clientset/internalclientset"
core "github.com/openebs/zfs-localpv/pkg/generated/informer/externalversions/core"
internalinterfaces "github.com/openebs/zfs-localpv/pkg/generated/informer/externalversions/internalinterfaces"
zfs "github.com/openebs/zfs-localpv/pkg/generated/informer/externalversions/zfs"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema"
@ -172,9 +172,9 @@ type SharedInformerFactory interface {
ForResource(resource schema.GroupVersionResource) (GenericInformer, error)
WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool
Openebs() core.Interface
Openebs() zfs.Interface
}
func (f *sharedInformerFactory) Openebs() core.Interface {
return core.New(f, f.namespace, f.tweakListOptions)
func (f *sharedInformerFactory) Openebs() zfs.Interface {
return zfs.New(f, f.namespace, f.tweakListOptions)
}