(List (FunctionDef load-docker-images [] (List (Com {[LIT_CHARS let]} {[LIT_VAR_LIKE "loadedImageFlags="] [LIT_CHARS 0] =} ) (While (Com {[LIT_CHARS true]} ) (List (= scope= flags=0 words=[] bindings=[('restart_docker', {[LIT_CHARS false]})]) (If (Com {[LIT_CHARS which]} {[LIT_CHARS docker]} < (FilenameRedirectNode filename={[LIT_CHARS /dev/null]} "> 1), (DescriptorRedirectNode target={[LIT_CHARS 1]} &"> 2), > ) (List (Com {[LIT_CHARS timeout]} {[LIT_CHARS 120]} {[LIT_CHARS docker]} {[LIT_CHARS load]} {[LIT_CHARS -i]} {[LIT_CHARS /srv/salt/kube-bins/kube-apiserver.tar]} < (FilenameRedirectNode filename={[LIT_CHARS /dev/null]} "> 1), (DescriptorRedirectNode target={[LIT_CHARS 1]} &"> 2), > ) (= scope= flags=0 words=[] bindings=[('rc', {[VarSub ?]})]) (If (DBracket {B2 BINARY_STRING_EQUAL {[VarSub rc]} {[LIT_CHARS 0]}}) (Com {[LIT_CHARS let]} {[LIT_VAR_LIKE "loadedImageFlags="] [DQ [VarSub loadedImageFlags][LIT_CHARS "|1"]] =} ) (DBracket {B2 BINARY_STRING_EQUAL {[VarSub rc]} {[LIT_CHARS 124]}}) (= scope= flags=0 words=[] bindings=[('restart_docker', {[LIT_CHARS true]})]) ) (Com {[LIT_CHARS timeout]} {[LIT_CHARS 120]} {[LIT_CHARS docker]} {[LIT_CHARS load]} {[LIT_CHARS -i]} {[LIT_CHARS /srv/salt/kube-bins/kube-scheduler.tar]} < (FilenameRedirectNode filename={[LIT_CHARS /dev/null]} "> 1), (DescriptorRedirectNode target={[LIT_CHARS 1]} &"> 2), > ) (= scope= flags=0 words=[] bindings=[('rc', {[VarSub ?]})]) (If (DBracket {B2 BINARY_STRING_EQUAL {[VarSub rc]} {[LIT_CHARS 0]}}) (Com {[LIT_CHARS let]} {[LIT_VAR_LIKE "loadedImageFlags="] [DQ [VarSub loadedImageFlags][LIT_CHARS "|2"]] =} ) (DBracket {B2 BINARY_STRING_EQUAL {[VarSub rc]} {[LIT_CHARS 124]}}) (= scope= flags=0 words=[] bindings=[('restart_docker', {[LIT_CHARS true]})]) ) (Com {[LIT_CHARS timeout]} {[LIT_CHARS 120]} {[LIT_CHARS docker]} {[LIT_CHARS load]} {[LIT_CHARS -i]} {[LIT_CHARS /srv/salt/kube-bins/kube-controller-manager.tar]} < (FilenameRedirectNode filename={[LIT_CHARS /dev/null]} "> 1), (DescriptorRedirectNode target={[LIT_CHARS 1]} &"> 2), > ) (= scope= flags=0 words=[] bindings=[('rc', {[VarSub ?]})]) (If (DBracket {B2 BINARY_STRING_EQUAL {[VarSub rc]} {[LIT_CHARS 0]}}) (Com {[LIT_CHARS let]} {[LIT_VAR_LIKE "loadedImageFlags="] [DQ [VarSub loadedImageFlags][LIT_CHARS "|4"]] =} ) (DBracket {B2 BINARY_STRING_EQUAL {[VarSub rc]} {[LIT_CHARS 124]}}) (= scope= flags=0 words=[] bindings=[('restart_docker', {[LIT_CHARS true]})]) ) ) ) (If (DBracket {B2 BINARY_STRING_EQUAL {[VarSub loadedImageFlags]} {[LIT_CHARS 7]}}) (Com {[LIT_CHARS break]} ) ) (If (DBracket {B1 UNARY_STRING_n {[VarSub restart_docker]}}) (If (Pipeline! (Com {[LIT_CHARS service]} {[LIT_CHARS docker]} {[LIT_CHARS restart]} ) ) (Com {[LIT_CHARS systemctl]} {[LIT_CHARS restart]} {[LIT_CHARS docker]} ) ) ) (Com {[LIT_CHARS sleep]} {[LIT_CHARS 15]} ) ) ) ) ) (FunctionDef convert-rkt-image [] (Subshell (List (Com {[LIT_CHARS cd]} {[LIT_CHARS /tmp]} ) (Com {[VarSub DOCKER2ACI_BIN]} {[VarSub 1]} ) ) ) ) (FunctionDef load-rkt-images [] (List (Com {[LIT_CHARS convert-rkt-image]} {[LIT_CHARS /srv/salt/kube-bins/kube-apiserver.tar]} ) (Com {[LIT_CHARS convert-rkt-image]} {[LIT_CHARS /srv/salt/kube-bins/kube-scheduler.tar]} ) (Com {[LIT_CHARS convert-rkt-image]} {[LIT_CHARS /srv/salt/kube-bins/kube-controller-manager.tar]} ) (Com {[VarSub RKT_BIN]} {[LIT_CHARS fetch]} {[LIT_CHARS /tmp/] [LIT_OTHER "*"] [LIT_CHARS .aci]} {[LIT_CHARS --insecure-options] [LIT_DBRACKET_LIKE "="] [LIT_CHARS image]} ) ) ) (If (DBracket {B2 BINARY_STRING_EQUAL {[DQ [VarSub KUBERNETES_CONTAINER_RUNTIME]]} {[DQ [LIT_CHARS rkt]]}}) (Com {[LIT_CHARS load-rkt-images]} ) (ElseTrue) (Com {[LIT_CHARS load-docker-images]} ) ) )