Skip to content

Commit

Permalink
client/allocrunner/csi_hook: include the namespace for Claim
Browse files Browse the repository at this point in the history
  • Loading branch information
langmartin committed Aug 10, 2020
1 parent 6d5eb78 commit 057a096
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/allocrunner/csi_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,12 @@ func (c *csiHook) claimVolumesFromAlloc() (map[string]*volumeAndRequest, error)
AllocationID: c.alloc.ID,
NodeID: c.alloc.NodeID,
Claim: claimType,
WriteRequest: structs.WriteRequest{
Region: c.alloc.Job.Region,
Namespace: c.alloc.Job.Namespace,
AuthToken: c.ar.clientConfig.Node.SecretID,
},
}
req.Region = c.alloc.Job.Region
req.AuthToken = c.ar.clientConfig.Node.SecretID

var resp structs.CSIVolumeClaimResponse
if err := c.rpcClient.RPC("CSIVolume.Claim", req, &resp); err != nil {
Expand Down

0 comments on commit 057a096

Please sign in to comment.