Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions cicd/tekton-cluster-tasks/templates/cosign-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ spec:
- description: The image to be signed by cosign.
name: image
type: string
steps:
- image: ghcr.io/kube-tarian/helmrepo-supporting-tools/cosign:v2.2.2
name: cosign-sign
- name: registry
description: "registry"
type: string
steps:
- image: ghcr.io/kube-tarian/helmrepo-supporting-tools/cosign:v2.2.2
name: cosign-sign
resources:
limits:
cpu: 200m
memory: 300Mi
requests:
cpu: 3m
memory: 20Mi
resources: {}
script: |
#!/usr/bin/env bash
Expand Down
7 changes: 7 additions & 0 deletions cicd/tekton-cluster-tasks/templates/cosign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ spec:
steps:
- name: cosign-sign
image: ghcr.io/kube-tarian/helmrepo-supporting-tools/cosign:v2.2.2
resources:
limits:
cpu: 200m
memory: 300Mi
requests:
cpu: 3m
memory: 20Mi
script: |
#!/usr/bin/env bash
mkdir -p ~/.docker/
Expand Down
35 changes: 35 additions & 0 deletions cicd/tekton-cluster-tasks/templates/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ spec:

- name: clone-repo
image: ghcr.io/kube-tarian/helmrepo-supporting-tools/git:v2.26.2
resources:
limits:
cpu: 50m
memory: 60Mi
requests:
cpu: 10m
memory: 20Mi
env:
- name: GIT_PROJECT_URL
value: $(params.gitProjectUrl)
Expand All @@ -55,6 +62,13 @@ spec:
git clone https://${GIT_USERNAME}:${GIT_TOKEN}@${GIT_PROJECT_URL} /workspace/source

- image: ghcr.io/kube-tarian/helmrepo-supporting-tools/git:v2.26.2
resources:
limits:
cpu: 50m
memory: 60Mi
requests:
cpu: 10m
memory: 20Mi
name: update-yaml
env:
- name: DIRECTORY
Expand All @@ -74,6 +88,13 @@ spec:

- name: commit-push-changes-gitops
image: ghcr.io/kube-tarian/helmrepo-supporting-tools/git:v2.26.2
resources:
limits:
cpu: 300m
memory: 200Mi
requests:
cpu: 50m
memory: 40Mi
env:
- name: USER_EMAIL
value: $(params.userEmail)
Expand All @@ -93,6 +114,13 @@ spec:

- name: wait-for-argocd-rollout
image: ghcr.io/kube-tarian/helmrepo-supporting-tools/argocd:v2.6.15
resources:
limits:
cpu: 300m
memory: 200Mi
requests:
cpu: 50m
memory: 40Mi
env:
- name: ARGOCD_APP_NAME
value: $(params.clusterName)
Expand All @@ -110,6 +138,13 @@ spec:

- name: check-argocd-status
image: ghcr.io/kube-tarian/helmrepo-supporting-tools/argocd:v2.6.15
resources:
limits:
cpu: 50m
memory: 60Mi
requests:
cpu: 10m
memory: 20Mi
env:
- name: ARGOCD_APP_NAME
value: $(params.clusterName)
Expand Down
7 changes: 7 additions & 0 deletions cicd/tekton-cluster-tasks/templates/get-changed-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ spec:
steps:
- name: get-changed-files
image: ghcr.io/kube-tarian/helmrepo-supporting-tools/build1:latest
resources:
limits:
cpu: 200m
memory: 100Mi
requests:
cpu: 50m
memory: 30Mi
script: |
#!/bin/sh
git config --global --add safe.directory /workspace/source
Expand Down
7 changes: 7 additions & 0 deletions cicd/tekton-cluster-tasks/templates/get-commit-id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ spec:
steps:
- name: get-latest-commit-id
image: ghcr.io/kube-tarian/helmrepo-supporting-tools/curl:latest
resources:
limits:
cpu: 200m
memory: 100Mi
requests:
cpu: 50m
memory: 30Mi
script: |
export TOKEN=`cat /workspace/basic-auth/password`
COMMIT_ID=$(curl -s -H "Authorization: token ${TOKEN}" "https://api.github.com/repos/$(params.REPONAME)/commits/$(params.REVISION)" | jq -r '.sha')
Expand Down
7 changes: 7 additions & 0 deletions cicd/tekton-cluster-tasks/templates/gitclone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ spec:
steps:
- name: clone
image: "$(params.gitInitImage)"
resources:
limits:
cpu: 200m
memory: 100Mi
requests:
cpu: 50m
memory: 30Mi
env:
- name: HOME
value: "$(params.userHome)"
Expand Down
7 changes: 7 additions & 0 deletions cicd/tekton-cluster-tasks/templates/github-set-status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ spec:
value: $(params.SHEBANG)

image: $(params.IMAGE)
resources:
limits:
cpu: 100m
memory: 200Mi
requests:
cpu: 2m
memory: 4Mi
script: |
#!$(params.SHEBANG)

Expand Down
7 changes: 7 additions & 0 deletions cicd/tekton-cluster-tasks/templates/gitlab-set-status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ spec:
steps:
- name: set-status
image: registry.access.redhat.com/ubi8/python-38@sha256:af6f93b81f9313de95966e8cd681edb9dbcb5fdbddc5a4cc365af8e4534096ef
resources:
limits:
cpu: 100m
memory: 200Mi
requests:
cpu: 2m
memory: 4Mi
script: |
#!/usr/libexec/platform-python

Expand Down
35 changes: 35 additions & 0 deletions cicd/tekton-cluster-tasks/templates/helm-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ spec:

- name: clone-repo
image: ghcr.io/kube-tarian/helmrepo-supporting-tools/git:v2.26.2
resources:
limits:
cpu: 50m
memory: 60Mi
requests:
cpu: 10m
memory: 20Mi
env:
- name: GIT_PROJECT_URL
value: $(params.gitProjectUrl)
Expand All @@ -55,6 +62,13 @@ spec:
git clone https://${GIT_USERNAME}:${GIT_TOKEN}@${GIT_PROJECT_URL} /workspace/source

- image: ghcr.io/kube-tarian/helmrepo-supporting-tools/git:v2.26.2
resources:
limits:
cpu: 50m
memory: 60Mi
requests:
cpu: 10m
memory: 20Mi
name: update-yaml
env:
- name: DIRECTORY
Expand All @@ -73,6 +87,13 @@ spec:

- name: commit-push-changes-gitops
image: ghcr.io/kube-tarian/helmrepo-supporting-tools/git:v2.26.2
resources:
limits:
cpu: 300m
memory: 200Mi
requests:
cpu: 50m
memory: 40Mi
env:
- name: USER_EMAIL
value: $(params.userEmail)
Expand All @@ -92,6 +113,13 @@ spec:

- name: wait-for-argocd-rollout
image: ghcr.io/kube-tarian/helmrepo-supporting-tools/argocd:v2.6.15
resources:
limits:
cpu: 300m
memory: 200Mi
requests:
cpu: 50m
memory: 40Mi
env:
- name: ARGOCD_APP_NAME
value: $(params.clusterName)
Expand All @@ -109,6 +137,13 @@ spec:

- name: check-argocd-status
image: ghcr.io/kube-tarian/helmrepo-supporting-tools/argocd:v2.6.15
resources:
limits:
cpu: 50m
memory: 60Mi
requests:
cpu: 10m
memory: 20Mi
env:
- name: ARGOCD_APP_NAME
value: $(params.clusterName)
Expand Down
14 changes: 14 additions & 0 deletions cicd/tekton-cluster-tasks/templates/kaniko.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ spec:
- name: build-and-push
workingDir: $(workspaces.source.path)
image: $(params.BUILDER_IMAGE)
resources:
limits:
cpu: 1000m
memory: 1500Mi
requests:
cpu: 500m
memory: 300Mi
args:
- $(params.EXTRA_ARGS)
- --dockerfile=$(params.DOCKERFILE)
Expand All @@ -62,6 +69,13 @@ spec:
- name: write-url
workingDir: $(workspaces.source.path)
image: ghcr.io/kube-tarian/helmrepo-supporting-tools/bash:5.1.4
resources:
limits:
cpu: 100m
memory: 200Mi
requests:
cpu: 2m
memory: 5Mi
script: |
set -e
image="$(params.IMAGE)"
Expand Down
7 changes: 7 additions & 0 deletions cicd/tekton-cluster-tasks/templates/qt-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ spec:
steps:
- name: install-and-run-qt
image: ghcr.io/intelops/quality-trace/cli:latest
resources:
limits:
cpu: 100m
memory: 200Mi
requests:
cpu: 2m
memory: 5Mi
script: |

# Configure and Run Quality-trace CLI
Expand Down