Skip to content

[data] Improve error messages for empty PublicURL#328

Open
kkozoriz wants to merge 11 commits intomainfrom
fix/improve-data-error-output
Open

[data] Improve error messages for empty PublicURL#328
kkozoriz wants to merge 11 commits intomainfrom
fix/improve-data-error-output

Conversation

@kkozoriz
Copy link
Copy Markdown
Contributor

Description

When using --publish with DataExport commands (list, download, etc.), CLI showed uninformative "empty PublicURL" error if the public URL was not yet available or could not be created.

Now CLI provides clear, actionable messages:

  • During wait: "waiting for public URL to be created by controller" with remaining timeout
  • On timeout: suggests running d8 k -n <ns> get de <name> -o yaml to inspect conditions
  • Condition messages from the controller (e.g. PublishFailed) are shown as-is instead of being overwritten

Also fixed a bug: podURL += "https://"podURL = "https://" + podURL.

Changes

  • internal/data/dataexport/util/util.go - reworked URL wait logic in GetDataExportWithRestart, removed redundant "empty PublicURL" check in getExportStatus
  • internal/data/dataexport/util/util_test.go - added 7 test cases covering PublishFailed, Pending, timeout, and happy paths

Before

image

After

Снимок экрана 2026-04-14 в 20 20 43

kkozoriz added 11 commits April 7, 2026 13:56
Signed-off-by: Konstantin Kozoriz <konstantin.kozoriz@flant.com>
Signed-off-by: Konstantin Kozoriz <konstantin.kozoriz@flant.com>
Signed-off-by: Konstantin Kozoriz <konstantin.kozoriz@flant.com>
Signed-off-by: Konstantin Kozoriz <konstantin.kozoriz@flant.com>
Signed-off-by: Konstantin Kozoriz <konstantin.kozoriz@flant.com>
Signed-off-by: Konstantin Kozoriz <konstantin.kozoriz@flant.com>
Signed-off-by: Konstantin Kozoriz <konstantin.kozoriz@flant.com>
Signed-off-by: Konstantin Kozoriz <konstantin.kozoriz@flant.com>
Signed-off-by: Konstantin Kozoriz <konstantin.kozoriz@flant.com>
Signed-off-by: Konstantin Kozoriz <konstantin.kozoriz@flant.com>
Signed-off-by: Konstantin Kozoriz <konstantin.kozoriz@flant.com>
@kkozoriz kkozoriz requested a review from kneumoin April 14, 2026 17:32
@kkozoriz kkozoriz requested a review from ldmonster as a code owner April 14, 2026 17:32
@kkozoriz kkozoriz changed the title [data] improve data error output [data] Improve error messages for empty PublicURL Apr 14, 2026
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