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

adding topology support for zfspv #7

Merged
merged 10 commits into from
Nov 1, 2019
Prev Previous commit
Next Next commit
changint API version for kubernetes 1.16 and adding file check for li…
…brary also adding comments

Signed-off-by: Pawan <pawan@mayadata.io>
  • Loading branch information
pawanpraka1 committed Oct 31, 2019
commit 7c8eed7d12cfc9d42971b9cf00c3c0fd6b99ac78
3 changes: 3 additions & 0 deletions cmd/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ func (c *ZVController) syncZV(zv *apis.ZFSVolume) error {
zvol.RemoveZvolFinalizer(zv)
}
} else {
// if finalizer is not set then it means we are creating
kmova marked this conversation as resolved.
Show resolved Hide resolved
// the volume. And if it is set then volume has already been
// created and this event is for property change only.
if zv.Finalizers != nil {
kmova marked this conversation as resolved.
Show resolved Hide resolved
err = zvol.SetZvolProp(zv)
} else {
Expand Down
10 changes: 8 additions & 2 deletions deploy/zfs-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ roleRef:

---
kind: StatefulSet
apiVersion: apps/v1beta1
apiVersion: apps/v1
metadata:
name: openebs-zfs-controller
namespace: kube-system
Expand Down Expand Up @@ -324,7 +324,7 @@ roleRef:
---

kind: DaemonSet
apiVersion: apps/v1beta2
apiVersion: apps/v1
metadata:
name: openebs-zfs-node
namespace: kube-system
Expand Down Expand Up @@ -427,21 +427,27 @@ spec:
- name: zfs-bin
hostPath:
path: /sbin/zfs
type: File
- name: libzpool
hostPath:
path: /lib/libzpool.so.2.0.0
type: File
- name: libzfscore
hostPath:
path: /lib/libzfs_core.so.1.0.0
type: File
- name: libzfs
hostPath:
path: /lib/libzfs.so.2.0.0
type: File
- name: libuutil
hostPath:
path: /lib/libuutil.so.1.0.1
type: File
- name: libnvpair
hostPath:
path: /lib/libnvpair.so.1.0.1
type: File
- name: registration-dir
hostPath:
path: /var/lib/kubelet/plugins_registry/
Expand Down