diff --git a/openebs/pkg/apis/openebs.io/v1alpha1/cas_volume.go b/openebs/pkg/apis/openebs.io/v1alpha1/cas_volume.go index 10da4cbfc82..356fbe862c0 100644 --- a/openebs/pkg/apis/openebs.io/v1alpha1/cas_volume.go +++ b/openebs/pkg/apis/openebs.io/v1alpha1/cas_volume.go @@ -57,6 +57,10 @@ const ( // PersistentVolumeClaimKey is the key to fetch name of PersistentVolumeClaim PersistentVolumeClaimKey CASKey = "openebs.io/persistentvolumeclaim" + // IsPatchJivaReplicaNodeAffinityHeader is the key to fetch value of IsPatchKey + // Its value is "Enable". + IsPatchJivaReplicaNodeAffinityHeader CASKey = "Is-Patch-Jiva-Replica-Node-Affinity" + // StorageClassKey is the key to fetch name of StorageClass StorageClassKey CASKey = "openebs.io/storageclass" diff --git a/openebs/pkg/volume/v1alpha1/volume.go b/openebs/pkg/volume/v1alpha1/volume.go index 0fccb320005..aae6b15f372 100644 --- a/openebs/pkg/volume/v1alpha1/volume.go +++ b/openebs/pkg/volume/v1alpha1/volume.go @@ -154,6 +154,7 @@ func (v CASVolume) ReadVolume(vname, namespace, storageclass string, obj interfa // passing storageclass info as a request header which will extracted by the // Maya-apiserver to get the CAS template name req.Header.Set(string(v1alpha1.StorageClassHeaderKey), storageclass) + req.Header.Set(string(v1alpha1.IsPatchJivaReplicaNodeAffinityHeader), "enabled") c := &http.Client{ Timeout: timeout,