Skip to content

Add the "project" column for vcluster list command when driver flag is set to platform #2777

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

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

Conversation

ApsTomar
Copy link
Contributor

@ApsTomar ApsTomar commented May 12, 2025

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

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

Please provide a short message that should be published in the vcluster release notes
Fixed an issue where vcluster list will now have project column as well in the output in case driver flag is set to platform

What else do we need to know?
I've separated out the print functions for both drivers (helm and platform). The reason for doing that is- this change would add more if-else blocks within already existing if-else scenarios and would inhibit the readability. Now both the print methods are placed in the respective files i.e. no cross-file function calling.

Test Artifacts:

Tabular Output:
image

JSON Output:
image

Without --driver platform, the result is as usual:
image

@ApsTomar ApsTomar requested a review from a team as a code owner May 12, 2025 14:34
@ApsTomar ApsTomar marked this pull request as draft May 12, 2025 14:34
@ApsTomar ApsTomar force-pushed the add-project-in-list-result branch from 2668ec6 to 4cdd1d0 Compare May 13, 2025 13:06
@ApsTomar ApsTomar force-pushed the add-project-in-list-result branch from 4cdd1d0 to bef307b Compare May 13, 2025 13:17
@ApsTomar ApsTomar marked this pull request as ready for review May 14, 2025 04:31
@cbron cbron requested review from nprokopic and removed request for a team May 16, 2025 13:42
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.

1 participant