Skip to content

Commit

Permalink
Add comments to update kube and context from flex script
Browse files Browse the repository at this point in the history
  • Loading branch information
LilliJane committed Apr 9, 2018
1 parent bd19706 commit 5745d24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/flex/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ func (volp *DatasetVolumes) fetchAllowedSpace(path, namespace string) (space int
}

kube := svc.NewKube(di)
quotas, err := kube.ListQuotas(context.Background(), &svc.ListQuotasInput{})
quotas, err := kube.ListQuotas(context.TODO(), &svc.ListQuotasInput{})
if len(quotas.Items) == 0 {
return space, err
}
Expand Down Expand Up @@ -460,6 +460,8 @@ func (volp *DatasetVolumes) Mount(kubeMountPath string, opts MountOptions) (err
return errors.Wrap(err, "failed to write volume database")
}

//+TODO create kube here and inject it in provisionInput and fetchAllowedSpace
//TODO create a context with a deadline
//Set up input
err = volp.provisionInput(volp.getPath(kubeMountPath, RelPathInput), dsopts.Namespace, dsopts.InputDataset)

Expand Down

0 comments on commit 5745d24

Please sign in to comment.