File tree Expand file tree Collapse file tree 5 files changed +53
-16
lines changed Expand file tree Collapse file tree 5 files changed +53
-16
lines changed Original file line number Diff line number Diff line change 14
14
kind : Release
15
15
archiveWhen : has(status.completionTime)
16
16
archiveOnDelete : ' true'
17
+ deleteWhen : timestamp(metadata.creationTimestamp) < now() - duration("5d")
17
18
- selector :
18
19
apiVersion : tekton.dev/v1
19
20
kind : PipelineRun
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ resources:
5
5
- ../base
6
6
- postgresql.yaml
7
7
- vacuum.yaml
8
+ - release-vacuum.yaml
8
9
- https://github.com/kubearchive/kubearchive/releases/download/v1.3.0/kubearchive.yaml?timeout=90
9
10
10
11
namespace : product-kubearchive
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : kubearchive.org/v1
3
+ kind : ClusterVacuumConfig
4
+ metadata :
5
+ name : releases-vacuum-config
6
+ spec :
7
+ namespaces :
8
+ ___all-namespaces___ :
9
+ resources :
10
+ - apiVersion : appstudio.redhat.com/v1alpha1
11
+ kind : Release
12
+ ---
13
+ apiVersion : batch/v1
14
+ kind : CronJob
15
+ metadata :
16
+ annotations :
17
+ # Needed if just the command is changed, otherwise the job needs to be deleted manually
18
+ argocd.argoproj.io/sync-options : Force=true,Replace=true
19
+ name : releases-vacuum
20
+ spec :
21
+ schedule : " 0 1 * * *"
22
+ jobTemplate :
23
+ spec :
24
+ template :
25
+ spec :
26
+ serviceAccountName : kubearchive-cluster-vacuum
27
+ containers :
28
+ - name : vacuum
29
+ image : quay.io/kubearchive/vacuum:v1.3.0
30
+ command : [ "/ko-app/vacuum" ]
31
+ args :
32
+ - " --type"
33
+ - " cluster"
34
+ - " --config"
35
+ - " releases-vacuum-config"
36
+ env :
37
+ - name : KUBEARCHIVE_NAMESPACE
38
+ valueFrom :
39
+ fieldRef :
40
+ fieldPath : metadata.namespace
41
+ securityContext :
42
+ readOnlyRootFilesystem : true
43
+ runAsNonRoot : true
44
+ resources :
45
+ requests :
46
+ cpu : 100m
47
+ memory : 256Mi
48
+ limits :
49
+ cpu : 100m
50
+ memory : 256Mi
51
+ restartPolicy : Never
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,14 +7,6 @@ resources:
7
7
- https://github.com/konflux-ci/release-service/config/default?ref=26f6f47a8e09862c907f5ae1e820fc319e0c2866
8
8
- release_service_config.yaml
9
9
10
- patches :
11
- - path : kubearchive-config-patch.yaml
12
- target :
13
- name : kubearchive
14
- group : kubearchive.org
15
- version : v1
16
- kind : KubeArchiveConfig
17
-
18
10
components :
19
11
- ../k-components/manager-resources-patch
20
12
You can’t perform that action at this time.
0 commit comments