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

[gpctl] Talk to ws-manager hosts directly #4788

Merged
merged 1 commit into from
Jul 13, 2021
Merged

[gpctl] Talk to ws-manager hosts directly #4788

merged 1 commit into from
Jul 13, 2021

Conversation

csweichel
Copy link
Contributor

This PR enables gpctl workspaces to talk to a ws-manager host directly without assuming a correct kubeconfig.

@csweichel csweichel requested review from a team, rl-gitpod and princerachit and removed request for a team July 13, 2021 07:39
secopt := grpc.WithInsecure()
if certFromSecret, _ := workspacesCmd.Flags().GetBool("tls-from-secret"); certFromSecret {
certPool, err := util.CertPoolFromSecret(clientSet, namespace, "ws-manager-tls", []string{"ca.crt"})
if fn, _ := workspacesCmd.Flags().GetString("tls-path"); fn != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: having this as another function will reduce loc in this funtion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would indeed. We've reached a point where we should pull something like this into common-go anyways

@csweichel csweichel merged commit cb3a4d1 into main Jul 13, 2021
@csweichel csweichel deleted the cw/gpctl-host branch July 13, 2021 10:01
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