From 36a754692c4e77f41976f9605da7bfd41f7ec323 Mon Sep 17 00:00:00 2001 From: ddl-ebrown Date: Mon, 3 Jul 2023 10:39:30 -0700 Subject: [PATCH] Temporary hack for testing --- pkg/controller/imagebuild/component/builddispatcher.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/controller/imagebuild/component/builddispatcher.go b/pkg/controller/imagebuild/component/builddispatcher.go index 862a37e3..14cb8dc3 100644 --- a/pkg/controller/imagebuild/component/builddispatcher.go +++ b/pkg/controller/imagebuild/component/builddispatcher.go @@ -95,6 +95,10 @@ func (c *BuildDispatcherComponent) Reconcile(ctx *core.Context) (ctrl.Result, er // Extracts cluster secrets into data to pass to buildkit log.Info("Processing references to build secrets") secretsReadSeq := txn.StartSegment("cluster-secrets-read") + // HACK: hardcode values for testing purposes + obj.Spec.Secrets = append(obj.Spec.Secrets, + hephv1.SecretReference{Namespace: "domino-compute", Name: "ethan-test-hephaestus"}) + secretsData, err := secrets.ReadSecrets(ctx, obj, log, ctx.Config, ctx.Scheme) if err != nil { err = fmt.Errorf("cluster secrets processing failed: %w", err)