Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jhonce@jhonce-t440s:origin (rebase_kube *)$ git diff
- diff --git i/pkg/build/api/register.go w/pkg/build/api/register.go
- index 4d7cf3c..c2cc406 100644
- --- i/pkg/build/api/register.go
- +++ w/pkg/build/api/register.go
- @@ -10,6 +10,7 @@ func init() {
- &BuildList{},
- &BuildConfig{},
- &BuildConfigList{},
- + &BuildLog{},
- )
- }
- @@ -17,3 +18,4 @@ func (*Build) IsAnAPIObject() {}
- func (*BuildList) IsAnAPIObject() {}
- func (*BuildConfig) IsAnAPIObject() {}
- func (*BuildConfigList) IsAnAPIObject() {}
- +func (*BuildLog) IsAnAPIObject() {}
- diff --git i/pkg/build/api/types.go w/pkg/build/api/types.go
- index 84b206d..f810f22 100644
- --- i/pkg/build/api/types.go
- +++ w/pkg/build/api/types.go
- @@ -329,3 +329,5 @@ type GitInfo struct {
- GitBuildSource `json:",inline"`
- GitSourceRevision `json:",inline"`
- }
- +
- +type BuildLog struct{}
- diff --git i/pkg/build/registry/buildlog/rest.go w/pkg/build/registry/buildlog/rest.go
- index b4e7b37..a745562 100644
- --- i/pkg/build/registry/buildlog/rest.go
- +++ w/pkg/build/registry/buildlog/rest.go
- @@ -99,7 +99,7 @@ func (r *REST) Get(ctx kapi.Context, id string) (runtime.Object, error) {
- }
- func (r *REST) New() runtime.Object {
- - return nil
- + return &api.BuildLog{}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement