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

Context Refactor #397

Merged
merged 1 commit into from
Feb 19, 2021
Merged

Context Refactor #397

merged 1 commit into from
Feb 19, 2021

Conversation

alecmerdler
Copy link
Contributor

@alecmerdler alecmerdler commented Feb 17, 2021

Previously, we were passing context such as the OpenShift cluster hostname, OBC connection info, and other required data using the metadata.annotations on the QuayRegistry, then stripping out the annotations at the end of the reconcile loop. This was kind of a hack, but was done to maintain clean function interfaces without adding extra ad-hoc arguments.

This pull request refactors the usage of annotations on the QuayRegistry object to instead use a QuayRegistryContext, and pass that as the first argument to functions that rely on additional information.

Addresses https://issues.redhat.com/browse/PROJQUAY-1576

@alecmerdler alecmerdler changed the title Context Refactor [WIP] Context Refactor Feb 17, 2021
@alecmerdler alecmerdler force-pushed the context-refactor branch 3 times, most recently from f5e3253 to c27c8f0 Compare February 17, 2021 19:31
@alecmerdler alecmerdler changed the title [WIP] Context Refactor Context Refactor Feb 17, 2021
@alecmerdler alecmerdler force-pushed the context-refactor branch 2 times, most recently from a2306d7 to 6e4b3ed Compare February 17, 2021 20:52
@alecmerdler alecmerdler changed the title Context Refactor [WIP] Context Refactor Feb 17, 2021
@alecmerdler alecmerdler force-pushed the context-refactor branch 8 times, most recently from 8cec3ce to 34fcd3e Compare February 18, 2021 20:39
@alecmerdler alecmerdler changed the title [WIP] Context Refactor Context Refactor Feb 18, 2021
@alecmerdler alecmerdler force-pushed the context-refactor branch 4 times, most recently from 202383b to a237bc0 Compare February 19, 2021 07:19
@alecmerdler alecmerdler merged commit e2cdb6d into quay:master Feb 19, 2021
@alecmerdler alecmerdler deleted the context-refactor branch February 19, 2021 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

1 participant