Skip to content

Commit

Permalink
wip: export fromComposeConfig
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Jun 25, 2018
1 parent 61e53fc commit 13760a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cli/command/stack/kubernetes/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func stackFromV1beta1(in *v1beta1.Stack) (stack, error) {
name: in.ObjectMeta.Name,
namespace: in.ObjectMeta.Namespace,
composeFile: in.Spec.ComposeFile,
spec: fromComposeConfig(ioutil.Discard, cfg),
spec: FromComposeConfig(ioutil.Discard, cfg),
}, nil
}

Expand Down Expand Up @@ -71,7 +71,7 @@ func stackToV1beta2(s stack) *v1beta2.Stack {
}
}

func fromComposeConfig(stderr io.Writer, c *composeTypes.Config) *v1beta2.StackSpec {
func FromComposeConfig(stderr io.Writer, c *composeTypes.Config) *v1beta2.StackSpec {
if c == nil {
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion cli/command/stack/kubernetes/stackclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,6 @@ func (s *stackV1Beta2) FromCompose(stderr io.Writer, name string, cfg *composety
func fromCompose(stderr io.Writer, name string, cfg *composetypes.Config) (stack, error) {
return stack{
name: name,
spec: fromComposeConfig(stderr, cfg),
spec: FromComposeConfig(stderr, cfg),
}, nil
}

0 comments on commit 13760a1

Please sign in to comment.