Skip to content

Commit

Permalink
feature: inhert APPCMDS (#2068)
Browse files Browse the repository at this point in the history
Signed-off-by: 煜星 <[email protected]>
  • Loading branch information
starnop authored Feb 28, 2023
1 parent 317c4b9 commit e6117de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/kubefile/parser/kubefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ func (kp *KubefileParser) generateResult(mainNode *Node) (*KubefileResult, error
if i != len(mainNode.Children)-1 {
return nil, errors.New("launch should be the last instruction")
}

case command.Cmds:
cmdsCnt++
if cmdsCnt > 1 {
Expand Down Expand Up @@ -382,6 +381,9 @@ func (kp *KubefileParser) processFrom(node *Node, result *KubefileResult) error
theApp := app
result.Applications[app.Name()] = theApp
}
for _, appConfig := range imageSpec.ImageExtension.Launch.AppConfigs {
result.ApplicationConfigs[appConfig.Name] = appConfig
}

return nil
}
Expand Down

0 comments on commit e6117de

Please sign in to comment.