Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.

Commit

Permalink
Fix the spelling as per review
Browse files Browse the repository at this point in the history
Signed-off-by: kmova <[email protected]>
  • Loading branch information
kmova committed Jun 29, 2018
1 parent 89b4be5 commit 4588d21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions openebs/openebs-provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ func (p *openEBSProvisioner) Provision(options controller.VolumeOptions) (*v1.Pe

//Pass through labels from PVC to maya-apiserver
volumeSpec.Metadata.Labels.Application = options.PVC.ObjectMeta.GetLabels()[mayav1.PVCLabelsApplication]
volumeSpec.Metadata.Labels.ReplicaTopoKeyDomain = options.PVC.ObjectMeta.GetLabels()[mayav1.PVCLabelsREplicaTopKeyDomain]
volumeSpec.Metadata.Labels.ReplicaTopoKeyType = options.PVC.ObjectMeta.GetLabels()[mayav1.PVCLabelsREplicaTopKeyType]
volumeSpec.Metadata.Labels.ReplicaTopoKeyDomain = options.PVC.ObjectMeta.GetLabels()[mayav1.PVCLabelsReplicaTopKeyDomain]
volumeSpec.Metadata.Labels.ReplicaTopoKeyType = options.PVC.ObjectMeta.GetLabels()[mayav1.PVCLabelsReplicaTopKeyType]

_, err := openebsVol.CreateVolume(volumeSpec)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions openebs/types/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ package v1

const (
PVCLabelsApplication = "volumeprovisioner.mapi.openebs.io/application"
PVCLabelsREplicaTopKeyDomain = "volumeprovisioner.mapi.openebs.io/replica-topology-key-domain"
PVCLabelsREplicaTopKeyType = "volumeprovisioner.mapi.openebs.io/replica-topology-key-type"
PVCLabelsReplicaTopKeyDomain = "volumeprovisioner.mapi.openebs.io/replica-topology-key-domain"
PVCLabelsReplicaTopKeyType = "volumeprovisioner.mapi.openebs.io/replica-topology-key-type"
)

//VolumeSpec holds the config for creating a OpenEBS Volume
Expand Down

0 comments on commit 4588d21

Please sign in to comment.