Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Set builder.Status.UUID to be the builder object's UUID
Browse files Browse the repository at this point in the history
Signed-off-by: tylerslaton <[email protected]>
  • Loading branch information
tylerslaton committed Jul 14, 2023
1 parent dd6cf7a commit 6a27de7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/controller/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/acorn-io/runtime/pkg/config"
"github.com/acorn-io/runtime/pkg/imagesystem"
"github.com/acorn-io/runtime/pkg/system"
"github.com/google/uuid"
appsv1 "k8s.io/api/apps/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
kclient "sigs.k8s.io/controller-runtime/pkg/client"
Expand Down Expand Up @@ -61,7 +60,7 @@ func DeployBuilder(req router.Request, resp router.Response) error {

if *cfg.BuilderPerProject {
if builder.Status.UUID == "" {
builder.Status.UUID = uuid.New().String()
builder.Status.UUID = string(builder.UID)
}
} else {
builder.Status.UUID = ""
Expand Down

0 comments on commit 6a27de7

Please sign in to comment.