added kubernetes support

This commit is contained in:
2025-04-07 14:00:59 +03:00
parent bcd05ebf4e
commit 5d6adb88d8
5 changed files with 49 additions and 23 deletions

View File

@@ -98,6 +98,7 @@ func convertImageInspectToInstanceImage(image image.InspectResponse) instanceman
fmt.Printf("image: %#v\nconfig: %#v\nports: %#v\n", image, image.Config, ports)
return instancemanager.Image{
Id: image.RepoTags[0],
Registry: modelsImage.Registry,
Tag: modelsImage.Tag,
Command: strings.Join(image.Config.Cmd, " "),
@@ -115,7 +116,6 @@ func convertContainerLabelsToStruct(labels map[string]string) (*ContainerLabels,
}
err = json.Unmarshal(rawLabels, &containerLabels)
if err != nil {
return nil, err
}
@@ -132,7 +132,6 @@ func convertVolumeLabelsToStruct(labels map[string]string) (*VolumeLabels, error
}
err = json.Unmarshal(rawLabels, &volumeLabels)
if err != nil {
return nil, err
}
@@ -149,7 +148,6 @@ func convertImageLabelsToStruct(labels map[string]string) (*ImageLabels, error)
}
err = json.Unmarshal(rawLabels, &imageLabels)
if err != nil {
return nil, err
}