-
Notifications
You must be signed in to change notification settings - Fork 1
[FEAT cloudctl] - Simplify sync command with persisted Greenhouse connection config #79
Copy link
Copy link
Open
Labels
easy-to-useImprovements to User Experience (UX), CLI ergonomics, and simplicityImprovements to User Experience (UX), CLI ergonomics, and simplicityfeatureNew functional capabilities or significant additions to the CLI.New functional capabilities or significant additions to the CLI.good first issueGood for newcomersGood for newcomerskubeconfigSpecifically related to kubeconfig parsing, merging, or managementSpecifically related to kubeconfig parsing, merging, or managementneeds-refinementNeeds scoping before implementationNeeds scoping before implementation
Description
Activity
Metadata
Metadata
Assignees
Labels
easy-to-useImprovements to User Experience (UX), CLI ergonomics, and simplicityImprovements to User Experience (UX), CLI ergonomics, and simplicityfeatureNew functional capabilities or significant additions to the CLI.New functional capabilities or significant additions to the CLI.good first issueGood for newcomersGood for newcomerskubeconfigSpecifically related to kubeconfig parsing, merging, or managementSpecifically related to kubeconfig parsing, merging, or managementneeds-refinementNeeds scoping before implementationNeeds scoping before implementation
Type
Projects
- StatusShow more project fieldsSprint Backlog
User Story
Description
The current
synccommand requires at minimum--greenhouse-cluster-namespaceon every invocation, and in practice users also need--greenhouse-cluster-contextand sometimes--greenhouse-cluster-kubeconfigwhen the Greenhouse cluster is just one context among many in their default kubeconfig. This makes the command too verbose for daily use.Current typical real-world invocation:
These values are stable per user and should only need to be provided once. The fix is to persist them via cloudctl config (the profile mechanism from the set/env issue) so that
cloudctl syncwith no flags works after a one-time setup. Additionally,--kubelogin-pathshould default to the version-pinned kubelogin binary managed by cloudctl (once the logon issue lands) rather than requiringkubeloginto be on$PATH.Acceptance Criteria
--greenhouse-cluster-namespace,--greenhouse-cluster-context,--greenhouse-cluster-kubeconfigcan be persisted to cloudctl config and used as defaults bysync--kubelogin-pathdefaults to the cloudctl-managed version-pinned kubelogin binary when available, falling back tokubeloginon$PATHcloudctl syncwith no flags and a valid persisted config produces the same result as the full flag invocationReference Issues
Epic: #70