Skip to content

Commit 11494a6

Browse files
NaveLevinavelemikhail-klimko
authored
Runner pod - adding optional annotations (#351)
* Fixing alignment of unrelated files * Runner pod - adding optional annotations * helm-docs; version bump --------- Co-authored-by: Nave Levi <[email protected]> Co-authored-by: mikhail-klimko <[email protected]>
1 parent 1e41d4e commit 11494a6

File tree

7 files changed

+13
-5
lines changed

7 files changed

+13
-5
lines changed

.deploy/cf-runtime/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
description: A Helm chart for Codefresh Runner
33
name: cf-runtime
4-
version: 1.0.7
4+
version: 1.0.8
55
home: https://github.com/codefresh-io/venona
66
kubeVersion: '>=1.19.0-0'
77
keywords:

.deploy/cf-runtime/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Codefresh Runner
22

3-
![Version: 1.0.7](https://img.shields.io/badge/Version-1.0.7-informational?style=flat-square)
3+
![Version: 1.0.8](https://img.shields.io/badge/Version-1.0.8-informational?style=flat-square)
44

55
## Prerequisites
66

@@ -91,6 +91,7 @@ Kubernetes: `>=1.19.0-0`
9191
| re.dindDaemon.tlskey | string | `"/etc/ssl/cf/server-key.pem"` | |
9292
| re.dindDaemon.tlsverify | bool | `true` | |
9393
| re.serviceAccount | object | `{"annotations":{}}` | Set annotation on engine Service Account Ref: https://codefresh.io/docs/docs/administration/codefresh-runner/#injecting-aws-arn-roles-into-the-cluster |
94+
| runner.annotations | object | `{}` | Add annotations to runner pod |
9495
| runner.env | object | `{}` | Add additional env vars |
9596
| runner.image | string | `"codefresh/venona:1.9.16"` | Set runner image |
9697
| runner.nodeSelector | object | `{}` | Set runner node selector |

.deploy/cf-runtime/templates/re/service-account.re.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ metadata:
88
annotations:
99
{{- range $key, $value := .Values.re.serviceAccount.annotations }}
1010
{{ $key }}: {{ $value }}
11-
{{- end}}
11+
{{- end}}
1212
{{- end}}

.deploy/cf-runtime/templates/venona/deployment.runner.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ spec:
1616
template:
1717
metadata:
1818
labels: {{- include "cf-runner.labels" . | nindent 8 }}
19+
annotations:
20+
{{- range $key, $value := .Values.runner.annotations }}
21+
{{ $key }}: {{ $value }}
22+
{{- end}}
1923
spec:
2024
serviceAccountName: {{ include "cf-runner.fullname" . }}
2125
{{- if .Values.runner.nodeSelector }}

.deploy/cf-runtime/templates/volume-provisioner/service-account.dind-volume-provisioner.vp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ metadata:
77
{{- if .Values.volumeProvisioner.serviceAccount }}
88
{{- range $key, $value := .Values.volumeProvisioner.serviceAccount.annotations }}
99
{{ $key }}: {{ $value }}
10-
{{- end}}
10+
{{- end}}
1111
{{- end}}

.deploy/cf-runtime/templates/volume-provisioner/storageclass.dind-volume-provisioner.vp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
{{/* annotations:*/}}
99
{{/* {{ range $key, $value := .Values.Storage.Annotations }}*/}}
1010
{{/* {{ $key }}: {{ $value }}*/}}
11-
{{/* {{ end }}*/}}
11+
{{/* {{ end }}*/}}
1212
provisioner: {{ include "cf-vp.volumeProvisionerName" . }}
1313
parameters:
1414
{{- if eq .Values.storage.backend "local" }}

.deploy/cf-runtime/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ runner:
6161
# operator: Equal
6262
# value: dind
6363
# effect: NoSchedule
64+
65+
# -- Add annotations to runner pod
66+
annotations: {}
6467

6568
# Volume Provisioner parameters
6669
# @default -- See below

0 commit comments

Comments
 (0)