1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

feat(libhelm) update missed package paths [EE-4650] (#8134)

* add missing pkg paths

* fix go tests

* fixed pkg paths
This commit is contained in:
Matt Hook 2022-12-05 10:38:16 +13:00 committed by GitHub
parent cbaba43842
commit d6a3fe23e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 48 additions and 46 deletions

View file

@ -5,7 +5,7 @@ A helm abstraction for Portainer.
## Installation
```sh
go get github.com/portainer/portainer/api/pkg/libhelm
go get github.com/portainer/portainer/pkg/libhelm
```
## Tests

View file

@ -2,7 +2,8 @@ package binary
import (
"github.com/pkg/errors"
"github.com/portainer/libhelm/options"
"github.com/portainer/portainer/pkg/libhelm/options"
)
// Get runs `helm get` with specified get options.

View file

@ -7,7 +7,7 @@ import (
"runtime"
"github.com/pkg/errors"
"github.com/portainer/libhelm/options"
"github.com/portainer/portainer/pkg/libhelm/options"
)
// helmBinaryPackageManager is a wrapper for the helm binary which implements HelmPackageManager

View file

@ -4,8 +4,8 @@ import (
"encoding/json"
"github.com/pkg/errors"
"github.com/portainer/libhelm/options"
"github.com/portainer/libhelm/release"
"github.com/portainer/portainer/pkg/libhelm/options"
"github.com/portainer/portainer/pkg/libhelm/release"
)
// Install runs `helm install` with specified install options.

View file

@ -6,7 +6,7 @@ import (
"path/filepath"
"testing"
"github.com/portainer/libhelm/options"
"github.com/portainer/portainer/pkg/libhelm/options"
"github.com/stretchr/testify/assert"
)

View file

@ -4,8 +4,8 @@ import (
"encoding/json"
"github.com/pkg/errors"
"github.com/portainer/libhelm/options"
"github.com/portainer/libhelm/release"
"github.com/portainer/portainer/pkg/libhelm/options"
"github.com/portainer/portainer/pkg/libhelm/release"
)
// List runs `helm list --output json --filter <filter> --selector <selector> --namespace <namespace>` with specified list options.

View file

@ -12,7 +12,7 @@ import (
"time"
"github.com/pkg/errors"
"github.com/portainer/libhelm/options"
"github.com/portainer/portainer/pkg/libhelm/options"
"gopkg.in/yaml.v3"
)

View file

@ -3,8 +3,8 @@ package binary
import (
"testing"
"github.com/portainer/libhelm/libhelmtest"
"github.com/portainer/libhelm/options"
"github.com/portainer/portainer/pkg/libhelm/libhelmtest"
"github.com/portainer/portainer/pkg/libhelm/options"
"github.com/stretchr/testify/assert"
)

View file

@ -2,7 +2,7 @@ package binary
import (
"github.com/pkg/errors"
"github.com/portainer/libhelm/options"
"github.com/portainer/portainer/pkg/libhelm/options"
)
var errRequiredShowOptions = errors.New("chart, repo and output format are required")

View file

@ -5,9 +5,9 @@ import (
"strings"
"github.com/pkg/errors"
"github.com/portainer/libhelm/options"
"github.com/portainer/libhelm/release"
"github.com/portainer/portainer/api/pkg/libhelm"
"github.com/portainer/portainer/pkg/libhelm"
"github.com/portainer/portainer/pkg/libhelm/options"
"github.com/portainer/portainer/pkg/libhelm/release"
"gopkg.in/yaml.v3"
)

View file

@ -2,7 +2,7 @@ package binary
import (
"github.com/pkg/errors"
"github.com/portainer/libhelm/options"
"github.com/portainer/portainer/pkg/libhelm/options"
)
var errRequiredUninstallOptions = errors.New("release name is required")

View file

@ -1,8 +1,8 @@
package libhelm
import (
"github.com/portainer/libhelm/options"
"github.com/portainer/libhelm/release"
"github.com/portainer/portainer/pkg/libhelm/options"
"github.com/portainer/portainer/pkg/libhelm/release"
)
// HelmPackageManager represents a service that interfaces with Helm

View file

@ -3,7 +3,7 @@ package libhelm
import (
"errors"
"github.com/portainer/libhelm/binary"
"github.com/portainer/portainer/pkg/libhelm/binary"
)
// HelmConfig is a struct that holds the configuration for the Helm package manager

View file

@ -1,6 +1,6 @@
package release
import "github.com/portainer/libhelm/time"
import "github.com/portainer/portainer/pkg/libhelm/time"
// Release is the struct that holds the information for a helm release.
// The struct definitions have been copied from the offical Helm Golang client/library.

View file

@ -3,7 +3,8 @@ package libhelm
import (
"testing"
"github.com/portainer/libhelm/libhelmtest"
"github.com/portainer/portainer/pkg/libhelm/libhelmtest"
"github.com/stretchr/testify/assert"
)