Skip to content

Commit e6117de

Browse files
authored
feature: inhert APPCMDS (#2068)
Signed-off-by: 煜星 <[email protected]>
1 parent 317c4b9 commit e6117de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: build/kubefile/parser/kubefile.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ func (kp *KubefileParser) generateResult(mainNode *Node) (*KubefileResult, error
141141
if i != len(mainNode.Children)-1 {
142142
return nil, errors.New("launch should be the last instruction")
143143
}
144-
145144
case command.Cmds:
146145
cmdsCnt++
147146
if cmdsCnt > 1 {
@@ -382,6 +381,9 @@ func (kp *KubefileParser) processFrom(node *Node, result *KubefileResult) error
382381
theApp := app
383382
result.Applications[app.Name()] = theApp
384383
}
384+
for _, appConfig := range imageSpec.ImageExtension.Launch.AppConfigs {
385+
result.ApplicationConfigs[appConfig.Name] = appConfig
386+
}
385387

386388
return nil
387389
}

0 commit comments

Comments
 (0)