Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting a custom timeout for k8s commands #25

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

danegsta
Copy link
Member

@danegsta danegsta commented Oct 2, 2023

Rather than a maximum number of retries, use a maximum retry duration (and allow overriding for a given client) to let us increase the timeout on our initial connection after launching DCP.

private static GroupVersion GroupVersion => Model.Dcp.GroupVersion;

private IKubernetes? _kubernetes;
private TimeSpan _maxRetryDuration = TimeSpan.FromMilliseconds(1000);
Copy link
Member Author

Choose a reason for hiding this comment

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

This will technically slightly increase the default command timeout; we may want to consider a smaller number.

@karolz-ms karolz-ms merged commit 58f473e into main Oct 2, 2023
4 checks passed
@karolz-ms karolz-ms deleted the danegsta/increasetimeout branch October 2, 2023 20:00
@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants