Skip to content

Commit

Permalink
chore: Override cpu requests for bad days of Konflux (#1401)
Browse files Browse the repository at this point in the history
  • Loading branch information
msugakov authored Mar 12, 2024
1 parent f3bb6e3 commit f169263
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .tekton/scanner-db-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ spec:
secret:
secretName: '{{ git_auth_secret }}'

taskRunSpecs:
- pipelineTaskName: clamav-scan
stepSpecs:
# Provision more CPU to speed up ClamAV scan compared to the defaults.
# https://github.com/redhat-appstudio/build-definitions/blob/main/task/clamav-scan/0.1/clamav-scan.yaml#L48
- name: extract-and-scan-image
computeResources:
requests:
cpu: 1

pipelineSpec:

finally:
Expand Down
10 changes: 10 additions & 0 deletions .tekton/scanner-db-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ spec:
secret:
secretName: '{{ git_auth_secret }}'

taskRunSpecs:
- pipelineTaskName: clamav-scan
stepSpecs:
# Provision more CPU to speed up ClamAV scan compared to the defaults.
# https://github.com/redhat-appstudio/build-definitions/blob/main/task/clamav-scan/0.1/clamav-scan.yaml#L48
- name: extract-and-scan-image
computeResources:
requests:
cpu: 1

pipelineSpec:

finally:
Expand Down
10 changes: 10 additions & 0 deletions .tekton/scanner-db-slim-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ spec:
secret:
secretName: '{{ git_auth_secret }}'

taskRunSpecs:
- pipelineTaskName: clamav-scan
stepSpecs:
# Provision more CPU to speed up ClamAV scan compared to the defaults.
# https://github.com/redhat-appstudio/build-definitions/blob/main/task/clamav-scan/0.1/clamav-scan.yaml#L48
- name: extract-and-scan-image
computeResources:
requests:
cpu: 1

pipelineSpec:

finally:
Expand Down
10 changes: 10 additions & 0 deletions .tekton/scanner-db-slim-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ spec:
secret:
secretName: '{{ git_auth_secret }}'

taskRunSpecs:
- pipelineTaskName: clamav-scan
stepSpecs:
# Provision more CPU to speed up ClamAV scan compared to the defaults.
# https://github.com/redhat-appstudio/build-definitions/blob/main/task/clamav-scan/0.1/clamav-scan.yaml#L48
- name: extract-and-scan-image
computeResources:
requests:
cpu: 1

pipelineSpec:

finally:
Expand Down
18 changes: 18 additions & 0 deletions .tekton/scanner-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,24 @@ spec:
secret:
secretName: '{{ git_auth_secret }}'

taskRunSpecs:
- pipelineTaskName: build-container
stepSpecs:
# Provision more CPU to speed up build compared to the defaults.
# https://github.com/redhat-appstudio/build-definitions/blob/main/task/buildah/0.1/buildah.yaml#L126
- name: build
computeResources:
requests:
cpu: 2
- pipelineTaskName: clamav-scan
stepSpecs:
# Provision more CPU to speed up ClamAV scan compared to the defaults.
# https://github.com/redhat-appstudio/build-definitions/blob/main/task/clamav-scan/0.1/clamav-scan.yaml#L48
- name: extract-and-scan-image
computeResources:
requests:
cpu: 1

pipelineSpec:

finally:
Expand Down
18 changes: 18 additions & 0 deletions .tekton/scanner-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,24 @@ spec:
secret:
secretName: '{{ git_auth_secret }}'

taskRunSpecs:
- pipelineTaskName: build-container
stepSpecs:
# Provision more CPU to speed up build compared to the defaults.
# https://github.com/redhat-appstudio/build-definitions/blob/main/task/buildah/0.1/buildah.yaml#L126
- name: build
computeResources:
requests:
cpu: 2
- pipelineTaskName: clamav-scan
stepSpecs:
# Provision more CPU to speed up ClamAV scan compared to the defaults.
# https://github.com/redhat-appstudio/build-definitions/blob/main/task/clamav-scan/0.1/clamav-scan.yaml#L48
- name: extract-and-scan-image
computeResources:
requests:
cpu: 1

pipelineSpec:

finally:
Expand Down
18 changes: 18 additions & 0 deletions .tekton/scanner-slim-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,24 @@ spec:
secret:
secretName: '{{ git_auth_secret }}'

taskRunSpecs:
- pipelineTaskName: build-container
stepSpecs:
# Provision more CPU to speed up build compared to the defaults.
# https://github.com/redhat-appstudio/build-definitions/blob/main/task/buildah/0.1/buildah.yaml#L126
- name: build
computeResources:
requests:
cpu: 2
- pipelineTaskName: clamav-scan
stepSpecs:
# Provision more CPU to speed up ClamAV scan compared to the defaults.
# https://github.com/redhat-appstudio/build-definitions/blob/main/task/clamav-scan/0.1/clamav-scan.yaml#L48
- name: extract-and-scan-image
computeResources:
requests:
cpu: 1

pipelineSpec:

finally:
Expand Down
18 changes: 18 additions & 0 deletions .tekton/scanner-slim-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,24 @@ spec:
secret:
secretName: '{{ git_auth_secret }}'

taskRunSpecs:
- pipelineTaskName: build-container
stepSpecs:
# Provision more CPU to speed up build compared to the defaults.
# https://github.com/redhat-appstudio/build-definitions/blob/main/task/buildah/0.1/buildah.yaml#L126
- name: build
computeResources:
requests:
cpu: 2
- pipelineTaskName: clamav-scan
stepSpecs:
# Provision more CPU to speed up ClamAV scan compared to the defaults.
# https://github.com/redhat-appstudio/build-definitions/blob/main/task/clamav-scan/0.1/clamav-scan.yaml#L48
- name: extract-and-scan-image
computeResources:
requests:
cpu: 1

pipelineSpec:

finally:
Expand Down

0 comments on commit f169263

Please sign in to comment.