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

chore(cli/config): unify config and make location configurable #1798

Merged
merged 3 commits into from
May 27, 2024

Conversation

johannesfrey
Copy link
Contributor

@johannesfrey johannesfrey commented May 24, 2024

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)
Part of ENG-3722

Please provide a short message that should be published in the vcluster release notes
Fixed an issue where vcluster would create multiple config files in multiple places.

What else do we need to know?

  • consolidates vcluster CLI and platform config and adds manager to the config
  • introduces global, configurable --config flag

Updated the loft deps (not latest, though) to incorporate: https://github.com/loft-sh/loft-enterprise/commit/bd4285e840c1c3d4157265a71e72daaae6f12c51
Therefore, many changed files are actual changes in vendor, which don't need to be reviewed.
Some deps to loftctl have already been removed, but there are many left. Those will be cleaned up in follow-up PRs.

Copy link

netlify bot commented May 24, 2024

Deploy Preview for vcluster-docs canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit b654616
🔍 Latest deploy log https://app.netlify.com/sites/vcluster-docs/deploys/66542d874ceef8000827692f

)

type LoginOptions struct {
Manager string
const PlatformURL = "VCLUSTER_PLATFORM_URL"
Copy link
Contributor Author

@johannesfrey johannesfrey May 24, 2024

Choose a reason for hiding this comment

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

Wasn't sure about this?! Adapted the behaviour from here

@johannesfrey johannesfrey force-pushed the vclusterctl-config branch 7 times, most recently from b37be26 to da57071 Compare May 24, 2024 15:36
@johannesfrey johannesfrey marked this pull request as ready for review May 24, 2024 16:41
Copy link
Member

@FabianKramm FabianKramm left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @johannesfrey!

@FabianKramm FabianKramm merged commit 837f9f1 into loft-sh:main May 27, 2024
72 checks passed
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