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: Check if vcluster is reachable with the additional flags provided as input in vcluster connect command #2408

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kale-amruta
Copy link

@kale-amruta kale-amruta commented Jan 17, 2025

What issue type does this pull request address? (keep at least one, remove the others)
/kind bugfix

What does this pull request do? Which issues does it resolve? (use resolves #<issue_number> if possible)
resolves #2383

Please provide a short message that should be published in the vcluster release notes
Fixed an issue where vcluster connect command was giving positive result even when vcluster is not exposed on the endpoint provided in server flag

What else do we need to know?
With this PR, the vcluster connect command will perform an additional check of verifying the vcluster is accessible with the additional flags that are provided in the command. This is done by checking if we are able to list the default service account is in the vcluster.
eg: vcluster connect --server will verify if vcluster is accessible from the endpoint specified in --server flag

Copy link

netlify bot commented Jan 17, 2025

Deploy Preview for vcluster-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit eb9e6aa
🔍 Latest deploy log https://app.netlify.com/sites/vcluster-docs/deploys/6798960302f9f000083f861a
😎 Deploy Preview https://deploy-preview-2408--vcluster-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kale-amruta kale-amruta changed the title add logic in connect command to check if vcluster can be connected us… Check if vcluster can be connected with the additional flags provided as input in vcluster connect command Jan 17, 2025
@kale-amruta kale-amruta marked this pull request as ready for review January 17, 2025 08:23
@kale-amruta kale-amruta changed the title Check if vcluster can be connected with the additional flags provided as input in vcluster connect command fix: Check if vcluster can be connected with the additional flags provided as input in vcluster connect command Jan 17, 2025
@kale-amruta kale-amruta changed the title fix: Check if vcluster can be connected with the additional flags provided as input in vcluster connect command fix: Check if vcluster is reachable with the additional flags provided as input in vcluster connect command Jan 27, 2025
pkg/cli/connect_helm.go Outdated Show resolved Hide resolved
pkg/cli/connect_helm.go Show resolved Hide resolved
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.

vCluster connect fails silently when connecting with --server flag
2 participants