Skip to content

Commit 0adae63

Browse files
committed
[ISV-2512] Remove pipelinerun-cleaner CronJob
1 parent 06514ec commit 0adae63

File tree

6 files changed

+0
-40
lines changed

6 files changed

+0
-40
lines changed

ansible/inventory/group_vars/operator-pipeline-dev.yml

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ kerberos_keytab: ../../vaults/common/nonprod-operatorpipelines.keytab
88
operator_pipeline_image_tag: "v1.0.8"
99
operator_pipeline_release_namespace: redhat-isv-operators-dev
1010

11-
# how many of newest pipelineruns should be preserved on cleanup?
12-
preserve_after_cleanup: "5"
13-
1411
# Settings for importing index imagestreams
1512
insecure_index_import: true
1613
certified_operator_index: registry.stage.redhat.io/redhat/certified-operator-index

ansible/inventory/group_vars/operator-pipeline-integration-tests.yml

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ kerberos_keytab: ../../vaults/common/nonprod-operatorpipelines.keytab
88
operator_pipeline_image_tag: "v1.0.8"
99
operator_pipeline_release_namespace: redhat-isv-operators-stage
1010

11-
# how many of newest pipelineruns should be preserved on cleanup?
12-
preserve_after_cleanup: "5"
13-
1411
# Settings for importing index imagestreams
1512
insecure_index_import: true
1613
certified_operator_index: registry.stage.redhat.io/redhat/certified-operator-index

ansible/inventory/group_vars/operator-pipeline-prod.yml

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ kerberos_keytab: ../../vaults/prod/operatorpipelines.keytab
88
operator_pipeline_image_tag: "v1.0.8"
99
operator_pipeline_release_namespace: redhat-isv-operators
1010

11-
# how many of newest pipelineruns should be preserved on cleanup?
12-
preserve_after_cleanup: "10"
13-
1411
operator_pipeline_hydra_username_local_path: ../../vaults/prod/hydra-username
1512
operator_pipeline_hydra_password_local_path: ../../vaults/prod/hydra-password
1613

ansible/inventory/group_vars/operator-pipeline-qa.yml

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ kerberos_keytab: ../../vaults/common/nonprod-operatorpipelines.keytab
88
operator_pipeline_image_tag: "v1.0.8"
99
operator_pipeline_release_namespace: redhat-isv-operators-qa
1010

11-
# how many of newest pipelineruns should be preserved on cleanup?
12-
preserve_after_cleanup: "5"
13-
1411
# Settings for importing index imagestreams
1512
insecure_index_import: true
1613
certified_operator_index: registry.stage.redhat.io/redhat/certified-operator-index

ansible/inventory/group_vars/operator-pipeline-stage.yml

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ kerberos_keytab: ../../vaults/common/nonprod-operatorpipelines.keytab
88
operator_pipeline_image_tag: "v1.0.8"
99
operator_pipeline_release_namespace: redhat-isv-operators-stage
1010

11-
# how many of newest pipelineruns should be preserved on cleanup?
12-
preserve_after_cleanup: "5"
13-
1411
# Settings for importing index imagestreams
1512
insecure_index_import: true
1613
certified_operator_index: registry.stage.redhat.io/redhat/certified-operator-index

ansible/roles/operator-pipeline/tasks/main.yml

-25
Original file line numberDiff line numberDiff line change
@@ -121,31 +121,6 @@
121121
- ../templates/openshift/pipelines/operator-hosted-pipeline.yml
122122
- ../templates/openshift/pipelines/operator-release-pipeline.yml
123123

124-
# TODO: Delete once this CronJob has been removed from all deployment environments.
125-
# Tekton provides automatic pruning of resources within its controller.
126-
- name: Create cleaning CronJob
127-
k8s:
128-
state: absent
129-
namespace: "{{ oc_namespace }}"
130-
definition:
131-
apiVersion: batch/v1beta1
132-
kind: CronJob
133-
metadata:
134-
name: pipelinerun-cleaner
135-
spec:
136-
# every 5 min
137-
schedule: "*/5 * * * *"
138-
jobTemplate:
139-
spec:
140-
template:
141-
spec:
142-
serviceAccountName: "{{ service_account_name }}"
143-
containers:
144-
- name: tkn
145-
image: registry.redhat.io/openshift-pipelines/pipelines-cli-tkn-rhel8:0.19.0-2
146-
command: ["tkn", "pipelinerun", "delete", "--keep", "{{ preserve_after_cleanup }}"]
147-
restartPolicy: OnFailure
148-
149124
- include: tasks/webhook-event-listener.yml
150125
- include: tasks/webhook-hosted-pipeline-trigger.yml
151126
- include: tasks/webhook-release-pipeline-trigger.yml

0 commit comments

Comments
 (0)