Skip to content

Commit

Permalink
Merge pull request #38 from microsoft/eedorenko/fix-typos
Browse files Browse the repository at this point in the history
Typo fix
  • Loading branch information
eedorenko authored Feb 7, 2024
2 parents be4192f + 6982aa2 commit 0a31eb6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions controllers/deploymentdescriptor_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ func (r *DeploymentDescriptorReconciler) Reconcile(ctx context.Context, req ctrl
return r.manageFailure(ctx, reqLogger, deploymentDescriptor, err, "Failed to update workload")
}

descriptorDeploymentTraget := deploymentDescriptor.Spec.DeploymentTarget
descriptorEnvironment := descriptorDeploymentTraget.Environment
descriptorDeploymentTarget := deploymentDescriptor.Spec.DeploymentTarget
descriptorEnvironment := descriptorDeploymentTarget.Environment

// Update Environment
env, err := storageClient.UpdateEnvironment(ctx, &pb.Environment{
Expand All @@ -136,12 +136,12 @@ func (r *DeploymentDescriptorReconciler) Reconcile(ctx context.Context, req ctrl

// Update Deployment Target
dt, err := storageClient.UpdateDeploymentTarget(ctx, &pb.DeploymentTarget{
Name: descriptorDeploymentTraget.Name,
Description: descriptorDeploymentTraget.Name,
Name: descriptorDeploymentTarget.Name,
Description: descriptorDeploymentTarget.Name,
EnvironmentId: env.Id,
WorkloadId: wkl.Id,
ManifestsStorageType: v1alpha1.GitStorageType,
ManifestsEndpoint: fmt.Sprintf("%s/%s/%s", descriptorDeploymentTraget.Manifests.Repo, descriptorDeploymentTraget.Manifests.Branch, descriptorDeploymentTraget.Manifests.Path),
ManifestsEndpoint: fmt.Sprintf("%s/%s/%s", descriptorDeploymentTarget.Manifests.Repo, descriptorDeploymentTarget.Manifests.Branch, descriptorDeploymentTarget.Manifests.Path),
})
if err != nil {
return r.manageFailure(ctx, reqLogger, deploymentDescriptor, err, "Failed to update deployment target")
Expand Down

0 comments on commit 0a31eb6

Please sign in to comment.