Skip to content

Commit fc0c0d6

Browse files
authored
disable job autocleanup (#8255)
These were added on recommendation from a kube-linter check. However, these fields have issues with gitops-style deployments through ArgoCD. When jobs finish, they will automatically delete themselves, which ArgoCD picks up on. It will try to recreate these jobs, since they're a part of the Application's manifests, which means all of the jobs in this repository are running far more frequently than intended. To fix, remove all the ttl autoremoval fields for jobs added in #8233 and disable the warning in kube-linter entirely. Fixes: 4912f74 ("ci: bump kubelinter to v0.7.6 (#8233)") Part-of: KFLUXINFRA-1963 Signed-off-by: Andy Sadler <[email protected]>
1 parent 51eb875 commit fc0c0d6

File tree

26 files changed

+3
-49
lines changed

26 files changed

+3
-49
lines changed

.kube-linter.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ checks:
33
- liveness-port
44
- readiness-port
55
- startup-port
6+
# disabled because removed jobs will get recreated by argo, causing them to
7+
# run more frequently than intended
8+
- job-ttl-seconds-after-finished

components/konflux-ui/production/kflux-ocp-p01/configure-oauth-proxy-secret.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ metadata:
4848
annotations:
4949
argocd.argoproj.io/sync-options: Force=true,Replace=true
5050
spec:
51-
ttlSecondsAfterFinished: 60
5251
template:
5352
spec:
5453
containers:

components/konflux-ui/production/kflux-osp-p01/configure-oauth-proxy-secret.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ metadata:
4848
annotations:
4949
argocd.argoproj.io/sync-options: Force=true,Replace=true
5050
spec:
51-
ttlSecondsAfterFinished: 60
5251
template:
5352
spec:
5453
containers:

components/konflux-ui/production/kflux-prd-rh02/configure-oauth-proxy-secret.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ metadata:
4848
annotations:
4949
argocd.argoproj.io/sync-options: Force=true,Replace=true
5050
spec:
51-
ttlSecondsAfterFinished: 60
5251
template:
5352
spec:
5453
containers:

components/konflux-ui/production/kflux-prd-rh03/configure-oauth-proxy-secret.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ metadata:
4848
annotations:
4949
argocd.argoproj.io/sync-options: Force=true,Replace=true
5050
spec:
51-
ttlSecondsAfterFinished: 60
5251
template:
5352
spec:
5453
containers:

components/konflux-ui/production/kflux-rhel-p01/configure-oauth-proxy-secret.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ metadata:
4848
annotations:
4949
argocd.argoproj.io/sync-options: Force=true,Replace=true
5050
spec:
51-
ttlSecondsAfterFinished: 60
5251
template:
5352
spec:
5453
containers:

components/konflux-ui/production/pentest-p01/configure-oauth-proxy-secret.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ metadata:
4848
annotations:
4949
argocd.argoproj.io/sync-options: Force=true,Replace=true
5050
spec:
51-
ttlSecondsAfterFinished: 60
5251
template:
5352
spec:
5453
containers:

components/konflux-ui/production/stone-prd-rh01/configure-oauth-proxy-secret.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ metadata:
4848
annotations:
4949
argocd.argoproj.io/sync-options: Force=true,Replace=true
5050
spec:
51-
ttlSecondsAfterFinished: 60
5251
template:
5352
spec:
5453
containers:

components/konflux-ui/production/stone-prod-p01/configure-oauth-proxy-secret.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ metadata:
4848
annotations:
4949
argocd.argoproj.io/sync-options: Force=true,Replace=true
5050
spec:
51-
ttlSecondsAfterFinished: 60
5251
template:
5352
spec:
5453
containers:

components/konflux-ui/production/stone-prod-p02/configure-oauth-proxy-secret.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ metadata:
4848
annotations:
4949
argocd.argoproj.io/sync-options: Force=true,Replace=true
5050
spec:
51-
ttlSecondsAfterFinished: 60
5251
template:
5352
spec:
5453
containers:

0 commit comments

Comments
 (0)