Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(crd): refactoring CRD #70

Merged
merged 2 commits into from
Mar 30, 2020
Merged

feat(crd): refactoring CRD #70

merged 2 commits into from
Mar 30, 2020

Conversation

pawanpraka1
Copy link
Contributor

@pawanpraka1 pawanpraka1 commented Mar 23, 2020

fixes openebs/openebs#2960

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

@pawanpraka1 pawanpraka1 added enhancement Add new functionality to existing feature pr/hold-review hold the review. labels Mar 23, 2020
@pawanpraka1 pawanpraka1 added this to the v0.6.0 milestone Mar 23, 2020
@pawanpraka1 pawanpraka1 requested a review from kmova March 23, 2020 17:02
@pawanpraka1 pawanpraka1 added this to In progress in ZFS Local PV Mar 23, 2020
@pawanpraka1 pawanpraka1 added this to Pre-commits and Designs - Due: Mar 31st 2020 in 1.9 Release Tracker - Due Apr 15th. Mar 23, 2020
@pawanpraka1 pawanpraka1 added the documentation Improvements or additions to documentation label Mar 23, 2020
@codecov-io
Copy link

codecov-io commented Mar 23, 2020

Codecov Report

Merging #70 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #70   +/-   ##
=======================================
  Coverage   23.57%   23.57%           
=======================================
  Files          14       14           
  Lines         475      475           
=======================================
  Hits          112      112           
  Misses        362      362           
  Partials        1        1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ed9ce5...0cb821e. Read the comment docs.

@kmova
Copy link
Member

kmova commented Mar 28, 2020

@pawanpraka1 - Can you confirm that the changes are mainly the following:
=> group changes from openebs.io to zfs.openebs.io
=> Removed the prefix of ZFS from the CRD names

There is no change to the short names, from earlier versions to this version.

While I see the reasoning behind cutting the prefix (which seems redundant), I am wondering if we should continue to have them for clarity. When using kubectl, only full name, and the short names matter.

This PR takes care of short-names being unique. I think we should maintain the same for full name. Can we revert the changes done to CRD names and only keep the group change.

@pawanpraka1
Copy link
Contributor Author

Yes @kmova, this PR does two things :-
=> group changes from openebs.io to zfs.openebs.io
=> Removed the prefix of ZFS from the CRD names

I think we should maintain the same for full name.

@kmova, the full name format will change anyway as we are changing the group name since full name format depends on group name
fullname == .

So we are changing CRD from zfsvolumes.openebs.io to volumes.zfs.openebs.io.

@pawanpraka1 pawanpraka1 force-pushed the refactor branch 2 times, most recently from 1e8e712 to 7538541 Compare March 28, 2020 18:22
@sonasingh46
Copy link

@pawanpraka1 According to the PR message :

=> Removed the prefix of ZFS from the CRD names

I could not find this change or I could be interpreting it wrong. Can you please help here?

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

Signed-off-by: Pawan <pawan@mayadata.io>
Signed-off-by: Pawan <pawan@mayadata.io>
@kmova kmova merged commit c4c2278 into openebs:master Mar 30, 2020
ZFS Local PV automation moved this from In progress to Done Mar 30, 2020
1.9 Release Tracker - Due Apr 15th. automation moved this from Pre-commits and Designs - Due: Mar 31st 2020 to Done Mar 30, 2020
@pawanpraka1 pawanpraka1 deleted the refactor branch March 31, 2020 05:23
@pawanpraka1 pawanpraka1 added the pr/release-note PR has to be added in the release note. label Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement Add new functionality to existing feature pr/release-note PR has to be added in the release note.
Projects
ZFS Local PV
  
Done
Development

Successfully merging this pull request may close these issues.

CRD Enhancements/Refactoring.
4 participants