Skip to content

Commit

Permalink
update reconciler logic
Browse files Browse the repository at this point in the history
Signed-off-by: Jeeva Kandasamy <[email protected]>
  • Loading branch information
jkandasa committed Aug 5, 2024
1 parent ff527df commit fcc0657
Show file tree
Hide file tree
Showing 15 changed files with 994 additions and 695 deletions.
6 changes: 3 additions & 3 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ package main
import (
// The set of controllers this controller process runs.
"github.com/openshift-pipelines/tektoncd-pruner/pkg/reconciler/pipelinerun"
// "github.com/openshift-pipelines/tektoncd-pruner/pkg/reconciler/taskrun"
"github.com/openshift-pipelines/tektoncd-pruner/pkg/reconciler/taskrun"
"github.com/openshift-pipelines/tektoncd-pruner/pkg/reconciler/tektonpruner"

// This defines the shared main for injected controllers.
"knative.dev/pkg/injection/sharedmain"
)

func main() {
sharedmain.Main("controller",
sharedmain.Main("tekton-pruner-controller",
tektonpruner.NewController,
pipelinerun.NewController,
// taskrun.NewController,
taskrun.NewController,
)
}
3 changes: 1 addition & 2 deletions config/600-tekton-pruner-default-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ data:
- name: foo
ttlSecondsAfterFinished: 120 # 2 minutes
global-config: |
ttlSecondsAfterFinished: 600 # 10 minutes
successfulHistoryLimit: 3
failedHistoryLimit: 1
failedHistoryLimit: 3
8 changes: 4 additions & 4 deletions config/config-logging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ data:
}
}
# Log level overrides
# Changes are be picked up immediately.
loglevel.controller: "info"
loglevel.webhook: "info"
# Log level overrides
# Changes are be picked up immediately.
loglevel.tekton-pruner-controller: "warn"
loglevel.tekton-pruner-webhook: "warn"
Loading

0 comments on commit fcc0657

Please sign in to comment.