diff --git a/common/message.go b/common/message.go index 148f05f8..41d5fb8f 100644 --- a/common/message.go +++ b/common/message.go @@ -38,6 +38,18 @@ var ( Description: utils.Ptr("progress of the app"), Example: utils.Ptr("64"), } + + PropertyTypeCheckPortConflict = message_bus.PropertyType{ + Name: "check_port_conflict", + Description: utils.Ptr("todo: the field should be remove in future. it is not need for most message"), + Example: utils.Ptr("true"), + } + + PropertyTypeDryRun = message_bus.PropertyType{ + Name: "dry_run", + Description: utils.Ptr("todo: the field should be remove in future. it is not need for most message"), + Example: utils.Ptr("false"), + } ) // container properties @@ -132,7 +144,11 @@ var ( Name: "app:install-progress", PropertyTypeList: []message_bus.PropertyType{ PropertyTypeAppName, + PropertyTypeAppIcon, PropertyTypeAppProgress, + PropertyTypeAppTitle, + PropertyTypeCheckPortConflict, + PropertyTypeDryRun, }, } diff --git a/service/image.go b/service/image.go index 33e3938e..491ace73 100644 --- a/service/image.go +++ b/service/image.go @@ -215,10 +215,10 @@ func pullImageProgress(ctx context.Context, out io.ReadCloser, notificationType switch message.Status { // pull a new layer case string(Pull): - layerNum += 1 + layerNum++ // pull a layer complete case string(PullComplete): - completedLayerNum += 1 + completedLayerNum++ } // layer progress