Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-10947

Need a way to figure out if a macro field has the value substituted in for validation

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Pipelines
    • Labels:
    • Rank:
      1|hzzos7:

      Description

      Right now, when you have macro enabled fields, you have a function in the plugin config containsMacro function, but there's no way to figure out if the macro values have actually been substituted or not. It is just assumed that when the pipeline is running, the values have been substituted.

      This means you need two different validate functions: one to run when the pipeline is being deployed, and another to run when the pipeline starts.

      It would be handy to have a function to check if the macro value had been substituted in so that the user could code against it in the config.validate() function.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                russellsavage Russ Savage
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: