Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 9a7fbb6

Browse files
committed
Move template* packages to internal/helm
… they are only used by `helm` so let's *hide* them here. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 42ae8ca commit 9a7fbb6

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

internal/helm/helm.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import (
1111
yaml "gopkg.in/yaml.v2"
1212

1313
"github.com/docker/app/internal"
14+
"github.com/docker/app/internal/helm/templateconversion"
15+
"github.com/docker/app/internal/helm/templateloader"
16+
"github.com/docker/app/internal/helm/templatev1beta2"
1417
"github.com/docker/app/internal/packager"
1518
"github.com/docker/app/internal/render"
1619
"github.com/docker/app/internal/settings"
1720
"github.com/docker/app/internal/slices"
18-
"github.com/docker/app/internal/templateconversion"
19-
"github.com/docker/app/internal/templateloader"
20-
"github.com/docker/app/internal/templatev1beta2"
2121
"github.com/docker/app/internal/types"
2222
"github.com/docker/cli/cli/command/stack/kubernetes"
2323
"github.com/docker/cli/cli/compose/loader"

internal/templateconversion/convert.go renamed to internal/helm/templateconversion/convert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"strconv"
77
"strings"
88

9-
composeTypes "github.com/docker/app/internal/templatetypes"
10-
v1beta2 "github.com/docker/app/internal/templatev1beta2"
9+
composeTypes "github.com/docker/app/internal/helm/templatetypes"
10+
v1beta2 "github.com/docker/app/internal/helm/templatev1beta2"
1111
)
1212

1313
// FromComposeConfig converts a compose.Config into a StackSpec
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"strings"
1111
"time"
1212

13-
types "github.com/docker/app/internal/templatetypes"
13+
types "github.com/docker/app/internal/helm/templatetypes"
1414
"github.com/docker/cli/cli/compose/schema"
1515
"github.com/docker/cli/cli/compose/template"
1616
"github.com/docker/cli/opts"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"unicode"
66
"unicode/utf8"
77

8-
types "github.com/docker/app/internal/templatetypes"
8+
types "github.com/docker/app/internal/helm/templatetypes"
99
"github.com/docker/docker/api/types/mount"
1010
"github.com/pkg/errors"
1111
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package templatev1beta2
22

33
import (
4-
types "github.com/docker/app/internal/templatetypes"
4+
types "github.com/docker/app/internal/helm/templatetypes"
55
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
66
"k8s.io/apimachinery/pkg/runtime"
77
)

0 commit comments

Comments
 (0)