From 2c8890beed74ec646189718a06359288a386b62d Mon Sep 17 00:00:00 2001 From: Eugene Fedorenko Date: Wed, 6 Dec 2023 11:49:23 -0800 Subject: [PATCH] typo fix --- controllers/deploymentdescriptor_controller.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/controllers/deploymentdescriptor_controller.go b/controllers/deploymentdescriptor_controller.go index 6f4f5cb..a2e47e9 100644 --- a/controllers/deploymentdescriptor_controller.go +++ b/controllers/deploymentdescriptor_controller.go @@ -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{ @@ -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")