Skip to content

Commit 179db6a

Browse files
Merge pull request #421 from RaphaelBut/tekton-pruner
Make tekton pruner image configurable via app-interface
2 parents 3f3d79b + 9ac5584 commit 179db6a

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

deploy/tekton-pruner.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
command:
2020
- /bin/sh
2121
- -c
22-
image: quay.io/openshift-pipeline/openshift-pipelines-pipelines-cli-tkn-rhel8@sha256:e1fa47811f156e48a61741aabe73ef85078960567822a4b23c174c0d9b4d0ee6
22+
image: ${TEKTON_RESOURCE_PRUNER_IMAGE}@${TEKTON_RESOURCE_PRUNER_SHA}
2323
imagePullPolicy: IfNotPresent
2424
name: tekton-resource-pruner
2525
resources:
@@ -92,4 +92,4 @@ roleRef:
9292
name: cad-tekton-pruner-role
9393
subjects:
9494
- kind: ServiceAccount
95-
name: cad-tekton-pruner
95+
name: cad-tekton-pruner

hack/update-template/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ var saasTemplateFile = Template{
3333
{Name: "NAMESPACE_NAME", Value: "configuration-anomaly-detection"},
3434
{Name: "CAD_EXPERIMENTAL_ENABLED", Value: "FALSE"},
3535
{Name: "LOG_LEVEL", Value: "info"},
36+
{Name: "TEKTON_RESOURCE_PRUNER_IMAGE", Value: "quay.io/openshift-pipeline/openshift-pipelines-pipelines-cli-tkn-rhel8"},
37+
{Name: "TEKTON_RESOURCE_PRUNER_SHA", Value: ""},
3638
},
3739
}
3840

openshift/template.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ parameters:
1313
value: "FALSE"
1414
- name: LOG_LEVEL
1515
value: info
16+
- name: TEKTON_RESOURCE_PRUNER_IMAGE
17+
value: quay.io/openshift-pipeline/openshift-pipelines-pipelines-cli-tkn-rhel8
18+
- name: TEKTON_RESOURCE_PRUNER_SHA
1619
objects:
1720
- apiVersion: apps/v1
1821
kind: Deployment
@@ -350,7 +353,7 @@ objects:
350353
command:
351354
- /bin/sh
352355
- -c
353-
image: quay.io/openshift-pipeline/openshift-pipelines-pipelines-cli-tkn-rhel8@sha256:e1fa47811f156e48a61741aabe73ef85078960567822a4b23c174c0d9b4d0ee6
356+
image: ${TEKTON_RESOURCE_PRUNER_IMAGE}@${TEKTON_RESOURCE_PRUNER_SHA}
354357
imagePullPolicy: IfNotPresent
355358
name: tekton-resource-pruner
356359
resources:

0 commit comments

Comments
 (0)