Skip to content

Add Loop Runtime workload for EKS - #98

Open
Alex R (alexr17) wants to merge 3 commits into
mainfrom
feat/loop-runtime-eks
Open

Add Loop Runtime workload for EKS#98
Alex R (alexr17) wants to merge 3 commits into
mainfrom
feat/loop-runtime-eks

Conversation

@alexr17

Copy link
Copy Markdown

Context

The Helm chart had no Loop Runtime workload, so external EKS deployments could not run the Kubernetes-hosted runtime.

Description

Add an opt-in AWS EKS Loop Runtime Deployment, Service, ServiceAccount, and ConfigMap. Wire the runtime to the existing data-plane Secret, API URL, AWS MicroVM sandbox settings, and optional Istio route, with hardened pod defaults and public configuration documentation.

Testing

  • ./test.sh

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c3b7cd9e53

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment on lines +3 to +4
{{- $resourceLabels := mergeOverwrite (deepCopy .Values.global.labels) (deepCopy .Values.loopRuntime.labels) -}}
{{- $podLabels := mergeOverwrite (deepCopy .Values.global.labels) (deepCopy .Values.loopRuntime.labels) (deepCopy .Values.loopRuntime.podLabels) (dict "app" .Values.loopRuntime.name) -}}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add required label-merge isolation coverage

The new Deployment, ConfigMap, Service, and ServiceAccount all merge global.labels with Loop Runtime labels, but none of the added tests renders them alongside components with conflicting labels to verify that labels cannot bleed through Helm's mutating merge functions. Add Loop Runtime cases to the existing labels-merge-* isolation suites, including coverage for the pod-label merge.

AGENTS.md reference: AGENTS.md:L20-L20

Useful? React with 👍 / 👎.

{{- include "braintrust.loopRuntime.validate" . -}}
{{- if .Values.loopRuntime.enabled -}}
{{- $labels := mergeOverwrite (deepCopy .Values.global.labels) (deepCopy .Values.loopRuntime.labels) -}}
{{- $annotations := deepCopy .Values.loopRuntime.annotations.serviceaccount -}}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Render the declared service-account annotations

When a caller sets the newly declared loopRuntime.serviceAccount.annotations value, the generated ServiceAccount silently omits it because this template copies only loopRuntime.annotations.serviceaccount. This makes the value at values.yaml:321 ineffective for integrations that need custom ServiceAccount annotations; render or merge the nested annotation map here.

Useful? React with 👍 / 👎.

@alexr17

Copy link
Copy Markdown
Author

Codex (@codex) review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-28T23:32:11.391479Z 1bc6147 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2e8a133ecc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread braintrust/values.yaml Outdated
httpGet:
path: /health/liveness
# Use the named Service port so this follows service.port changes.
port: http

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep probe names aligned with the configurable port

When a deployment overrides loopRuntime.service.portName, the container port is rendered with that custom name, but both default probes continue targeting the literal name http. Kubernetes cannot resolve that named probe port, so the Loop Runtime pod remains unready and is repeatedly restarted by the liveness probe. Derive these probe ports from loopRuntime.service.portName or use the numeric service port.

Useful? React with 👍 / 👎.

@alexr17

Copy link
Copy Markdown
Author

Codex (@codex) review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 1bc6147080

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that 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