Commit graph

290 commits

Author SHA1 Message Date
Pawan Prakash Sharma
6ec49df225
fix(restore): adding support to restore in an encrypted pool (#292)
Encrypted pool does not allow the volume to be pre created for the
restore purpose. Here changing the design to do the restore first
and then create the ZFSVolume object which will bind the volume
already created while doing restore.


Signed-off-by: Pawan <pawan@mayadata.io>
2021-03-01 23:56:42 +05:30
Pawan
77e722989c chore(changelog): adding 1.4.0 changelog
Signed-off-by: Pawan <pawan@mayadata.io>
2021-02-16 00:01:18 +05:30
Shubham Bajpai
11a1034b0a
[stable/zfs-localpv]: update charts to 1.4.0 (#285)
- update chart version
- update README
- update values.yaml

Signed-off-by: shubham <shubham.bajpai@mayadata.io>
2021-02-15 17:31:31 +05:30
Prateek Pandey
62e5b57d90
refact(charts): add pod security policy for zfslocalpv charts (#290)
Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
2021-02-15 15:03:40 +05:30
Shubham Bajpai
36e0f69fd0
chore(operator): update k8s sidecar images to gcr (#284)
Signed-off-by: shubham <shubham.bajpai@mayadata.io>
2021-02-05 12:18:41 +05:30
Pawan
88ad25ec9c feat(resize): adding resize support for raw block volumes
Signed-off-by: Pawan <pawan@mayadata.io>
2021-02-02 12:44:02 +05:30
prateekpandey14
8335440d4c [stable/zfs-localpv]: update zfs-localpv charts to 1.3.0
Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
2021-01-14 20:50:17 +05:30
Pawan
b64db082be chore(changelog): adding v1.3.0 changelog
Signed-off-by: Pawan <pawan@mayadata.io>
2021-01-14 20:47:37 +05:30
Shubham Bajpai
bd6df9b31d
feat(chart): add helm chart for zfs local pv (#247)
Signed-off-by: shubham <shubham.bajpai@mayadata.io>
2021-01-07 10:44:45 +05:30
Pawan
90ecfe9c73 feat(schd): adding capacity weighted scheduler
The ZFS Driver will use capacity scheduler to pick a node
which has less capacity occupied by the volumes. Making this
as default scheduler as it is better than the volume count based
scheduling. We can use below storageclass to specify the scheduler
```yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
 name: openebs-zfspv
allowVolumeExpansion: true
parameters:
 scheduler: "CapacityWeighted"
 poolname: "zfspv-pool"
provisioner: zfs.csi.openebs.io
```

Please Note that after the upgrade, there will be a change in the behavior.
If we are not using `scheduler` parameter in the storage class then after
the upgrade ZFS Driver will pick the node bases on volume capacity weight
instead of the count.

Signed-off-by: Pawan <pawan@mayadata.io>
2021-01-07 10:38:44 +05:30
Shubham Bajpai
e0fbce805b
chore(operator): bump k8s csi to latest stable container images (#271)
Signed-off-by: shubham <shubham.bajpai@mayadata.io>
2021-01-05 23:42:20 +05:30
Aman Gupta
602a4eb503
chore(doc): Update backup/restore doc with s3-bucket use (#267)
Signed-off-by: Aman Gupta <aman.gupta@mayadata.io>
2021-01-05 22:49:55 +05:30
Pawan Prakash Sharma
2e5e61d255
fix(mount): creating directory with 0755 permission (#262)
Signed-off-by: Pawan <pawan@mayadata.io>
2020-12-23 08:31:17 +05:30
praveengt
0e3098920c
fix(build): Cross Build enviroment bug fixes (#264)
- Adding typecasting to make compilation work under MAC build environment

- Using go env variable instead of uname for determining platform

Signed-off-by: praveengt <praveen.gt@flipkart.com>
2020-12-21 11:52:36 +05:30
Shubham Bajpai
2906d39d94
refact(csi): use common lib-csi imports (#263)
Signed-off-by: shubham <shubham.bajpai@mayadata.io>
2020-12-18 21:12:52 +05:30
Pawan
48e6a19d7c chore(doc): adding 1.2.0 changelog
Signed-off-by: Pawan <pawan@mayadata.io>
2020-12-16 01:41:17 +05:30
pawan
bf939b0340 fix(action): using 0.4.2 version docker buildx
Signed-off-by: pawan <pawan@mayadata.io>
2020-12-15 14:01:30 +05:30
Pawan
b42893ce47 fix(mount): fixing idempotency check for the mount path
Signed-off-by: Pawan <pawan@mayadata.io>
2020-12-15 14:01:30 +05:30
Pawan Prakash Sharma
43553d6077
refactor(readme): refactoring readme (#254)
* adding openebs logo and updating project status
* Updating the GA release version

Signed-off-by: Pawan <pawan@mayadata.io>
2020-12-14 20:31:38 +05:30
Pawan Prakash Sharma
ef75e6cb2d
chore(doc): adding installation instruction for microk8s (#251)
Signed-off-by: Pawan <pawan@mayadata.io>
2020-12-14 12:16:09 +05:30
Shubham Bajpai
0c8202bec3
feat(helm): add github action for chart test and release (#250)
Signed-off-by: shubham <shubham.bajpai@mayadata.io>
2020-12-11 19:00:14 +05:30
Pawan
0409fca095 fix(sanity): fixing flaky sanity test case
Also moving to bionic docker image for github action also.

Signed-off-by: Pawan <pawan@mayadata.io>
2020-12-10 20:06:45 +05:30
Pawan
2ae14f556b feat(image): moving to ubuntu bionic(18.04 LTS) docker image
Signed-off-by: Pawan <pawan@mayadata.io>
2020-12-10 15:29:21 +05:30
Pawan Prakash Sharma
a73a59fd49
feat(sanity): adding CSI Sanity test (#232)
* adding CSI Sanity test for ZFS-LocalPV
* make lowercase at all the places

Signed-off-by: Pawan <pawan@mayadata.io>
2020-12-10 11:53:16 +05:30
Aman Gupta
5a5b043507 fix(doc): fixed tha kustomization yaml file path in readme
Signed-off-by: Aman Gupta <aman.gupta@mayadata.io>
2020-12-09 10:08:19 +05:30
Pawan
e1e8aa5839 chore(refactor): refactor scheduler for ZFS-LocalPV
Signed-off-by: Pawan <pawan@mayadata.io>
2020-12-07 16:04:12 +05:30
Pawan
30a7f2317e fix(kust): removing quay as we are using multiarch docker images
Signed-off-by: Pawan <pawan@mayadata.io>
2020-12-04 11:41:18 +05:30
Pawan
d3d4a2da23 chore(doc): update restore doc with node mapping details
Signed-off-by: Pawan <pawan@mayadata.io>
2020-12-02 12:21:47 +05:30
Pawan
d537bd3655 chore(refactor): move xfs and mount code out of zfs package
Signed-off-by: Pawan <pawan@mayadata.io>
2020-12-02 12:20:59 +05:30
Pawan
935a544538 chore(refactor): move btrfs code out of zfs package
Signed-off-by: Pawan <pawan@mayadata.io>
2020-11-25 01:14:48 +05:30
Pawan
3404bc032b chore(doc): adding v1.1.0 changelog
Signed-off-by: Pawan <pawan@mayadata.io>
2020-11-19 07:46:59 +05:30
Pawan
e83e051f83 fix(kust): rename the kustomize.yaml file to kustomization.yaml
Signed-off-by: Pawan <pawan@mayadata.io>
2020-11-18 17:53:36 +05:30
Akhil Mohan
b0eee6f26f fix(build): fix release tag env in buildscript
Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
2020-11-18 17:53:02 +05:30
Akhil Mohan
fc4121e5e9 chore(actions): replace deprecated methods in github actions
Signed-off-by: Akhil Mohan <akhil.mohan@mayadata.io>
2020-11-18 17:53:02 +05:30
Aman Gupta
919a058223
chore(yaml): changing the zfs-driver images to multi-arch docker hub images (#237)
Signed-off-by: Aman Gupta <aman.gupta@mayadata.io>
2020-11-14 12:44:38 +05:30
Pawan Prakash Sharma
fb6f1006da
feat(clone): add support for creating the Clone from volume as datasource (#234)
This PR adds the capability to create the Clone from pvc directly

```
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: pvc-clone
spec:
  storageClassName: openebs-snap
  dataSource:
    name: pvc-snap
    kind: PersistentVolumeClaim
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 4Gi
```
The ZFS_LocalPV driver will create one internal snapshot of the name
same as the new volume name and will create a clone out of it. Also,
while destroying the volume the driver will take care of deleting
the created snapshot for the clone.

Signed-off-by: Pawan <pawan@mayadata.io>
2020-11-11 18:58:25 +05:30
Prateek Pandey
e52d6c7067
feat(build): support for multi arch container image (#233)
* support for multi arch container image via github actions
* suffix amd64 arch tag in zfs driver image

Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
2020-11-11 14:16:33 +05:30
Pawan
64bc7cb1c9 feat(upgrade): support parallel/faster upgrades for node daemonset
For ZFSPV, all the node daemonset pods can go into the terminating state at
the same time since it does not need any minimum availability of those pods.

Changing maxUnavailable to 100% so that K8s can upgrade all the daemonset
pods parallelly.

Signed-off-by: Pawan <pawan@mayadata.io>
2020-11-03 12:54:58 +05:30
Pawan Prakash Sharma
f386bfc4ce
feat(kustomize): adding deployment via kustomize (#231)
Signed-off-by: Pawan <pawan@mayadata.io>
2020-10-31 10:06:22 +05:30
Pawan
00d3fc134e adding 1.0.0 release changelog
Signed-off-by: Pawan <pawan@mayadata.io>
2020-10-15 20:56:03 +05:30
Pawan
f998bc5c5e chore(changelog): adding changelog for v1.0.1 release
Following PR added for changelog
- https://github.com/openebs/zfs-localpv/pull/211
- https://github.com/openebs/zfs-localpv/pull/221

Signed-off-by: Pawan <pawan@mayadata.io>
2020-10-15 20:56:03 +05:30
Pawan
1851d4b4e0 chore(doc): updating the doc with the incremental backup details
Signed-off-by: Pawan <pawan@mayadata.io>
2020-10-14 09:58:56 +05:30
Gagandeep Singh
3da4f7308e
chore(refactor): Remove MountInfo struct from api (#225)
Signed-off-by: Gagandeep Singh <codegagan@gmail.com>
2020-10-12 10:59:23 +05:30
Naveenkhasyap
55a155c4a5
add go report card badge for ZFS-LocalPV (#223)
Signed-off-by: Naveenkhasyap <naveen.maltesh@gmail.com>
2020-10-01 14:20:58 +05:30
Pawan
26968b5394 feat(backup,restore): adding validation for backup and restore
Added a schema validation for backup and restore CR. Also validating
the server address in the backup/restore controller.

Validating the server address as :

^([0-9]+.[0-9]+.[0-9]+.[0-9]+:[0-9]+)$

which is :

<any number>.<any number>.<any number>.<any number>:<any number>

Here we are validating just the format of the IP, not validating that IP should be
correct which  will be little more complex. In any case if IP is not correct,
the zfs send will fail, so no need to do complex validation to validate the
correct IP and port.

Signed-off-by: Pawan <pawan@mayadata.io>
2020-09-30 11:32:32 +05:30
Pawan Prakash Sharma
5ea411ad05
chore(doc): updating the doc with supported storageclass parameters (#212)
Updating the doc with supported storageclass parameters

Also updated the readme with operator yaml to install the latest release
instead of ci release. Also corrected few formatting in the doc.

Adding hackmd notes from community meetings. 

Signed-off-by: Pawan <pawan@mayadata.io>
2020-09-23 23:10:03 +05:30
Pawan
c9ea713333 chore(yaml): removing centos yamls from the repo
Now we have the same operator yaml which can work for all
OS distro. We don't need to have OS specific Operator yamls.

Signed-off-by: Pawan <pawan@mayadata.io>
2020-09-16 21:09:10 +05:30
Pawan
b81f42a526 chore(changelog): adding change log for v1.0.0 release
Signed-off-by: Pawan <pawan@mayadata.io>
2020-09-15 23:33:54 +05:30
Pawan
5d05468694 chore(doc): adding docs for backup and restore
Signed-off-by: Pawan <pawan@mayadata.io>
2020-09-15 23:31:54 +05:30
ajeet_rai
27fe7e3b06
chore(check): Add license-check for .go , .sh , Dockerfile and Makefile (#205)
Signed-off-by: ajeetrai707 <ajeetrai707@gmail.com>
2020-09-08 20:37:59 +05:30