Skip to content

kubeclient: add ExecRetry to compensate transient failures#2511

Open
burgerdev wants to merge 1 commit into
mainfrom
burgerdev/exec-retry
Open

kubeclient: add ExecRetry to compensate transient failures#2511
burgerdev wants to merge 1 commit into
mainfrom
burgerdev/exec-retry

Conversation

@burgerdev

@burgerdev burgerdev commented Jul 7, 2026

Copy link
Copy Markdown
Member

Some commands passed to Exec, notably networked ones, may fail transiently. Adding a retry for each individual one would be a bit involved, hence we're adding a helper function ExecRetry to the kubeclient. The function is applied to all existing call sites of ExecContainer or Exec that

  • depend on a remote system
  • are not expected to fail

This should fix failures such as this one: https://github.com/edgelesssys/contrast/actions/runs/28822567861/job/85478255238#step:10:242.

@burgerdev burgerdev requested a review from davidweisse July 7, 2026 08:55
@burgerdev burgerdev added the no changelog PRs not listed in the release notes label Jul 7, 2026
Some commands passed to Exec, notably networked ones, may fail
transiently. Adding a retry for each individual one would be a bit
involved, hence we're adding a helper function ExecRetry to the
kubeclient. The function is applied to all existing call sites of
ExecContainer or Exec that

- depend on a remote system
- are not expected to fail
@burgerdev burgerdev force-pushed the burgerdev/exec-retry branch from 9352701 to 66788da Compare July 7, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog PRs not listed in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant