Skip to content

Commit

Permalink
Update workload hash to support agent-local workload deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
kthomas committed Jul 12, 2024
1 parent d82eb8e commit 2d4014a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions internal/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,15 @@ func (n *Node) handleAutostarts() {
continue
}

agentDeployRequest := agentDeployRequestFromControlDeployRequest(request, autostart.Namespace, numBytes, *workloadHash)
var hash string
if workloadHash != nil {
hash = *workloadHash // HACK!!! for agent-local workloads, this should be read from the release manifest
}

agentDeployRequest := agentDeployRequestFromControlDeployRequest(request, autostart.Namespace, numBytes, hash)

agentDeployRequest.TotalBytes = int64(numBytes)
agentDeployRequest.Hash = *workloadHash
agentDeployRequest.Hash = hash

err = n.manager.DeployWorkload(agentClient, agentDeployRequest)
if err != nil {
Expand Down

0 comments on commit 2d4014a

Please sign in to comment.