Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
09796298
Commit
09796298
authored
Feb 29, 2016
by
Adam Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ref(expansion): move python code out of cmd
parent
01ad0ffa
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
4 additions
and
4 deletions
+4
-4
expander_test.go
cmd/expandybird/expander/expander_test.go
+1
-1
main.go
cmd/expandybird/main.go
+1
-1
service_test.go
cmd/expandybird/service/service_test.go
+2
-2
expansion.py
expansion/expansion.py
+0
-0
expansion_test.py
expansion/expansion_test.py
+0
-0
file_expander.py
expansion/file_expander.py
+0
-0
sandbox_loader.py
expansion/sandbox_loader.py
+0
-0
schema_validation.py
expansion/schema_validation.py
+0
-0
schema_validation_test.py
expansion/schema_validation_test.py
+0
-0
schema_validation_utils.py
expansion/schema_validation_utils.py
+0
-0
No files found.
cmd/expandybird/expander/expander_test.go
View file @
09796298
...
@@ -37,7 +37,7 @@ var importFileNames = []string{
...
@@ -37,7 +37,7 @@ var importFileNames = []string{
var
validFileName
=
"../test/ValidContent.yaml"
var
validFileName
=
"../test/ValidContent.yaml"
var
outputFileName
=
"../test/ExpectedOutput.yaml"
var
outputFileName
=
"../test/ExpectedOutput.yaml"
var
archiveFileName
=
"../test/TestArchive.tar"
var
archiveFileName
=
"../test/TestArchive.tar"
var
expanderName
=
"../expansion/expansion.py"
var
expanderName
=
"../
../../
expansion/expansion.py"
type
ExpanderTestCase
struct
{
type
ExpanderTestCase
struct
{
Description
string
Description
string
...
...
cmd/expandybird/main.go
View file @
09796298
...
@@ -33,7 +33,7 @@ import (
...
@@ -33,7 +33,7 @@ import (
var
port
=
flag
.
Int
(
"port"
,
8080
,
"Port to listen on"
)
var
port
=
flag
.
Int
(
"port"
,
8080
,
"Port to listen on"
)
// path to expansion binary
// path to expansion binary
var
expansionBinary
=
flag
.
String
(
"expansion_binary"
,
"../expansion/expansion.py"
,
var
expansionBinary
=
flag
.
String
(
"expansion_binary"
,
"../
../../
expansion/expansion.py"
,
"The path to the expansion binary that will be used to expand the template."
)
"The path to the expansion binary that will be used to expand the template."
)
func
main
()
{
func
main
()
{
...
...
cmd/expandybird/service/service_test.go
View file @
09796298
...
@@ -26,8 +26,8 @@ import (
...
@@ -26,8 +26,8 @@ import (
"reflect"
"reflect"
"testing"
"testing"
"github.com/kubernetes/deployment-manager/pkg/common"
"github.com/kubernetes/deployment-manager/cmd/expandybird/expander"
"github.com/kubernetes/deployment-manager/cmd/expandybird/expander"
"github.com/kubernetes/deployment-manager/pkg/common"
"github.com/kubernetes/deployment-manager/pkg/util"
"github.com/kubernetes/deployment-manager/pkg/util"
restful
"github.com/emicklei/go-restful"
restful
"github.com/emicklei/go-restful"
...
@@ -112,7 +112,7 @@ var ServiceWrapperTestCases = []ServiceWrapperTestCase{
...
@@ -112,7 +112,7 @@ var ServiceWrapperTestCases = []ServiceWrapperTestCase{
}
}
func
TestServiceWrapper
(
t
*
testing
.
T
)
{
func
TestServiceWrapper
(
t
*
testing
.
T
)
{
backend
:=
expander
.
NewExpander
(
"../expansion/expansion.py"
)
backend
:=
expander
.
NewExpander
(
"../
../../
expansion/expansion.py"
)
wrapper
:=
NewService
(
NewExpansionHandler
(
backend
))
wrapper
:=
NewService
(
NewExpansionHandler
(
backend
))
container
:=
restful
.
NewContainer
()
container
:=
restful
.
NewContainer
()
container
.
ServeMux
=
http
.
NewServeMux
()
container
.
ServeMux
=
http
.
NewServeMux
()
...
...
cmd/expandybird/
expansion/expansion.py
→
expansion/expansion.py
View file @
09796298
File moved
cmd/expandybird/
expansion/expansion_test.py
→
expansion/expansion_test.py
View file @
09796298
File moved
cmd/expandybird/
expansion/file_expander.py
→
expansion/file_expander.py
View file @
09796298
File moved
cmd/expandybird/
expansion/sandbox_loader.py
→
expansion/sandbox_loader.py
View file @
09796298
File moved
cmd/expandybird/
expansion/schema_validation.py
→
expansion/schema_validation.py
View file @
09796298
File moved
cmd/expandybird/
expansion/schema_validation_test.py
→
expansion/schema_validation_test.py
View file @
09796298
File moved
cmd/expandybird/
expansion/schema_validation_utils.py
→
expansion/schema_validation_utils.py
View file @
09796298
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment