Skip to content

Commit

Permalink
Merge pull request #92 from elenaviter/ff-helm-ingress-and-service-ac…
Browse files Browse the repository at this point in the history
…c-and-unique-names

Editors: allow optional service account linkage
  • Loading branch information
hardillb authored Jul 21, 2023
2 parents a3b3a44 + 5774acc commit f0c2fef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ Next variables are read from flowforge process environment in runtime:
* `INGRESS_CLASS_NAME` - `Ingress` class name for editor instances
* `INGRESS_ANNOTATIONS` - `Ingress` annotations for editor instances as JSON-encoded object
* `DEPLOYMENT_TOLERATIONS` - Editor `Deployment` tolerations as JSON-encoded object
* `EDITOR_SERVICE_ACCOUNT` - Editor service account.
1 change: 1 addition & 0 deletions kubernetes.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ const createDeployment = async (project, options) => {

localPod.metadata.labels.app = project.id
localPod.metadata.labels.name = project.safeName
localPod.spec.serviceAccount = process.env.EDITOR_SERVICE_ACCOUNT

if (stack.container) {
localPod.spec.containers[0].image = stack.container
Expand Down

0 comments on commit f0c2fef

Please sign in to comment.