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

New Reconciler Extensions (based on context.Context information passing) #158

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mtesseract
Copy link
Contributor

@mtesseract mtesseract commented Mar 11, 2022

For comparison, this is essentially the same as #157 with the information passing being implemented on top of context.Context.

I tend to lean towards the way it is being done in #157, but since we had discussed it this way, I am opening this draft PR as well.
@varshaprasad96 @joelanford @misberner

…tors with customized reconciliation workflows.

Shows how pre/post hooks can be implemented in terms of extensions.

Signed-off-by: Moritz Clasmeier <moritz@stackrox.com>
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 11, 2022
// WithExtension is an Option that registers an extension into the reconciler.
// For example, extensions may be necessary when need arises to manage certain
// resources outsides of the standard Helm-based workflow.
func WithExtension(e extension.ReconcilerExtension) Option {
Copy link
Member

Choose a reason for hiding this comment

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

The same suggestion as here for the design of extensions and NoOpReconcilerExtension

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 23, 2022
@openshift-ci
Copy link

openshift-ci bot commented Mar 23, 2022

@mtesseract: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sdk area/testing do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants