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

remove ssh-add flag and fix calling appendKnownHelper when not needed #17039

Closed

Conversation

ComradeProgrammer
Copy link
Member

Related #16933 #15452

  1. appendKnownHelper should only be called when sshHost is true. appendKnownHelper should not be run when user is trying to connect to minikube's docker daemon with HTTP
  2. before feat: direct image build on containerd via docker-env #15452 , to run minikube docker-env with ssh connection, user have to manually start a ssh-agent, and use ssh-add flag. But in feat: direct image build on containerd via docker-env #15452 , we added a feature, which automatically help users to do these two things, and user don't need to specify ssh-add or start a ssh-agent. However, no automation for "docker runtime with ssh connection". This makes docker-env's behavior inconsistent
  3. so I think perhaps we should add this automation for "docker runtime with ssh connection" too. And if so, we no longer need ssh-add flag. As long as ssh-host is set, we will automatically do all these things for the user(start ssh-agent, run ssh-add). Continuing to use ssh-add flag will make things confusing.

@spowelljr @medyagh

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ComradeProgrammer
Once this PR has been reviewed and has the lgtm label, please assign afbjorklund for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 10, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @ComradeProgrammer. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 10, 2023
@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

cmd/minikube/cmd/docker-env.go Outdated Show resolved Hide resolved
cmd/minikube/cmd/docker-env.go Outdated Show resolved Hide resolved
Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

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

lets keep things backward campatible

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 17, 2023
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 30, 2023
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 30, 2023
cmd/minikube/cmd/docker-env.go Outdated Show resolved Hide resolved
cmd/minikube/cmd/docker-env.go Outdated Show resolved Hide resolved
@medyagh
Copy link
Member

medyagh commented Sep 11, 2023

lets go with most backward compatible approach

@ComradeProgrammer
Copy link
Member Author

@medyagh The comments have been solved. Maybe you can have a look at it now?

@medyagh
Copy link
Member

medyagh commented Sep 21, 2023

@afbjorklund whats your opinion on this PR

Copy link
Collaborator

@afbjorklund afbjorklund left a comment

Choose a reason for hiding this comment

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

Some typos.

Not sure it actually has to be deprecated, if it is truly not needed anymore than maybe it should just be removed from the documentation and made it into a no-op instead.

cmd/minikube/cmd/docker-env.go Outdated Show resolved Hide resolved
cmd/minikube/cmd/docker-env.go Outdated Show resolved Hide resolved
@afbjorklund
Copy link
Collaborator

But I never understood why we have to start a second ssh-agent anyway, usually it is started when you log in.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 2, 2023
@k8s-ci-robot
Copy link
Contributor

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.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 1, 2024
@ComradeProgrammer
Copy link
Member Author

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants