Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-4552

Extend POST /deployment endpoint to accept and store update_control_map

    XMLWordPrintable

    Details

      Description

      Acceptance criteria:

      • POST /deployments endpoint must accept a new parameter: update_control_map.
        • POST v1/deployments
        • POST v2/deployments
        • POST v1/deployments/group/<name>
      • Parameter must be a JSON object, but should otherwise not be inspected.
      • Map must be stored in deployments object
      • Enterprise plan only.
      • Unit tests
      • Maybe acceptance test, if appropriate
      • Feature branch: feature-update_control_maps

      An example of an Update Control map:

      {
        "priority": 0,
        "states": {
          "ArtifactInstall_Enter": {
            "action": "pause",
            "on_map_expire": "fail"
          }
        },
        "id": "01234567-89ab-cdef-0123-456789abcdef"
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                marcin.chalczynski Marcin Chalczynski
                Reporter:
                a10040 Kristian Amlie
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel