Skip to content

Commit

Permalink
Added support for service account annotations (#1841)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Shoshan <[email protected]>
Co-authored-by: Megha Bansal <[email protected]>
  • Loading branch information
3 people authored Oct 1, 2024
1 parent db9d573 commit 89c9bdf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/xray/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -903,4 +903,4 @@ All changes to this chart will be documented in this file.
## [0.4.0] - Aug 22, 2018
* Enabled RBAC support
* Added ingress support
* Updated Xray version to 2.2.4
* Updated Xray version to 2.2.4
2 changes: 1 addition & 1 deletion stable/xray/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ name: xray
sources:
- https://github.com/jfrog/charts
type: application
version: 103.104.8
version: 103.104.8
4 changes: 4 additions & 0 deletions stable/xray/templates/xray-serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
apiVersion: v1
kind: ServiceAccount
metadata:
{{- with .Values.serviceAccount.annotations }}
annotations:
{{ tpl (toYaml .) $ | indent 4 }}
{{- end }}
labels:
app: {{ template "xray.name" . }}
chart: {{ template "xray.chart" . }}
Expand Down
2 changes: 2 additions & 0 deletions stable/xray/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ serviceAccount:
## The name of the ServiceAccount to use.
## If not set and create is true, a name is generated using the fullname template
name:
## Service Account annotations
annotations: {}
## Explicitly mounts the API credentials for the Service Account
automountServiceAccountToken: true

Expand Down

0 comments on commit 89c9bdf

Please sign in to comment.