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

[Merged by Bors] - Add Deployment controller for managed connectors #1499

Closed
wants to merge 47 commits into from

Conversation

simlay
Copy link
Contributor

@simlay simlay commented Aug 25, 2021

Closes #1648.

@simlay simlay changed the title Add spec for connectors Add spec/controller/etc for managed connectors Aug 30, 2021
@simlay simlay marked this pull request as ready for review September 28, 2021 12:58
@simlay simlay requested review from sehz and nacardin September 28, 2021 12:58
fn convert_from_k8(
k8_obj: K8Obj<Self::K8Spec>,
) -> Result<MetadataStoreObject<Self, K8MetaItem>, K8ConvertError<Self::K8Spec>> {
default_convert_from_k8(k8_obj)
Copy link
Contributor

Choose a reason for hiding this comment

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

if this is custom spec that derives from DeploymentSpec, shouldn't this filter only deployment spec? This will map all deployment as ManagedConnector

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nick and I played around with making it a more generic deployment spec but decided it was more work than it was work so we went with a similar pattern to the SpgStatefulSetController.

Copy link
Contributor

Choose a reason for hiding this comment

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

How does it know to separate from SC deployment? For example, if SC gets restart, this will trigger ManagedConnector Controller and generate connector deployment

@simlay simlay requested a review from sehz September 30, 2021 14:59
crates/fluvio-connector/src/cli/create.rs Outdated Show resolved Hide resolved
fn convert_from_k8(
k8_obj: K8Obj<Self::K8Spec>,
) -> Result<MetadataStoreObject<Self, K8MetaItem>, K8ConvertError<Self::K8Spec>> {
default_convert_from_k8(k8_obj)
Copy link
Contributor

Choose a reason for hiding this comment

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

How does it know to separate from SC deployment? For example, if SC gets restart, this will trigger ManagedConnector Controller and generate connector deployment

@simlay simlay requested a review from sehz September 30, 2021 16:48
@sehz
Copy link
Contributor

sehz commented Sep 30, 2021

and need to be rebased

Copy link
Contributor

@sehz sehz left a comment

Choose a reason for hiding this comment

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

LGTM. Good job!

@simlay
Copy link
Contributor Author

simlay commented Sep 30, 2021

bors r+

bors bot pushed a commit that referenced this pull request Sep 30, 2021
Closes #1648.

Co-authored-by: Nick Cardin <nick@cardin.email>
@bors
Copy link

bors bot commented Sep 30, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title Add Deployment controller for managed connectors [Merged by Bors] - Add Deployment controller for managed connectors Sep 30, 2021
@bors bors bot closed this Sep 30, 2021
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.

Add controller for Managed Connector
3 participants