@@ -65,11 +65,13 @@ pub enum Error {
6565pub trait InstallManifestsExt {
6666 // TODO (Techassi): This step shouldn't care about templating the manifests nor fetching them from remote
6767 #[ instrument( skip_all, fields( %namespace, indicatif. pb_show = true ) ) ]
68- #[ allow( async_fn_in_trait) ]
68+ #[ allow( clippy :: too_many_arguments , async_fn_in_trait) ]
6969 async fn install_manifests (
7070 manifests : & [ ManifestSpec ] ,
7171 parameters : & HashMap < String , String > ,
7272 namespace : & str ,
73+ stack_name : & str ,
74+ demo_name : Option < & str > ,
7375 labels : Labels ,
7476 client : & Client ,
7577 transfer_client : & xfer:: Client ,
@@ -80,9 +82,13 @@ pub trait InstallManifestsExt {
8082 Span :: current ( ) . pb_set_length ( manifests. len ( ) as u64 ) ;
8183
8284 let mut parameters = parameters. clone ( ) ;
83- // We add the NAMESPACE parameter, so that stacks/demos can use that to render e.g. the
84- // fqdn service names [which contain the namespace].
85+ // We need some additional templating capabilities, e.g. the namespace, so that stacks/demos
86+ // can use that to render e.g. the fqdn service names [which contain the namespace].
8587 parameters. insert ( "NAMESPACE" . to_owned ( ) , namespace. to_owned ( ) ) ;
88+ parameters. insert ( "STACK" . to_owned ( ) , stack_name. into ( ) ) ;
89+ if let Some ( demo_name) = demo_name {
90+ parameters. insert ( "DEMO" . to_owned ( ) , demo_name. into ( ) ) ;
91+ }
8692
8793 for manifest in manifests {
8894 let parameters = parameters. clone ( ) ;
0 commit comments