@@ -585,7 +585,7 @@ func getModuleName(accessory v1.Accessory) (string, error) {
585585}
586586
587587func (g * appConfigurationGenerator ) initModuleRequest (config moduleConfig ) (* proto.GeneratorRequest , error ) {
588- var workloadConfig , devConfig , platformConfig , ctx []byte
588+ var workloadConfig , secretStoreConfig , devConfig , platformConfig , ctx []byte
589589 var err error
590590 // Attention: we MUST yaml.v2 to serialize the object,
591591 // because we have introduced MapSlice in the Workload which is supported only in the yaml.v2
@@ -594,6 +594,11 @@ func (g *appConfigurationGenerator) initModuleRequest(config moduleConfig) (*pro
594594 return nil , fmt .Errorf ("marshal workload config failed. %w" , err )
595595 }
596596 }
597+ if g .ws .SecretStore != nil {
598+ if secretStoreConfig , err = yamlv2 .Marshal (g .ws .SecretStore ); err != nil {
599+ return nil , fmt .Errorf ("marshal secret store config failed. %w" , err )
600+ }
601+ }
597602 if config .devConfig != nil {
598603 if devConfig , err = yaml .Marshal (config .devConfig ); err != nil {
599604 return nil , fmt .Errorf ("marshal dev module config failed. %w" , err )
@@ -618,6 +623,7 @@ func (g *appConfigurationGenerator) initModuleRequest(config moduleConfig) (*pro
618623 DevConfig : devConfig ,
619624 PlatformConfig : platformConfig ,
620625 Context : ctx ,
626+ SecretStore : secretStoreConfig ,
621627 }
622628 return protoRequest , nil
623629}
0 commit comments