Skip to content

Commit

Permalink
Fix piped deployment to use the created service account only if it wa…
Browse files Browse the repository at this point in the history
…s created (#1993)

**What this PR does / why we need it**:

**Which issue(s) this PR fixes**:

Fixes #

**Does this PR introduce a user-facing change?**:
<!--
If no, just write "NONE" in the release-note block below.
-->
```release-note
NONE
```

This PR was merged by Kapetanios.
  • Loading branch information
nghialv committed May 24, 2021
1 parent 2f137d6 commit 1b576a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/piped/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ spec:
sidecar.istio.io/inject: "false"
rollme: {{ randAlphaNum 5 | quote }}
spec:
{{- if .Values.serviceAccount.create -}}
serviceAccountName: {{ include "piped.serviceAccountName" . }}
{{- end }}
containers:
- name: piped
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
Expand Down

0 comments on commit 1b576a7

Please sign in to comment.