Skip to content

Commit

Permalink
Display sha of dorifi binary after making it
Browse files Browse the repository at this point in the history
Co-authored-by: Giuseppe Capizzi <[email protected]>
Co-authored-by: Kieron Browne <[email protected]>
  • Loading branch information
gcapizzi and Kieron Browne committed Jul 6, 2023
1 parent d2a00a0 commit 01b97b5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ test-e2e: build-dorifi

build-dorifi:
CGO_ENABLED=0 go build -o ../dorifi/dorifi -C tests/e2e/assets/golang .
sha256sum tests/e2e/assets/dorifi/dorifi

GOFUMPT = $(shell go env GOPATH)/bin/gofumpt
install-gofumpt:
Expand Down
4 changes: 4 additions & 0 deletions api/repositories/build_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
apierrors "code.cloudfoundry.org/korifi/api/errors"
korifiv1alpha1 "code.cloudfoundry.org/korifi/controllers/api/v1alpha1"

"github.com/go-logr/logr"
"github.com/google/uuid"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/meta"
Expand Down Expand Up @@ -213,6 +214,9 @@ func (b *BuildRepo) CreateBuild(ctx context.Context, authInfo authorization.Info
return BuildRecord{}, apierrors.FromK8sError(err, BuildResourceType)
}

logger := logr.FromContextOrDiscard(ctx).WithName("repositories.build")
logger.V(1).Info("create-build", "name", cfBuild.Name, "namespace", cfBuild.Namespace)

return b.cfBuildToBuildRecord(cfBuild), nil
}

Expand Down
1 change: 1 addition & 0 deletions controllers/controllers/workloads/cfbuild_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ func (r *CFBuildReconciler) ReconcileResource(ctx context.Context, cfBuild *kori
ObservedGeneration: cfBuild.Generation,
})

log.V(1).Info("setting-droplet-status", "image", buildWorkload.Status.Droplet.Registry.Image, "command", buildWorkload.Status.Droplet.ProcessTypes[0].Command)
cfBuild.Status.Droplet = buildWorkload.Status.Droplet
default:
return ctrl.Result{}, nil
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ var _ = SynchronizedAfterSuite(func() {

var _ = BeforeEach(func() {
correlationId = uuid.NewString()
fmt.Printf("correlation id %s\n", correlationId)
})

func mustHaveEnv(key string) string {
Expand Down

0 comments on commit 01b97b5

Please sign in to comment.