Skip to content

Commit

Permalink
Merge pull request #14591 from bparees/ownerref
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored Jun 14, 2017
2 parents 00146b3 + 31473ad commit 653b218
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/build/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"k8s.io/kubernetes/pkg/credentialprovider"

buildapi "github.com/openshift/origin/pkg/build/api"
buildapiv1 "github.com/openshift/origin/pkg/build/api/v1"
buildutil "github.com/openshift/origin/pkg/build/util"
"github.com/openshift/origin/pkg/cmd/admin/policy"
"github.com/openshift/origin/pkg/cmd/server/bootstrappolicy"
Expand Down Expand Up @@ -501,8 +502,8 @@ func (g *BuildGenerator) generateBuildFromConfig(ctx apirequest.Context, bc *bui
Labels: bcCopy.Labels,
OwnerReferences: []metav1.OwnerReference{
{
APIVersion: "v1", // BuildConfig.APIVersion is not populated
Kind: "BuildConfig", // BuildConfig.Kind is not populated
APIVersion: buildapiv1.SchemeGroupVersion.String(), // BuildConfig.APIVersion is not populated
Kind: "BuildConfig", // BuildConfig.Kind is not populated
Name: bcCopy.Name,
UID: bcCopy.UID,
Controller: &t,
Expand Down

0 comments on commit 653b218

Please sign in to comment.