{{$namePrefix := DefaultParam .namePrefix "list-benchmark-"}}
{{$replicas := DefaultParam .replicas 0}}
{{$uri := DefaultParam .uri "/"}}
{{$contentType := DefaultParam .contentType "json"}}

steps:
- name: Creating WaitForControlledPodsRunning measurement
  measurements:
  - Identifier: WaitForListBenchmarkDeployment
    Method: WaitForControlledPodsRunning
    Params:
      action: start
      apiVersion: apps/v1
      checkIfPodsAreUpdated: true
      kind: Deployment
      labelSelector: group = benchmark
      operationTimeout: 5m
- name: Deploying {{$namePrefix}}deployment
  phases:
  - tuningSet: Sequence
    replicasPerNamespace: 1
    namespaceRange:
      min: 0
      max: 0
      basename: list-benchmark
    objectBundle:
    - basename: {{$namePrefix}}deploy
      objectTemplatePath: deployment.yaml
      templateFillMap:
        Replicas: {{$replicas}}
        Uri: {{$uri}}
        ContentType: {{$contentType}}
- name: Waiting for WaitForControlledPodsRunning gather
  measurements:
  - Identifier: WaitForListBenchmarkDeployment
    Method: WaitForControlledPodsRunning
    Params:
      action: gather
