Skip to content

fix(helm): set catalog-cache to noop when datacatalog is disabled in flyte-core#7234

Open
nuthalapativarun wants to merge 2 commits intoflyteorg:masterfrom
nuthalapativarun:fix/datacatalog-catalog-cache-mismatch-7155
Open

fix(helm): set catalog-cache to noop when datacatalog is disabled in flyte-core#7234
nuthalapativarun wants to merge 2 commits intoflyteorg:masterfrom
nuthalapativarun:fix/datacatalog-catalog-cache-mismatch-7155

Conversation

@nuthalapativarun
Copy link
Copy Markdown

Tracking issue

Closes #7155

Why are the changes needed?

When datacatalog.enabled=false in the flyte-core Helm chart, the catalog-cache configuration still defaults to type: datacatalog with endpoint: datacatalog:89. Since the datacatalog service is not deployed in this case, every task execution triggers a DNS lookup failure:

Failed to check Catalog for previous results:
rpc error: code = Unavailable
  desc = connection error: dial tcp: lookup datacatalog on x.x.x.x:x: no such host

These two related settings are far apart in values.yaml (datacatalog toggle at line 273, catalog-cache config buried inside configmaps at line 1055), making it easy to miss the dependency.

What changes were proposed in this pull request?

In charts/flyte-core/templates/propeller/configmap.yaml, the catalog.yaml configmap entry is now rendered conditionally:

  • When datacatalog.enabled=true (default): renders the existing configmap.catalog value as before, preserving full backward compatibility.
  • When datacatalog.enabled=false: renders catalog-cache.type: noop so propeller skips catalog lookups entirely, preventing DNS failures.

How was this patch tested?

Verified with helm template that:

  • --set datacatalog.enabled=false produces catalog-cache:\n type: noop
  • --set datacatalog.enabled=true (default) produces the original datacatalog endpoint config unchanged

Labels

  • fixed

  • I updated the documentation accordingly.

  • All new and existing tests passed.

  • All commits are signed-off.

When datacatalog.enabled=false in flyte-core, the catalog-cache config
still defaulted to type: datacatalog, causing DNS failures on every task
execution since the datacatalog service does not exist.

Conditionally render catalog.yaml with type: noop when datacatalog is
disabled, preventing connection attempts to a non-existent datacatalog
endpoint.

Closes flyteorg#7155

Signed-off-by: Varun Nuthalapati <nuthalapativarun@gmail.com>
@nuthalapativarun nuthalapativarun force-pushed the fix/datacatalog-catalog-cache-mismatch-7155 branch from 49d3caa to 3dca5c9 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.46%. Comparing base (669c05c) to head (3dca5c9).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7234      +/-   ##
==========================================
- Coverage   56.95%   56.46%   -0.49%     
==========================================
  Files         931      909      -22     
  Lines       58234    56756    -1478     
==========================================
- Hits        33166    32048    -1118     
+ Misses      22017    21735     -282     
+ Partials     3051     2973      -78     
Flag Coverage Δ
unittests-datacatalog 53.51% <ø> (ø)
unittests-flyteadmin 53.14% <ø> (ø)
unittests-flytecopilot 43.06% <ø> (ø)
unittests-flytectl 64.09% <ø> (ø)
unittests-flyteidl ?
unittests-flyteplugins 60.17% <ø> (ø)
unittests-flytepropeller 53.71% <ø> (ø)
unittests-flytestdlib 62.61% <ø> (+0.02%) ⬆️

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] Datacatalog enable and catalog-cache setting mismatch cause DNS

2 participants