You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by rk...@apache.org on 2025/10/15 15:38:12 UTC

(sdap-nexus) 01/01: SDAP Helm chart: allow optional annotation for IAM role association for Spark ServiceAccount

This is an automated email from the ASF dual-hosted git repository.

rkk pushed a commit to branch spark-svc-acct-iam-role
in repository https://gitbox.apache.org/repos/asf/sdap-nexus.git

commit 8106d22710bba573e64e44428fe665d25f9ec4a1
Author: rileykk <ri...@jpl.nasa.gov>
AuthorDate: Wed Oct 15 08:38:02 2025 -0700

    SDAP Helm chart: allow optional annotation for IAM role association for Spark ServiceAccount
---
 helm/templates/spark-serviceaccount.yml | 4 ++++
 helm/values.yaml                        | 1 +
 2 files changed, 5 insertions(+)

diff --git a/helm/templates/spark-serviceaccount.yml b/helm/templates/spark-serviceaccount.yml
index f1f3b81..e1f30f2 100644
--- a/helm/templates/spark-serviceaccount.yml
+++ b/helm/templates/spark-serviceaccount.yml
@@ -16,6 +16,10 @@
 apiVersion: v1
 kind: ServiceAccount
 metadata:
+  {{ if .Values.webapp.iamRoleArn }}
+  annotations:
+    eks.amazonaws.com/role-arn: "{{ .Values.webapp.iamRoleArn }}"
+  {{ end }}
   name: spark-serviceaccount
 automountServiceAccountToken: true
 ---
diff --git a/helm/values.yaml b/helm/values.yaml
index 5264c71..fd71058 100644
--- a/helm/values.yaml
+++ b/helm/values.yaml
@@ -38,6 +38,7 @@ webapp:
       cores: 1
       instances: 2
       memory: "512m"
+  iamRoleArn:
 
 ## This section deals with the ingestion components of SDAP
 ingestion: