diff --git a/controllers/applicationsnapshotenvironmentbinding_controller.go b/controllers/applicationsnapshotenvironmentbinding_controller.go index bcb534dff..4b445f4df 100644 --- a/controllers/applicationsnapshotenvironmentbinding_controller.go +++ b/controllers/applicationsnapshotenvironmentbinding_controller.go @@ -27,7 +27,6 @@ import ( "github.com/go-logr/logr" appstudiov1alpha1 "github.com/redhat-appstudio/application-api/api/v1alpha1" - "github.com/redhat-appstudio/application-service/gitops-generator/pkg/generate" github "github.com/redhat-appstudio/application-service/pkg/github" logutil "github.com/redhat-appstudio/application-service/pkg/log" "github.com/redhat-appstudio/application-service/pkg/util/ioutils" @@ -154,7 +153,7 @@ func (r *SnapshotEnvironmentBindingReconciler) Reconcile(ctx context.Context, re localGitopsGen := (!r.DoGitOpsJob) || (r.AllowLocalGitopsGen && appSnapshotEnvBinding.Annotations["allowLocalGitopsGen"] == "true") if localGitopsGen { - err = gitopsjoblib.GenerateGitopsOverlays(context.Background(), log, r.Client, appSnapshotEnvBinding, ioutils.NewFilesystem(), generate.GitOpsGenParams{ + err = gitopsjoblib.GenerateGitopsOverlays(context.Background(), log, r.Client, appSnapshotEnvBinding, ioutils.NewFilesystem(), gitopsjoblib.GitOpsGenParams{ Generator: r.Generator, Token: ghClient.Token, }) @@ -162,8 +161,6 @@ func (r *SnapshotEnvironmentBindingReconciler) Reconcile(ctx context.Context, re r.SetConditionAndUpdateCR(ctx, req, &appSnapshotEnvBinding, err) return ctrl.Result{}, err } - } else { - // ToDo: Add support for GitOps job } r.SetConditionAndUpdateCR(ctx, req, &appSnapshotEnvBinding, nil) diff --git a/controllers/component_controller.go b/controllers/component_controller.go index 20366bf77..fead67a79 100644 --- a/controllers/component_controller.go +++ b/controllers/component_controller.go @@ -25,7 +25,6 @@ import ( "github.com/prometheus/client_golang/prometheus" cdqanalysis "github.com/redhat-appstudio/application-service/cdq-analysis/pkg" - "github.com/redhat-appstudio/application-service/gitops-generator/pkg/generate" gitopsjoblib "github.com/redhat-appstudio/application-service/gitops-generator/pkg/generate" "github.com/redhat-appstudio/application-service/pkg/metrics" corev1 "k8s.io/api/core/v1" @@ -562,7 +561,7 @@ func (r *ComponentReconciler) generateGitops(ctx context.Context, ghClient *gith localGitopsGen := (!r.DoGitOpsJob) || (r.AllowLocalGitopsGen && component.Annotations["allowLocalGitopsGen"] == "true") if localGitopsGen { - err = gitopsjoblib.GenerateGitopsBase(context.Background(), log, r.Client, *component, ioutils.NewFilesystem(), generate.GitOpsGenParams{ + err = gitopsjoblib.GenerateGitopsBase(context.Background(), log, r.Client, *component, ioutils.NewFilesystem(), gitopsjoblib.GitOpsGenParams{ Generator: r.Generator, Token: ghClient.Token, RemoteURL: gitOpsURL, @@ -572,8 +571,6 @@ func (r *ComponentReconciler) generateGitops(ctx context.Context, ghClient *gith if err != nil { return err } - } else { - // ToDo: Implement GitOps generation in Kubernetes jobs } return nil