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

fix: deprecate ConnectServices, remove calls to it #1853

Closed
wants to merge 1 commit into from

Conversation

omar711
Copy link
Contributor

@omar711 omar711 commented Nov 27, 2023

Description:

We won't end up using ConnectServices so I'm removing the call to it first of all.

Once this calling code is no longer running out there, we can drop the protobuf definition and linked code. Doing it all at once will probably break things post-upgrade, where people have pre-existing APICs running.

Is this change user facing?

NO

References (if applicable):

@omar711 omar711 enabled auto-merge November 27, 2023 14:48
@omar711 omar711 changed the title Remove usage of Connect Services / use the noConnet flag directly fix: deprecate ConnectServices, remove calls to it Nov 27, 2023
@omar711 omar711 requested a review from laurentluce November 27, 2023 15:07
@@ -429,6 +429,7 @@ func (enclaveCtx *EnclaveContext) GetAllFilesArtifactNamesAndUuids(ctx context.C
}

// Docs available at https://docs.kurtosis.com/sdk#connectservices
// Deprecated: currently a no-op that we're removing
Copy link
Contributor

Choose a reason for hiding this comment

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

It is a no-op for Docker Cloud but not for the remote K8S use case where this call is relied on in the CLI Gateway.

@omar711
Copy link
Contributor Author

omar711 commented Nov 27, 2023

Closing this for now, will wait for Gateway's removal first.

The reason we can't do this right away is

func (service *ApiContainerGatewayServiceServer) ConnectServices(ctx context.Context, args *kurtosis_core_rpc_api_bindings.ConnectServicesArgs) (*kurtosis_core_rpc_api_bindings.ConnectServicesResponse, error) {
, which is where a flag is set that tells Gateway to restore connections and clean up obsolete ones, whenever calls are made to GetServices.

@omar711 omar711 closed this Nov 27, 2023
auto-merge was automatically disabled November 27, 2023 20:48

Pull request was closed

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.

2 participants