Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions controllers/argocd/argocd.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,7 @@ func NewCR(name, ns string) (*argoapp.ArgoCD, error) {
if err != nil {
return nil, err
}

return &argoapp.ArgoCD{
TypeMeta: metav1.TypeMeta{
Kind: "ArgoCD",
APIVersion: "argoproj.io/v1alpha1",
},
ObjectMeta: metav1.ObjectMeta{
Name: name,
Namespace: ns,
Expand Down
4 changes: 2 additions & 2 deletions controllers/gitopsservice_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (r *ReconcileGitopsService) Reconcile(ctx context.Context, request reconcil
} else {
// If installation of default Argo CD instance is disabled, make sure it doesn't exist,
// deleting it if necessary
if err := r.ensureDefaultArgoCDInstanceDoesntExist(instance, reqLogger); err != nil {
if err := r.ensureDefaultArgoCDInstanceDoesntExist(); err != nil {
return reconcile.Result{}, fmt.Errorf("unable to ensure non-existence of default Argo CD instance: %v", err)
}
}
Expand Down Expand Up @@ -307,7 +307,7 @@ func (r *ReconcileGitopsService) Reconcile(ctx context.Context, request reconcil
}
}

func (r *ReconcileGitopsService) ensureDefaultArgoCDInstanceDoesntExist(instance *pipelinesv1alpha1.GitopsService, reqLogger logr.Logger) error {
func (r *ReconcileGitopsService) ensureDefaultArgoCDInstanceDoesntExist() error {

defaultArgoCDInstance, err := argocd.NewCR(common.ArgoCDInstanceName, serviceNamespace)
if err != nil {
Expand Down