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

eamonford pushed a commit to branch support-serviceaccount-helm
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git

commit 100b5b65a319f9875c0b1face9145f18ed53cf68
Author: Eamon Ford <[email protected]>
AuthorDate: Mon Dec 21 15:00:21 2020 -0800

    Add support to the Helm chart for using a serviceaccount for S3 
authentication
---
 helm/templates/collection-manager.yml | 1 +
 helm/templates/granule-ingester.yml   | 1 +
 helm/values.yaml                      | 3 +++
 3 files changed, 5 insertions(+)

diff --git a/helm/templates/collection-manager.yml 
b/helm/templates/collection-manager.yml
index 993e71e..be3b87d 100644
--- a/helm/templates/collection-manager.yml
+++ b/helm/templates/collection-manager.yml
@@ -16,6 +16,7 @@ spec:
       labels:
         app: collection-manager
     spec:
+      serviceAccountName: {{ .Values.ingestion.serviceAccountName }}
       containers:
         - image: {{ .Values.ingestion.collectionManager.image }}
           imagePullPolicy: Always
diff --git a/helm/templates/granule-ingester.yml 
b/helm/templates/granule-ingester.yml
index 405edb8..5d36ddb 100644
--- a/helm/templates/granule-ingester.yml
+++ b/helm/templates/granule-ingester.yml
@@ -16,6 +16,7 @@ spec:
       labels:
         app: granule-ingester
     spec:
+      serviceAccountName: {{ .Values.ingestion.serviceAccountName }}
       containers:
         - image: {{ .Values.ingestion.granuleIngester.image }}
           imagePullPolicy: Always
diff --git a/helm/values.yaml b/helm/values.yaml
index 657fb6a..b569a39 100644
--- a/helm/values.yaml
+++ b/helm/values.yaml
@@ -28,6 +28,9 @@ ingestion:
   # If ingestion.enabled=true, collections-ingester and granule-ingester will 
be deployed
   enabled: true
 
+  ## Optional service account to use for collection-manager and 
grranule-ingester
+  serviceAccountName:
+
   granuleIngester:
     replicas: 2
     image: nexusjpl/granule-ingester:0.1.2

Reply via email to