(CommandList
  children: [
    (FuncDef
      name: prepare-e2e
      body: 
        (BraceGroup
          children: [
            (SimpleCommand
              words: [{(echo)} {(DQ ("Local doesn't need special preparations for e2e tests"))}]
              redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[61])]
            )
          ]
          spids: [52]
        )
      spids: [46 51]
    )
    (FuncDef
      name: detect-master
      body: 
        (BraceGroup
          children: [
            (C {(export)} {(Lit_VarLike 'KUBE_MASTER_IP=') (DQ (127.0.0.1))})
            (C {(export)} {(Lit_VarLike 'KUBE_MASTER=') (DQ (localhost))})
          ]
          spids: [74]
        )
      spids: [70 73]
    )
    (FuncDef
      name: detect-master
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:KUBE_MASTER)
                  op: Equal
                  rhs: {(localhost)}
                  spids: [102]
                )
              ]
              spids: [102]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:KUBE_MASTER_IP)
                  op: Equal
                  rhs: {(127.0.0.1)}
                  spids: [106]
                )
              ]
              spids: [106]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:KUBE_MASTER_URL)
                  op: Equal
                  rhs: {(DQ ('http://') (${ VSub_Name KUBE_MASTER_IP) (':8080'))}
                  spids: [110]
                )
              ]
              spids: [110]
            )
            (C {(echo)} 
              {
                (DQ ('Using master: ') ($ VSub_Name '$KUBE_MASTER') (' (external IP: ') 
                  ($ VSub_Name '$KUBE_MASTER_IP') (')')
                )
              }
            )
          ]
          spids: [99]
        )
      spids: [95 98]
    )
  ]
)