(CommandList
  children: [
    (C {(set)} {(-exuo)} {(pipefail)})
    (C {(kubectl)} {(delete)} 
      {(statefulsets) (Lit_Comma ',') (persistentvolumes) (Lit_Comma ',') (persistentvolumeclaims) 
        (Lit_Comma ',') (services) (Lit_Comma ',') (poddisruptionbudget)
      } {(-l)} {(Lit_VarLike 'app=') (cockroachdb)}
    )
    (Sentence
      child: 
        (ForEach
          iter_name: i
          iter_words: [
            {
              (CommandSubPart
                command_list: (CommandList children:[(C {(seq)} {(0)} {(3)})])
                left_token: <Left_CommandSub '$('>
                spids: [126 132]
              )
            }
          ]
          do_arg_iter: False
          body: 
            (DoGroup
              children: [
                (Pipeline
                  children: [
                    (SimpleCommand
                      words: [{(cat)}]
                      redirects: [
                        (HereDoc
                          op_id: Redir_DLess
                          fd: 16777215
                          body: 
                            {
                              (DQ ('kind: PersistentVolume\n') ('apiVersion: v1\n') ('metadata:\n') 
                                ('  name: pv') (${ VSub_Name i) ('\n') ('  labels:\n') ('    type: local\n') ('    app: cockroachdb\n') ('spec:\n') 
                                ('  capacity:\n') ('    storage: 1Gi\n') ('  accessModes:\n') ('    - ReadWriteOnce\n') ('  hostPath:\n') ('    path: ') 
                                (Right_DoubleQuote '"') (/tmp/) (${ VSub_Name i) (Right_DoubleQuote '"') ('\n')
                              )
                            }
                          do_expansion: True
                          here_end: EOF
                          was_filled: True
                          spids: [140]
                        )
                      ]
                    )
                    (C {(kubectl)} {(create)} {(-f)} {(-)})
                  ]
                  negated: False
                )
                (Pipeline
                  children: [
                    (SimpleCommand
                      words: [{(cat)}]
                      redirects: [
                        (HereDoc
                          op_id: Redir_DLess
                          fd: 16777215
                          body: 
                            {
                              (DQ ('kind: PersistentVolumeClaim\n') ('apiVersion: v1\n') 
                                ('metadata:\n') ('  name: datadir-cockroachdb-') (${ VSub_Name i) ('\n') ('  labels:\n') ('    app: cockroachdb\n') 
                                ('spec:\n') ('  accessModes:\n') ('    - ReadWriteOnce\n') ('  resources:\n') ('    requests:\n') 
                                ('      storage: 1Gi\n')
                              )
                            }
                          do_expansion: True
                          here_end: EOF
                          was_filled: True
                          spids: [183]
                        )
                      ]
                    )
                    (C {(kubectl)} {(create)} {(-f)} {(-)})
                  ]
                  negated: False
                )
              ]
              spids: [135 213]
            )
          spids: [125 133]
        )
      terminator: <Op_Semi ';'>
    )
    (C {(kubectl)} {(create)} {(-f)} {(cockroachdb-statefulset.yaml)})
  ]
)