Skip to content

Commit

Permalink
fix: Did not work
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Dec 21, 2022
1 parent 2aaeaea commit cec83d4
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 44 deletions.
2 changes: 0 additions & 2 deletions charts/ledger/templates/agent_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ rules:
resources:
- events
verbs:
- watch
- list
- create
- patch
{{- end }}
4 changes: 0 additions & 4 deletions internal/agent/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ func (r *LedgerDeploymemtReconciler) Reconcile(ctx context.Context, req ctrl.Req
return ctrl.Result{}, err
}

if causedByScaling(ctx, r.Client, &deploy) {
return ctrl.Result{}, nil
}

if err := processObject(deploy.ObjectMeta, deploy.Spec.Template); err != nil {
logrus.Error(err)
r.Recorder.Event(&deploy, "Warning", "Notified", fmt.Sprintf("Ledger notified failed - %s", err))
Expand Down
34 changes: 0 additions & 34 deletions internal/agent/filters.go

This file was deleted.

4 changes: 0 additions & 4 deletions internal/agent/sts.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ func (r *LedgerStatefulsetReconciler) Reconcile(ctx context.Context, req ctrl.Re
return ctrl.Result{}, err
}

if causedByScaling(ctx, r.Client, &statefulset) {
return ctrl.Result{}, nil
}

if err := processObject(statefulset.ObjectMeta, statefulset.Spec.Template); err != nil {
logrus.Error(err)
r.Recorder.Event(&statefulset, "Warning", "Notified", fmt.Sprintf("Ledger notified failed - %s", err))
Expand Down

0 comments on commit cec83d4

Please sign in to comment.