Adding support for --profile cmd option

This commit is contained in:
axel7083
2023-09-17 17:41:05 +02:00
parent 708b222ed5
commit a7c63a650c
6 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ func Convert(opt kobject.ConvertOptions) ([]runtime.Object, error) {
komposeObject := kobject.KomposeObject{
ServiceConfigs: make(map[string]kobject.ServiceConfig),
}
komposeObject, err = l.LoadFile(opt.InputFiles)
komposeObject, err = l.LoadFile(opt.InputFiles, opt.Profiles)
if err != nil {
log.Fatalf(err.Error())
}