Re: limitation of anchor and alias?
Tom Corcoran <[email protected]> Tue, 23 Mar 2021 15:02:34 +0000
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <CAELuEwH+N8rCzLX334D44VXwqnsH+vcuFYkvDPvj=-P5_B8N1A@mail.gmail.com> |
--===============7906778204344524450== Content-Type: multipart/alternative; boundary="0000000000002391f605be357b1b" --0000000000002391f605be357b1b Content-Type: text/plain; charset="UTF-8" I have since learned that YAML is a dead language, not maintained for over 10 years, which seem strange considering how much it's used these days. On Thu, 18 Mar 2021 at 21:50, Tom Corcoran <[email protected]> wrote: > I have an anchor as follows: > > helm-install > docker-flags: &my_docker_flags > - "--network host" > - "--env KUBECONFIG=/tmp/admin.conf" > - "--env HOME=${env.HOME}" > - "--volume ${env.KUBECONFIG}:/tmp/admin.conf:ro" > - "--volume ${env.PWD}:${env.PWD}" > - "--volume ${env.HOME}/.helm:${env.HOME}/.helm" > - "--volume > ${var.docker_config_basepath}:${var.docker_config_basepath}" > > later I want to do: > > docker-flags: > <<: *d my_docker_flags > - "--env K8_NAMESPACE=${env.K8_NAMESPACE}" > > But, the last line is flagged as bad indentation of a mapping entry YAML > > Have I come across a limitation? > --0000000000002391f605be357b1b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I have since learned that YAML is a dead language, not mai= ntained for over 10 years, which seem strange considering how much it's= used these days.<br clear=3D"all"><div></div></div><br><div class=3D"gmail= _quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, 18 Mar 2021 at 21:50,= Tom Corcoran <<a href=3D"mailto:[email protected]">[email protected]</a= >> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px= 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><di= v dir=3D"ltr"><div>I have an anchor as follows:</div><div><br></div><div>he= lm-install</div><div>=C2=A0 =C2=A0 =C2=A0 docker-flags: &my_docker_flag= s<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 - "--network host"<br>=C2=A0 =C2= =A0 =C2=A0 =C2=A0 - "--env KUBECONFIG=3D/tmp/admin.conf"<br>=C2= =A0 =C2=A0 =C2=A0 =C2=A0 - "--env HOME=3D${env.HOME}"<br>=C2=A0 = =C2=A0 =C2=A0 =C2=A0 - "--volume ${env.KUBECONFIG}:/tmp/admin.conf:ro&= quot;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 - "--volume ${env.PWD}:${env.PWD}= "<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 - "--volume ${env.HOME}/.helm:${= env.HOME}/.helm"</div><div><div><div dir=3D"ltr">=C2=A0 =C2=A0 =C2=A0 = =C2=A0 - "--volume ${var.docker_config_basepath}:${var.docker_config_b= asepath}"</div><div dir=3D"ltr"><br></div><div>later I want to do:</di= v><div><br></div><div>=C2=A0 =C2=A0 =C2=A0 docker-flags:<br>=C2=A0 =C2=A0 = =C2=A0 =C2=A0 <<: *d my_docker_flags <br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 - "--env K8_NAMESPACE=3D${env.K8_NAMES= PACE}"</div><div><br></div><div>But, the last line is flagged as bad i= ndentation of a mapping entry YAML</div><div><br></div><div dir=3D"ltr">Hav= e I come across a limitation? <br></div></div></div></div> </blockquote></div> --0000000000002391f605be357b1b-- --===============7906778204344524450== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============7906778204344524450== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Yaml-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/yaml-core --===============7906778204344524450==--