(ctx context.Context)
| 81 | } |
| 82 | |
| 83 | func (cmd *fioCommand) execute(ctx context.Context) error { |
| 84 | pvc, err := cmd.generatePVCObject() |
| 85 | if err != nil { |
| 86 | return err |
| 87 | } |
| 88 | configMap := cmd.generateConfigMapObject() |
| 89 | deployment := cmd.generateFioDeployment(cmd.name) |
| 90 | objectList := []client.Object{pvc, configMap, deployment} |
| 91 | |
| 92 | return plugin.CreateAndGenerateObjects(ctx, objectList, cmd.dryRun) |
| 93 | } |
| 94 | |
| 95 | // CreatePVC creates spec of a PVC, given its name and the storage configuration |
| 96 | func (cmd *fioCommand) generatePVCObject() (*corev1.PersistentVolumeClaim, error) { |
nothing calls this directly
no test coverage detected