Skip to content

Commit

Permalink
Prune konflux-ci/pull-request-builds
Browse files Browse the repository at this point in the history
STONEBLD-2339

And stop pruning redhat-appstudio-tekton-catalog/pull-request-builds.
After konflux-ci/build-definitions#1041, nothing
will be pushed there anymore.

Signed-off-by: Adam Cmiel <[email protected]>
  • Loading branch information
chmeliik authored and redhat-appstudio-qe-bot committed May 29, 2024
1 parent 2c615ed commit 26ea937
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: redhat-appstudio-tekton-catalog-pr-cronjob
name: konflux-ci-pr-cronjob
spec:
schedule: "0 1 * * *"
concurrencyPolicy: Forbid
Expand All @@ -10,21 +10,21 @@ spec:
template:
spec:
containers:
- name: redhat-appstudio-tekton-catalog-pr-pruner
- name: konflux-ci-pr-pruner
image: registry.redhat.io/rhel8/python-39:1-120.1684740828
env:
- name: QUAY_TOKEN
valueFrom:
secretKeyRef:
name: redhat-appstudio-tekton-catalog-pr-token
name: konflux-ci-pr-token
key: quaytoken
imagePullPolicy: IfNotPresent
command:
- /bin/bash
- '-c'
- python /image-pruner/prune_images.py --namespace=redhat-appstudio-tekton-catalog --repo-name=pull-request-builds
- python /image-pruner/prune_images.py --namespace=konflux-ci --repo-name=pull-request-builds
volumeMounts:
- name: redhat-appstudio-tekton-catalog-pr-volume
- name: konflux-ci-pr-volume
mountPath: /image-pruner
resources:
limits:
Expand All @@ -39,9 +39,9 @@ spec:
securityContext:
runAsNonRoot: true
volumes:
- name: redhat-appstudio-tekton-catalog-pr-volume
- name: konflux-ci-pr-volume
configMap:
name: single-image-pruner-configmap
- name: redhat-appstudio-tekton-catalog-pr-token
- name: konflux-ci-pr-token
secret:
secretName: redhat-appstudio-tekton-catalog-pr-token
secretName: konflux-ci-pr-token
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: redhat-appstudio-tekton-catalog-pr-token
name: konflux-ci-pr-token
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
argocd.argoproj.io/sync-wave: "-1"
spec:
dataFrom:
- extract:
key: production/build/redhat-appstudio-tekton-catalog-pr-token
key: production/build/konflux-ci-pr-builds-pruner-token
refreshInterval: 20h
secretStoreRef:
kind: ClusterSecretStore
name: appsre-stonesoup-vault
target:
creationPolicy: Owner
deletionPolicy: Delete
name: redhat-appstudio-tekton-catalog-pr-token
name: konflux-ci-pr-token
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- redhat-appstudio-pr-token.yaml
- redhat-appstudio-tekton-catalog-pr-token.yaml
- redhat-appstudio-pr-cronjob.yaml
- redhat-appstudio-tekton-catalog-pr-cronjob.yaml
- konflux-ci-pr-token.yaml
- konflux-ci-pr-cronjob.yaml
configMapGenerator:
- name: single-image-pruner-configmap
files:
Expand Down

0 comments on commit 26ea937

Please sign in to comment.