Skip to content

Commit 97caa5b

Browse files
authored
Optional Annotations Fix (#354)
1 parent 11494a6 commit 97caa5b

File tree

8 files changed

+22
-26
lines changed

8 files changed

+22
-26
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.8
4+
version: 1.0.9
55
home: https://github.com/codefresh-io/venona
66
kubeVersion: '>=1.19.0-0'
77
keywords:

.deploy/cf-runtime/README.md

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

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

55
## Prerequisites
66

.deploy/cf-runtime/templates/monitor/rollback-serviceaccount.monitor.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ kind: ServiceAccount
44
metadata:
55
name: {{ include "cf-monitor.rollbackFullname" . }}
66
labels: {{- include "cf-monitor.labels" . | nindent 4 }}
7+
{{- with .Values.monitor.serviceAccount.annotations }}
78
annotations:
8-
{{ range $key, $value := .Values.monitor.serviceAccount.annotations }}
9-
{{ $key }}: {{ $value }}
10-
{{ end }}
9+
{{- toYaml . | nindent 4 }}
10+
{{- end }}
1111
{{- end }}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ kind: ServiceAccount
44
metadata:
55
name: {{ include "cf-monitor.fullname" . }}
66
labels: {{- include "cf-monitor.labels" . | nindent 4 }}
7+
{{- with .Values.monitor.serviceAccount.annotations }}
78
annotations:
8-
{{ range $key, $value := .Values.monitor.serviceAccount.annotations }}
9-
{{ $key }}: {{ $value }}
10-
{{ end }}
11-
{{- end }}
9+
{{- toYaml . | nindent 4 }}
10+
{{- end }}
11+
{{- end }}

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ metadata:
44
{{- /* has to be a constant */}}
55
name: codefresh-engine
66
labels: {{- include "cf-re.labels" . | nindent 4 }}
7-
{{- if .Values.re.serviceAccount }}
8-
annotations:
9-
{{- range $key, $value := .Values.re.serviceAccount.annotations }}
10-
{{ $key }}: {{ $value }}
11-
{{- end}}
12-
{{- end}}
7+
{{- with .Values.re.serviceAccount.annotations }}
8+
annotations:
9+
{{- toYaml . | nindent 4 }}
10+
{{- end }}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ spec:
1616
template:
1717
metadata:
1818
labels: {{- include "cf-runner.labels" . | nindent 8 }}
19+
{{- with .Values.runner.annotations }}
1920
annotations:
20-
{{- range $key, $value := .Values.runner.annotations }}
21-
{{ $key }}: {{ $value }}
22-
{{- end}}
21+
{{- toYaml . | nindent 8 }}
22+
{{- end }}
2323
spec:
2424
serviceAccountName: {{ include "cf-runner.fullname" . }}
2525
{{- if .Values.runner.nodeSelector }}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ spec:
1212
template:
1313
metadata:
1414
labels: {{- include "cf-vp.provisionerLabels" . | nindent 9 }}
15+
{{- with .Values.volumeProvisioner.annotations }}
1516
annotations:
16-
{{- range $key, $value := .Values.volumeProvisioner.annotations }}
17-
{{ $key }}: {{ $value }}
18-
{{- end}}
17+
{{- toYaml . | nindent 8 }}
18+
{{- end }}
1919
spec:
2020
serviceAccountName: {{ include "cf-vp.fullname" . }}
2121
{{- if .Values.volumeProvisioner.nodeSelector }}

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ kind: ServiceAccount
33
metadata:
44
name: {{ include "cf-vp.fullname" . }}
55
labels: {{- include "cf-vp.provisionerLabels" . | nindent 4 }}
6+
{{- with .Values.volumeProvisioner.serviceAccount.annotations }}
67
annotations:
7-
{{- if .Values.volumeProvisioner.serviceAccount }}
8-
{{- range $key, $value := .Values.volumeProvisioner.serviceAccount.annotations }}
9-
{{ $key }}: {{ $value }}
10-
{{- end}}
11-
{{- end}}
8+
{{- toYaml . | nindent 4 }}
9+
{{- end }}

0 commit comments

Comments
 (0)