@@ -32,7 +32,6 @@ import (
3232 "sigs.k8s.io/controller-runtime/pkg/predicate"
3333
3434 kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1beta2"
35- "github.com/microsoft/kalypso-observability-hub/api/v1alpha1"
3635 hubv1alpha1 "github.com/microsoft/kalypso-observability-hub/api/v1alpha1"
3736 grpcClient "github.com/microsoft/kalypso-observability-hub/storage/api/grpc/client"
3837 pb "github.com/microsoft/kalypso-observability-hub/storage/api/grpc/proto"
@@ -79,7 +78,7 @@ func (r *DeploymentDescriptorReconciler) Reconcile(ctx context.Context, req ctrl
7978 }
8079
8180 // Check if the resource is being deleted
82- if ! deploymentDescriptor .ObjectMeta . DeletionTimestamp .IsZero () {
81+ if ! deploymentDescriptor .DeletionTimestamp .IsZero () {
8382 return ctrl.Result {}, nil
8483 }
8584
@@ -115,7 +114,7 @@ func (r *DeploymentDescriptorReconciler) Reconcile(ctx context.Context, req ctrl
115114 wkl , err := storageClient .UpdateWorkload (ctx , & pb.Workload {
116115 Name : descriptorWorkload .Name ,
117116 Description : descriptorWorkload .Name ,
118- SourceStorageType : v1alpha1 .GitStorageType ,
117+ SourceStorageType : hubv1alpha1 .GitStorageType ,
119118 SourceEndpoint : fmt .Sprintf ("%s/%s/%s" , descriptorWorkload .Source .Repo , descriptorWorkload .Source .Branch , descriptorWorkload .Source .Path ),
120119 ApplicationId : app .Id ,
121120 })
@@ -141,7 +140,7 @@ func (r *DeploymentDescriptorReconciler) Reconcile(ctx context.Context, req ctrl
141140 Description : descriptorDeploymentTarget .Name ,
142141 EnvironmentId : env .Id ,
143142 WorkloadId : wkl .Id ,
144- ManifestsStorageType : v1alpha1 .GitStorageType ,
143+ ManifestsStorageType : hubv1alpha1 .GitStorageType ,
145144 ManifestsEndpoint : fmt .Sprintf ("%s/%s/%s" , descriptorDeploymentTarget .Manifests .Repo , descriptorDeploymentTarget .Manifests .Branch , descriptorDeploymentTarget .Manifests .Path ),
146145 })
147146 if err != nil {
@@ -196,12 +195,12 @@ func (r *DeploymentDescriptorReconciler) getCommitFromFluxKustomization(deployme
196195 //get the flux kustomization name from the deployment descriptor
197196 fluxKustomizationName := deploymentDescriptor .Labels [FluxKustomizationNameLabel ]
198197 if fluxKustomizationName == "" {
199- return nil , fmt .Errorf ("Flux Kustomization name not found in the deployment descriptor" )
198+ return nil , fmt .Errorf ("flux Kustomization name not found in the deployment descriptor" )
200199 }
201200
202201 fluxKustomizationNamespace := deploymentDescriptor .Labels [FluxKustomizationNamespaceLabel ]
203202 if fluxKustomizationNamespace == "" {
204- return nil , fmt .Errorf ("Flux Kustomization namespace not found in the deployment descriptor" )
203+ return nil , fmt .Errorf ("flux Kustomization namespace not found in the deployment descriptor" )
205204 }
206205
207206 //get the flux kustomization
0 commit comments