Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-10671

Add environment configuration fields as first-class pipeline options

Details

    Description

      The pipeline option --environment_config has completely different usages depending on the value of --environment_type. This is confusing for the user and hard to check. Additionally, --environment_config is a JSON blob for --environment_type=PROCESS. This JSON blob is a pain to escape and pass around compared to a collection of flat strings.

      We should replace --environment_config with first-class / top-level pipeline options for each environment type:

      DOCKER

      --environment_container_image

      PROCESS

      --environment_os

      --environment_architecture

      --environment_variables

      EXTERNAL

      --environment_service_address

      LOOPBACK

      (none)

      This way we can validate that the user is configuring these options correctly (ie give a warning or error if they use options that do not apply to their chosen --environment_type).

      We can deprecate the --environment_config option, logging a warning until removing this option altogether in a future Beam release.

      https://beam.apache.org/documentation/runtime/sdk-harness-config/

      Attachments

        Activity

          People

            ibzib Kyle Weaver
            ibzib Kyle Weaver
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 14h
                14h