Skip to content

Commit

Permalink
Merge pull request kubernetes#2213 from ghodss/fix_build_errors
Browse files Browse the repository at this point in the history
Fix two compilation errors when running go build ./...
  • Loading branch information
brendandburns committed Nov 6, 2014
2 parents ae8c334 + cbd13b5 commit 5590adb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions contrib/srvexpand/srvexpand.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func generateService(name string, portSpec string) {

svc := []v1beta3.Service{{
TypeMeta: v1beta3.TypeMeta{APIVersion: "v1beta3", Kind: "Service"},
Metadata: v1beta3.ObjectMeta{
ObjectMeta: v1beta3.ObjectMeta{
Name: name,
Labels: map[string]string{
"service": name,
Expand Down Expand Up @@ -167,15 +167,15 @@ func generatePodTemplate(sname string, cname string, podSpec v1beta3.PodSpec) {
name := fmt.Sprintf("%s-%s", sname, cname)
pt := []v1beta3.PodTemplate{{
TypeMeta: v1beta3.TypeMeta{APIVersion: "v1beta3", Kind: "PodTemplate"},
Metadata: v1beta3.ObjectMeta{
ObjectMeta: v1beta3.ObjectMeta{
Name: name,
Labels: map[string]string{
"service": sname,
"track": cname,
},
},
Spec: v1beta3.PodTemplateSpec{
Metadata: v1beta3.ObjectMeta{
ObjectMeta: v1beta3.ObjectMeta{
Labels: map[string]string{
"service": sname,
"track": cname,
Expand All @@ -199,7 +199,7 @@ func generateReplicationController(sname string, cname string, replicas int) {
name := fmt.Sprintf("%s-%s", sname, cname)
rc := []v1beta3.ReplicationController{{
TypeMeta: v1beta3.TypeMeta{APIVersion: "v1beta3", Kind: "ReplicationController"},
Metadata: v1beta3.ObjectMeta{
ObjectMeta: v1beta3.ObjectMeta{
Name: name,
Labels: map[string]string{
"service": sname,
Expand Down
2 changes: 0 additions & 2 deletions pkg/api/v1beta3/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func init() {
&OperationList{},
&Event{},
&EventList{},
&ContainerManifestList{},
)
}

Expand All @@ -70,4 +69,3 @@ func (*Operation) IsAnAPIObject() {}
func (*OperationList) IsAnAPIObject() {}
func (*Event) IsAnAPIObject() {}
func (*EventList) IsAnAPIObject() {}
func (*ContainerManifestList) IsAnAPIObject() {}

0 comments on commit 5590adb

Please sign in to comment.