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

Extract generic form of resource force-refresh logic #229

Merged

Conversation

jinnovation
Copy link
Collaborator

Relates to #69.

This PR extracts the core of the resource-specific
kubernetes-<resource>-refresh-now functions into the resource-generic
kubernetes-state--refresh-now function. This function represents the "core" of
the function template used to generate the resource-specific force-refresh
functions.

This PR leaves the resource-specific refresh-now functions in place,
re-implementing them as wrappers around the new resource-generic version. The
resource-specific functions have test coverage, which provides a vote of
confidence as to the safety of this change. We'll leave sunsetting of the
resource-specific functions' use to subsequent PRs.

Relates to kubernetes-el#69.

This PR extracts the core of the resource-specific
`kubernetes-<resource>-refresh-now` functions into the resource-generic
`kubernetes-state--refresh-now` function. This function represents the "core" of
the function template used to generate the resource-specific force-refresh
functions.

This PR leaves the resource-specific refresh-now functions in place,
re-implementing them as wrappers around the new resource-generic version. The
resource-specific functions have test coverage, which provides a vote of
confidence as to the safety of this change. We'll leave sunsetting of the
resource-specific functions' use to subsequent PRs.
Copy link
Collaborator

@noorul noorul left a comment

Choose a reason for hiding this comment

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

LGTM

@jinnovation jinnovation merged commit 79c5d1e into kubernetes-el:master Dec 2, 2021
@jinnovation jinnovation deleted the jjin/refresh-now-genericize branch December 2, 2021 06:23
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.

None yet

2 participants