Skip to content

Commit

Permalink
adding variable for service account annotations (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcsherma authored May 30, 2023
1 parent c6c4e63 commit 47131fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/launch-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: launch-agent
description: A Helm chart for running the W&B Launch Agent in Kubernetes
type: application
version: 0.3.0
version: 0.4.0
maintainers:
- name: wandb
email: support@wandb.com
Expand Down
4 changes: 4 additions & 0 deletions charts/launch-agent/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ kind: ServiceAccount
metadata:
name: wandb-launch-serviceaccount
namespace: wandb
{{ if .Values.serviceAccount.annotations }}
annotations:
{{ toYaml .Values.serviceAccount.annotations | indent 4 }}
{{ end }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down
5 changes: 5 additions & 0 deletions charts/launch-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ volcano: true
# and mounted into the agent container. Set this if you want to clone private
# repos.
gitCreds: |
# Annotations for the wandb service account. Useful when setting up workload identity on gcp.
serviceAccount:
annotations:
iam.gke.io/gcp-service-account:

0 comments on commit 47131fc

Please sign in to comment.