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
c0850efe
Commit
c0850efe
authored
Nov 02, 2016
by
adieu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate tiller into pkg and cmd so we can use tiller as a library.
parent
6b31664c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
17 additions
and
13 deletions
+17
-13
tiller.go
cmd/tiller/tiller.go
+5
-1
tiller_test.go
cmd/tiller/tiller_test.go
+1
-1
environment.go
pkg/tiller/environment/environment.go
+0
-0
environment_test.go
pkg/tiller/environment/environment_test.go
+0
-0
hooks.go
pkg/tiller/hooks.go
+1
-1
hooks_test.go
pkg/tiller/hooks_test.go
+1
-1
kind_sorter.go
pkg/tiller/kind_sorter.go
+1
-1
kind_sorter_test.go
pkg/tiller/kind_sorter_test.go
+1
-1
release_history.go
pkg/tiller/release_history.go
+2
-2
release_history_test.go
pkg/tiller/release_history_test.go
+1
-1
release_server.go
pkg/tiller/release_server.go
+0
-0
release_server_test.go
pkg/tiller/release_server_test.go
+4
-4
No files found.
cmd/tiller/tiller.go
View file @
c0850efe
...
...
@@ -25,9 +25,11 @@ import (
"github.com/spf13/cobra"
"google.golang.org/grpc"
"k8s.io/helm/
cmd/tiller/environment
"
"k8s.io/helm/
pkg/proto/hapi/services
"
"k8s.io/helm/pkg/storage"
"k8s.io/helm/pkg/storage/driver"
"k8s.io/helm/pkg/tiller"
"k8s.io/helm/pkg/tiller/environment"
)
const
(
...
...
@@ -104,6 +106,8 @@ func start(c *cobra.Command, args []string) {
srvErrCh
:=
make
(
chan
error
)
probeErrCh
:=
make
(
chan
error
)
go
func
()
{
svc
:=
tiller
.
NewReleaseServer
(
env
)
services
.
RegisterReleaseServiceServer
(
rootServer
,
svc
)
if
err
:=
rootServer
.
Serve
(
lstn
);
err
!=
nil
{
srvErrCh
<-
err
}
...
...
cmd/tiller/tiller_test.go
View file @
c0850efe
...
...
@@ -19,8 +19,8 @@ package main
import
(
"testing"
"k8s.io/helm/cmd/tiller/environment"
"k8s.io/helm/pkg/engine"
"k8s.io/helm/pkg/tiller/environment"
)
// These are canary tests to make sure that the default server actually
...
...
cmd
/tiller/environment/environment.go
→
pkg
/tiller/environment/environment.go
View file @
c0850efe
File moved
cmd
/tiller/environment/environment_test.go
→
pkg
/tiller/environment/environment_test.go
View file @
c0850efe
File moved
cmd
/tiller/hooks.go
→
pkg
/tiller/hooks.go
View file @
c0850efe
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
main
package
tiller
import
(
"fmt"
...
...
cmd
/tiller/hooks_test.go
→
pkg
/tiller/hooks_test.go
View file @
c0850efe
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
main
package
tiller
import
(
"testing"
...
...
cmd
/tiller/kind_sorter.go
→
pkg
/tiller/kind_sorter.go
View file @
c0850efe
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
main
package
tiller
import
(
"sort"
...
...
cmd
/tiller/kind_sorter_test.go
→
pkg
/tiller/kind_sorter_test.go
View file @
c0850efe
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
main
package
tiller
import
(
"testing"
...
...
cmd
/tiller/release_history.go
→
pkg
/tiller/release_history.go
View file @
c0850efe
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
main
package
tiller
import
(
"golang.org/x/net/context"
...
...
@@ -22,7 +22,7 @@ import (
relutil
"k8s.io/helm/pkg/releaseutil"
)
func
(
s
*
r
eleaseServer
)
GetHistory
(
ctx
context
.
Context
,
req
*
tpb
.
GetHistoryRequest
)
(
*
tpb
.
GetHistoryResponse
,
error
)
{
func
(
s
*
R
eleaseServer
)
GetHistory
(
ctx
context
.
Context
,
req
*
tpb
.
GetHistoryRequest
)
(
*
tpb
.
GetHistoryResponse
,
error
)
{
if
!
checkClientVersion
(
ctx
)
{
return
nil
,
errIncompatibleVersion
}
...
...
cmd
/tiller/release_history_test.go
→
pkg
/tiller/release_history_test.go
View file @
c0850efe
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
main
package
tiller
import
(
"reflect"
...
...
cmd
/tiller/release_server.go
→
pkg
/tiller/release_server.go
View file @
c0850efe
This diff is collapsed.
Click to expand it.
cmd
/tiller/release_server_test.go
→
pkg
/tiller/release_server_test.go
View file @
c0850efe
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
main
package
tiller
import
(
"errors"
...
...
@@ -29,13 +29,13 @@ import (
"golang.org/x/net/context"
"google.golang.org/grpc/metadata"
"k8s.io/helm/cmd/tiller/environment"
"k8s.io/helm/pkg/helm"
"k8s.io/helm/pkg/proto/hapi/chart"
"k8s.io/helm/pkg/proto/hapi/release"
"k8s.io/helm/pkg/proto/hapi/services"
"k8s.io/helm/pkg/storage"
"k8s.io/helm/pkg/storage/driver"
"k8s.io/helm/pkg/tiller/environment"
)
const
notesText
=
"my notes here"
...
...
@@ -70,8 +70,8 @@ data:
name: value
`
func
rsFixture
()
*
r
eleaseServer
{
return
&
r
eleaseServer
{
func
rsFixture
()
*
R
eleaseServer
{
return
&
R
eleaseServer
{
env
:
mockEnvironment
(),
}
}
...
...
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