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

Replace ApplyResourceWithRetry with ApplyResource #752

Closed
wants to merge 0 commits into from

Conversation

cumirror
Copy link
Contributor

What type of PR is this?

Replace ApplyResourceWithRetry with ApplyResource

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #751

Special notes for your reviewer:

@cumirror cumirror requested a review from a team as a code owner October 18, 2023 13:08
@cumirror cumirror requested a review from dixudx October 18, 2023 13:08
@@ -605,6 +605,59 @@ func ApplyResourceWithRetry(ctx context.Context, dynamicClient dynamic.Interface
return lastError
}

func ApplyResource(ctx context.Context, dynamicClient dynamic.Interface, restMapper meta.RESTMapper,
Copy link
Member

Choose a reason for hiding this comment

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

ApplyResourceWithRetry is used only once. You can modify in-place, instead of having another function ApplyResource doing the same thing.

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.

Replace ApplyResourceWithRetry with ApplyResource
2 participants