Skip to content

Commit

Permalink
Merge branch 'main' into test-pkg-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mahalrs committed Jun 23, 2021
2 parents 250a9ba + 49631d9 commit 3396ccf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions chart/orkestra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,20 @@ argo-workflows:
enabled: false

controller:
# serviceAccount: *serviceAccount
serviceAccount:
create: false
name: *serviceAccount
name: workflow-controller
# workflowNamespaces:
# - *namespace
containerRuntimeExecutor: k8sapi # Most Secure - https://argoproj.github.io/argo-workflows/workflow-executors/#kubernetes-api-k8sapi

server:
enabled: true
name: argo-server
serviceAccount:
create: false
name: *serviceAccount
enabled: true
name: argo-server

helm-controller:
concurrent: 5
Expand Down
2 changes: 1 addition & 1 deletion controllers/appgroup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (r *ApplicationGroupReconciler) Reconcile(ctx context.Context, req ctrl.Req
return result, err
}
// Add finalizer if it doesn't already exist
if controllerutil.ContainsFinalizer(appGroup, v1alpha1.AppGroupFinalizer) {
if !controllerutil.ContainsFinalizer(appGroup, v1alpha1.AppGroupFinalizer) {
controllerutil.AddFinalizer(appGroup, v1alpha1.AppGroupFinalizer)
if err := r.Patch(ctx, appGroup, patch); err != nil {
logr.Error(err, "failed to patch the release with the appgroup finalizer")
Expand Down
5 changes: 3 additions & 2 deletions pkg/helpers/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"context"
"errors"
"fmt"
"os"

"github.com/Azure/Orkestra/api/v1alpha1"
"github.com/Azure/Orkestra/pkg/meta"
"github.com/Azure/Orkestra/pkg/registry"
Expand All @@ -13,7 +15,6 @@ import (
"github.com/go-logr/logr"
"github.com/jinzhu/copier"
"helm.sh/helm/v3/pkg/chart"
"os"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/reconcile"
Expand Down Expand Up @@ -110,7 +111,7 @@ func (helper *ReconcileHelper) Reverse(ctx context.Context) (ctrl.Result, error)
} else if isSucceeded {
return ctrl.Result{}, nil
}
return ctrl.Result{RequeueAfter: v1alpha1.DefaultProgressingRequeue}, nil
return ctrl.Result{Requeue: true, RequeueAfter: v1alpha1.DefaultProgressingRequeue}, nil
}

func (helper *ReconcileHelper) reconcileApplications() error {
Expand Down

0 comments on commit 3396ccf

Please sign in to comment.