Skip to content

fix(helm): add cloudwatch region and logGroup fields to flyte-binary chart#7235

Open
nuthalapativarun wants to merge 2 commits intoflyteorg:masterfrom
nuthalapativarun:fix/flyte-binary-cloudwatch-config-7065
Open

fix(helm): add cloudwatch region and logGroup fields to flyte-binary chart#7235
nuthalapativarun wants to merge 2 commits intoflyteorg:masterfrom
nuthalapativarun:fix/flyte-binary-cloudwatch-config-7065

Conversation

@nuthalapativarun
Copy link
Copy Markdown

Tracking issue

Closes #7065

Why are the changes needed?

The flyte-binary chart only exposed templateUri for CloudWatch log configuration, requiring users to embed the AWS region and EKS cluster name directly in a URL template string. The eks example files shipped with literal <AWS_REGION> and <EKS_CLUSTER_NAME> placeholder strings. When users deployed without replacing these, the placeholders appeared URL-encoded (%3CAWS_REGION%3E) in the Flyte UI CloudWatch log links.

The flyte-core chart supports dedicated cloudwatch-region and cloudwatch-log-group fields, which the backend uses to construct the CloudWatch URL internally. The flyte-binary chart lacked equivalent fields.

What changes were proposed in this pull request?

  • charts/flyte-binary/values.yaml: Added cloudwatch.region and cloudwatch.logGroup fields under configuration.logging.plugins.cloudwatch.
  • charts/flyte-binary/templates/_helpers.tpl: Updated the flyte-binary.configuration.logging.plugins helper to emit cloudwatch-region and cloudwatch-log-group when the new fields are set. The existing templateUri field takes precedence when set, preserving full backward compatibility.
  • charts/flyte-binary/eks-production.yaml and eks-starter.yaml: Replaced the templateUri with the placeholder strings with the new region and logGroup fields, which users replace with their actual values.

How was this patch tested?

Verified with helm template that:

  • Setting cloudwatch.region and cloudwatch.logGroup produces cloudwatch-region and cloudwatch-log-group config keys in the rendered configmap.
  • Setting cloudwatch.templateUri still produces cloudwatch-template-uri as before (backward-compatible path).

Labels

  • fixed

  • I updated the documentation accordingly.

  • All new and existing tests passed.

  • All commits are signed-off.

@welcome
Copy link
Copy Markdown

welcome Bot commented Apr 18, 2026

Thank you for opening this pull request! 🙌

These tips will help get your PR across the finish line:

  • Most of the repos have a PR template; if not, fill it out to the best of your knowledge.
  • Sign off your commits (Reference: DCO Guide).

…chart

The flyte-binary chart only supported cloudwatch-template-uri for
CloudWatch log configuration, requiring users to embed the region and
log group directly in a URL template string. When users deployed the
eks example files without replacing the <AWS_REGION> and
<EKS_CLUSTER_NAME> placeholders, these literal strings appeared
URL-encoded in the Flyte UI CloudWatch links.

Add dedicated cloudwatch.region and cloudwatch.logGroup fields to the
chart, mirroring the configuration surface already available in
flyte-core. When these fields are set, the chart emits
cloudwatch-region and cloudwatch-log-group config keys. The existing
templateUri field is preserved for full backward compatibility and
takes precedence when set.

Update eks-production.yaml and eks-starter.yaml to use the new fields.

Closes flyteorg#7065

Signed-off-by: Varun Nuthalapati <nuthalapativarun@gmail.com>
@nuthalapativarun nuthalapativarun force-pushed the fix/flyte-binary-cloudwatch-config-7065 branch from 71d6fc7 to 5a2ed9e Compare April 18, 2026 18:05
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.92%. Comparing base (669c05c) to head (5a2ed9e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7235      +/-   ##
==========================================
- Coverage   56.95%   56.92%   -0.03%     
==========================================
  Files         931      931              
  Lines       58234    58234              
==========================================
- Hits        33166    33150      -16     
- Misses      22017    22032      +15     
- Partials     3051     3052       +1     
Flag Coverage Δ
unittests-datacatalog 53.51% <ø> (ø)
unittests-flyteadmin 53.07% <ø> (-0.08%) ⬇️
unittests-flytecopilot 43.06% <ø> (ø)
unittests-flytectl 64.09% <ø> (ø)
unittests-flyteidl 75.71% <ø> (ø)
unittests-flyteplugins 60.17% <ø> (ø)
unittests-flytepropeller 53.68% <ø> (-0.03%) ⬇️
unittests-flytestdlib 62.58% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

[BUG] CloudWatch link on the Flyte UI for a task is incorrect for binary version

1 participant