Skip to content

bugfix/3364/add-annotations-to-webapp-sa#3367

Closed
LeeheAlkalyDarrow wants to merge 1 commit intotriggerdotdev:mainfrom
darrow-ai:bugfix/3364/add-annotations-to-webapp-sa
Closed

bugfix/3364/add-annotations-to-webapp-sa#3367
LeeheAlkalyDarrow wants to merge 1 commit intotriggerdotdev:mainfrom
darrow-ai:bugfix/3364/add-annotations-to-webapp-sa

Conversation

@LeeheAlkalyDarrow
Copy link
Copy Markdown

Closes #

✅ Checklist

  • I have followed every step in the contributing guide
  • The PR title follows the convention.
  • I ran and tested the code works

Testing

[Describe the steps you took to test this change]


Changelog

[Short description of what has changed]


Screenshots

[Screenshots]

💯

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 13, 2026

⚠️ No Changeset found

Latest commit: e899f9a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

Hi @LeeheAlkalyDarrow, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md for more details.

@github-actions github-actions bot closed this Apr 13, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 13, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 07865770-330b-44bf-af06-a03fc217bb57

📥 Commits

Reviewing files that changed from the base of the PR and between bd41bb2 and e899f9a.

📒 Files selected for processing (2)
  • hosting/k8s/helm/templates/_helpers.tpl
  • hosting/k8s/helm/templates/webapp.yaml

Walkthrough

This pull request adds a new Helm helper template trigger-v4.webappServiceAccountName to compute the webapp service account name based on configuration values. The helper defaults to <release-fullname>-webapp when service account creation is enabled, or "default" otherwise, with support for explicit name overrides. The webapp.yaml template is updated to use this helper across ServiceAccount creation, RoleBinding subject references, and Deployment pod specifications. ServiceAccount creation is now conditionally gated, and ServiceAccount annotations support is added.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 1 additional finding in Devin Review.

Open in Devin Review

Create the name of the webapp service account to use
*/}}
{{- define "trigger-v4.webappServiceAccountName" -}}
{{- if .Values.supervisor.serviceAccount.create }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Copy-paste error: webappServiceAccountName checks supervisor.serviceAccount.create instead of webapp.serviceAccount.create

The new trigger-v4.webappServiceAccountName helper at hosting/k8s/helm/templates/_helpers.tpl:566 checks .Values.supervisor.serviceAccount.create instead of .Values.webapp.serviceAccount.create. This was clearly copied from the supervisor helper at hosting/k8s/helm/templates/_helpers.tpl:526-532 without updating the condition.

With default values, supervisor.serviceAccount.create is true, so this helper always returns the auto-generated name <fullname>-webapp. However, webapp.yaml:1 correctly checks .Values.webapp.serviceAccount.create (which has no default in values.yaml and evaluates to nil/false), so the ServiceAccount resource is not created. This results in the Deployment (line 65) and RoleBinding (line 36) referencing a ServiceAccount that doesn't exist, causing pod scheduling failures.

Suggested change
{{- if .Values.supervisor.serviceAccount.create }}
{{- if .Values.webapp.serviceAccount.create }}
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant