app: added helm tgz handle

This commit is contained in:
2026-03-12 16:59:29 +02:00
parent 0d67944966
commit 95ed9ddb97
3182 changed files with 957097 additions and 133 deletions
+2
View File
@@ -24,6 +24,8 @@ type File struct {
UpdatedAt string `db:"updated_at" json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
CreatedBy string `db:"created_by" json:"createdBy,omitempty" yaml:"createdBy,omitempty"`
UpdatedBy string `db:"updated_by" json:"updatedBy,omitempty" yaml:"updatedBy,omitempty"`
HelmHash string `db:"helm_hash" json:"helmHash,omitempty" yaml:"helmHash,omitempty"`
HelmMeta string `db:"helm_meta" json:"helmMeta,omitempty" yaml:"helmMeta,omitempty"`
}
type Files struct {
+1 -5
View File
@@ -72,8 +72,8 @@ func (cli *Client) PushImage(ctx context.Context, filepath, imagepath string) er
dstdir := auxtool.MakeTmpFilename(filepath)
err = auxutar.Unarchive(filepath, dstdir)
defer os.RemoveAll(dstdir)
if err != nil {
//os.RemoveAll(dstdir)
return err
}
image, err := imageLoader(dstdir)
@@ -84,10 +84,6 @@ func (cli *Client) PushImage(ctx context.Context, filepath, imagepath string) er
if err != nil {
return err
}
err = os.RemoveAll(dstdir)
if err != nil {
return err
}
return err
}