File tree Expand file tree Collapse file tree 11 files changed +133
-14
lines changed Expand file tree Collapse file tree 11 files changed +133
-14
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,8 @@ Prerequisites:
97
97
98
98
- Install Pruner
99
99
` ` ` bash
100
- kubectl apply -f https://raw.githubusercontent.com/openshift-pipelines/tektoncd-pruner/main/release.yaml
100
+ export VERSION=0.1.0 #update version as required
101
+ kubectl apply -f "https://github.com/openshift-pipelines/tektoncd-pruner/releases/download/v$VERSION/release-v$VERSION.yaml"
101
102
` ` `
102
103
103
104
Verify installation :
@@ -109,7 +110,7 @@ Look for the `tekton-pruner-controller` pod running.
109
110
110
111
# # Configuration
111
112
112
- The pruner is configured through a ConfigMap in the `tekton-pipelines` namespace. Here's a basic example :
113
+ The pruner is configured through a ConfigMap in the `tekton-pipelines` namespace. By default config includes minimal configuration as per spec [here](https://raw.githubusercontent.com/openshift-pipelines/tektoncd-pruner/refs/heads/main/config/600-tekton-pruner-default-spec.yaml). This can be modified as required. Here's a basic example :
113
114
114
115
` ` ` yaml
115
116
apiVersion: v1
@@ -121,9 +122,9 @@ data:
121
122
global-config: |
122
123
enforcedConfigLevel: global
123
124
ttlSecondsAfterFinished: 300 # 5 minutes
124
- successfulHistoryLimit: 3 # Keep last 3 successful runs
125
+ successfulHistoryLimit: 3 # Keep last 3 successful runs
125
126
failedHistoryLimit: 3 # Keep last 3 failed runs
126
- historyLimit: 5 # When successfulHistoryLimit and failedHistoryLimit are not set, keep last 5 successful runs and last 5 failed runs (applied individually)
127
+ historyLimit: 5 # When successfulHistoryLimit and failedHistoryLimit are not set
127
128
` ` `
128
129
129
130
# ## Namespace-specific Configuration
Original file line number Diff line number Diff line change
1
+ # Copyright 2025 The Tekton Authors
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
1
14
---
15
+
2
16
kind : ClusterRole
3
17
apiVersion : rbac.authorization.k8s.io/v1
4
18
metadata :
Original file line number Diff line number Diff line change
1
+ # Copyright 2025 The Tekton Authors
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
1
14
---
15
+
2
16
kind : Role
3
17
apiVersion : rbac.authorization.k8s.io/v1
4
18
metadata :
Original file line number Diff line number Diff line change
1
+ # Copyright 2025 The Tekton Authors
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
1
14
---
15
+
2
16
apiVersion : v1
3
17
kind : ServiceAccount
4
18
metadata :
Original file line number Diff line number Diff line change
1
+ # Copyright 2025 The Tekton Authors
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
1
14
---
15
+
2
16
apiVersion : rbac.authorization.k8s.io/v1
3
17
kind : ClusterRoleBinding
4
18
metadata :
Original file line number Diff line number Diff line change
1
+ # Copyright 2025 The Tekton Authors
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
1
14
---
15
+
2
16
apiVersion : rbac.authorization.k8s.io/v1
3
17
kind : RoleBinding
4
18
metadata :
Original file line number Diff line number Diff line change
1
+ # Copyright 2025 The Tekton Authors
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
1
14
---
15
+
2
16
apiVersion : v1
3
17
kind : ConfigMap
4
18
metadata :
@@ -7,7 +21,4 @@ metadata:
7
21
data :
8
22
global-config : |
9
23
enforcedConfigLevel: global
10
- ttlSecondsAfterFinished: 300 # 5 minutes
11
- successfulHistoryLimit: 3 # Keep last 3 successful runs
12
- failedHistoryLimit: 3 # Keep last 3 failed runs
13
- historyLimit: 5 # When successfulHistoryLimit and failedHistoryLimit are not set, keep last 5 successful and last 5 failed runs individually
24
+ historyLimit: 100
Original file line number Diff line number Diff line change 1
- # Copyright 2021 The Tekton Authors
1
+ # Copyright 2025 The Tekton Authors
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
@@ -22,9 +22,4 @@ metadata:
22
22
app.kubernetes.io/instance : default
23
23
app.kubernetes.io/part-of : tektoncd-pruner
24
24
data :
25
- # Contains triggers version which can be queried by external
26
- # tools such as CLI. Elevated permissions are already given to
27
- # this ConfigMap such that even if we don't have access to
28
- # other resources in the namespace we still can have access to
29
- # this ConfigMap.
30
25
version : " devel"
Original file line number Diff line number Diff line change
1
+ # Copyright 2025 The Tekton Authors
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
1
14
---
15
+
2
16
apiVersion : v1
3
17
kind : ConfigMap
4
18
metadata :
Original file line number Diff line number Diff line change
1
+ # Copyright 2025 The Tekton Authors
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
1
14
---
15
+
2
16
apiVersion : v1
3
17
kind : ConfigMap
4
18
metadata :
Original file line number Diff line number Diff line change
1
+ # Copyright 2025 The Tekton Authors
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
1
14
---
15
+
2
16
apiVersion : apps/v1
3
17
kind : Deployment
4
18
metadata :
You can’t perform that action at this time.
0 commit comments