Skip to content

Commit 6a966e8

Browse files
authored
feat(chart): Modify sevice accounts (#1179)
Signed-off-by: Javier Rodriguez <[email protected]>
1 parent 44b1115 commit 6a966e8

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

deployment/chainloop/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Chainloop is an open source software supply chain control plane, a
77

88
type: application
99
# Bump the patch (not minor, not major) version on each change in the Chart Source code
10-
version: 1.86.0
10+
version: 1.86.1
1111
# Do not update appVersion, this is handled automatically by the release process
1212
appVersion: v0.95.3
1313

deployment/chainloop/templates/cas/serviceaccount.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ apiVersion: v1
88
kind: ServiceAccount
99
metadata:
1010
name: {{ include "chainloop.cas.serviceAccountName" . }}
11-
labels:
12-
{{- include "chainloop.cas.labels" . | nindent 4 }}
13-
{{- with .Values.cas.serviceAccount.annotations }}
14-
annotations:
15-
{{- toYaml . | nindent 4 }}
11+
namespace: {{ include "common.names.namespace" . | quote }}
12+
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
13+
app.kubernetes.io/component: cas
14+
{{- if or .Values.cas.serviceAccount.annotations .Values.commonAnnotations }}
15+
{{- $annotations := include "common.tplvalues.merge" (dict "values" (list .Values.cas.serviceAccount.annotations .Values.commonAnnotations) "context" .) }}
16+
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $ ) | nindent 4 }}
17+
{{- end }}
1618
{{- end }}
17-
{{- end }}

deployment/chainloop/templates/controlplane/serviceaccount.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ apiVersion: v1
88
kind: ServiceAccount
99
metadata:
1010
name: {{ include "controlplane.serviceAccountName" . }}
11-
labels:
12-
{{- include "chainloop.controlplane.labels" . | nindent 4 }}
13-
{{- with .Values.controlplane.serviceAccount.annotations }}
14-
annotations:
15-
{{- toYaml . | nindent 4 }}
11+
namespace: {{ include "common.names.namespace" . | quote }}
12+
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
13+
app.kubernetes.io/component: controlplane
14+
{{- if or .Values.controlplane.serviceAccount.annotations .Values.commonAnnotations }}
15+
{{- $annotations := include "common.tplvalues.merge" (dict "values" (list .Values.controlplane.serviceAccount.annotations .Values.commonAnnotations) "context" .) }}
16+
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $ ) | nindent 4 }}
17+
{{- end }}
1618
{{- end }}
17-
{{- end }}

0 commit comments

Comments
 (0)