(CommandList
  children: [
    (C {(set)} {(-o)} {(errexit)})
    (C {(set)} {(-o)} {(nounset)})
    (C {(set)} {(-o)} {(pipefail)})
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:KUBE_ROOT)
          op: Equal
          rhs: 
            {
              (CommandSubPart
                command_list: 
                  (CommandList
                    children: [(C {(dirname)} {(DQ (${ VSub_Name BASH_SOURCE))})]
                  )
                left_token: <Left_CommandSub '$('>
                spids: [66 74]
              ) (/..)
            }
          spids: [65]
        )
      ]
      spids: [65]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (DBracket
                  expr: (LogicalNot child:(BoolUnary op_id:BoolUnary_f child:{(/.dockerenv)}))
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)})
            (C {(echo)} 
              {(DQ ("'make release-in-a-container' can only be used from a docker container."))}
            )
            (C {(echo)})
            (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [16777215 94]
        )
      ]
      spids: [16777215 114]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (Pipeline
                  children: [
                    (SimpleCommand
                      words: [{(type)} {(-p)} {(docker)}]
                      redirects: [
                        (Redir
                          op_id: Redir_Great
                          fd: 16777215
                          arg_word: {(/dev/null)}
                          spids: [130]
                        )
                        (Redir
                          op_id: Redir_GreatAnd
                          fd: 2
                          arg_word: {(1)}
                          spids: [133]
                        )
                      ]
                    )
                  ]
                  negated: T
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (C {(echo)})
            (C {(echo)} {(DQ ("'make release-in-a-container' requires a container with"))} 
              {(DQ ('docker installed.'))}
            )
            (C {(echo)})
            (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [16777215 137]
        )
      ]
      spids: [16777215 163]
    )
    (C {(make)} {(cross-in-a-container)})
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (DBracket
                  expr: 
                    (BoolBinary
                      op_id: BoolBinary_EqualTilde
                      left: {($ VSub_Name '$KUBE_RELEASE_RUN_TESTS')}
                      right: {(Lit_Other '^') (Lit_Other '[') (yY) (Lit_Other ']') (Lit_Other '$')}
                    )
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [(C {(make)} {(test)})]
          spids: [16777215 195]
        )
      ]
      spids: [16777215 202]
    )
    (C {($ VSub_Name '$KUBE_ROOT') (/build/package-tarballs.sh)})
  ]
)