Skip to content

Commit

Permalink
update debug
Browse files Browse the repository at this point in the history
Signed-off-by: schristoff-du <sarah@defenseunicorns.com>
  • Loading branch information
schristoff-du committed May 15, 2024
1 parent 8850f7f commit c7ef900
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pkg/cluster/injector.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,17 @@ func (c *Cluster) StartInjectionMadness(ctx context.Context, tmpDir string, imag
spinner.Updatef("Attempting to bootstrap with the %s/%s", node, image)

// Make sure the pod is not there first
err = c.DeletePod(ZarfNamespaceName, "injector")
err = c.DeletePod(ctx, ZarfNamespaceName, "injector")
if err != nil {
message.Debug("could not delete pod injector: ", err)
message.Debug("could not delete pod injector:", err)
}

// Update the podspec image path and use the first node found

pod, err := c.buildInjectionPod(node[0], image, payloadConfigmaps, sha256sum)
if err != nil {
// Just debug log the output because failures just result in trying the next image
message.Debug("error making injection pod: ", err)
message.Debug("error making injection pod:", err)
continue
}

Expand Down

0 comments on commit c7ef900

Please sign in to comment.