zfs-localpv/pkg
Pawan 49dc99726b fix(topokey): changing topology key to unique name
There are setups where nodename is different than the hostname.
The driver uses the nodename and tries to set the "kubernetes.io/hostname"
node label to the nodename. Which will fail if nodename is not same as
hostname. Here, changing the key to unique name so that the driver can set
that key as node label and also it can not modify/touch the existing node labels.

Now onwards, the driver will use "openebs.io/nodename" key to set the PV node affinity.
Old volumes will have "kubernetes.io/hostname" affinity, and they will also work as
after the PR https://github.com/openebs/zfs-localpv/pull/94, it supports all the node
labels as topology key and all the nodes have "kubernetes.io/hostname" label set. So
old volumes will work without any issue. Also for the same reason old stoarge classes
which are using "kubernetes.io/hostname" as topology key, will work as that key is supported.

This fixes the issue where the driver was trying to create the PV on the master node
as master node is having "kubernetes.io/hostname" label, so it is also becoming a valid
candidate for provisioning the PV. After changing the key to unique name, since the driver
will not run on master node, so it will not set "openebs.io/nodename" label to this node
hence this node will never become a valid candidate for the provisioning the volume.

Signed-off-by: Pawan <pawan@mayadata.io>
2020-04-30 14:48:51 +05:30
..
apis/openebs.io/zfs/v1alpha1 feat(validation): adding validation for ZFSPV CR parameters (#66) 2020-04-14 17:26:46 +05:30
builder feat(crd-gen): automate the CRDs generation with validations for APIs (#75) 2020-04-01 17:54:20 +05:30
client/k8s/v1alpha1 feat(topology): adding support for custom topology keys (#94) 2020-04-30 14:13:29 +05:30
common feat(analytics): adding google analytics for ZFSPV 2020-03-02 23:00:22 +05:30
config feat(zfs-localpv): initial commit 2019-09-18 08:44:08 +05:30
driver feat(topology): adding support for custom topology keys (#94) 2020-04-30 14:13:29 +05:30
generated feat(crd-gen): automate the CRDs generation with validations for APIs (#75) 2020-04-01 17:54:20 +05:30
mgmt feat(crd-gen): automate the CRDs generation with validations for APIs (#75) 2020-04-01 17:54:20 +05:30
response feat(resize): adding Online volume expansion support for ZFSPV 2020-03-04 18:30:28 +05:30
usage feat(analytics): adding google analytics for ZFSPV 2020-03-02 23:00:22 +05:30
version feat(analytics): adding google analytics for ZFSPV 2020-03-02 23:00:22 +05:30
zfs fix(topokey): changing topology key to unique name 2020-04-30 14:48:51 +05:30