Skip to content

Commit

Permalink
fix: Fill KluctlDeploymentInfo in CommandResult
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Jun 7, 2023
1 parent 52dcf1c commit 67e301c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/controllers/kluctl_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,11 @@ func (pt *preparedTarget) handleCommandResult(ctx context.Context, cmdErr error,
}

cmdResult.Command.Initiator = result.CommandInititiator_KluctlDeployment
cmdResult.Command.KluctlDeployment = &result.KluctlDeploymentInfo{
Name: pt.pp.obj.Name,
Namespace: pt.pp.obj.Namespace,
}

cmdResult.GitInfo.Url = &pt.pp.obj.Spec.Source.URL
cmdResult.GitInfo.Ref = pt.pp.obj.Spec.Source.Ref.String()
cmdResult.ProjectKey.GitRepoKey = pt.pp.obj.Spec.Source.URL.RepoKey()
Expand Down

0 comments on commit 67e301c

Please sign in to comment.