Skip to content

[FEAT cloudctl] - Support Dry-Run mode for sync command #51

@onuryilmaz

Description

@onuryilmaz

[FEAT cloudctl] - Support Dry-Run mode for sync command

Labels

  • feature
  • safety
  • easy-to-use

Priority

(Medium) I'm annoyed but I'll live

User Story

As a cloudctl user, I can run sync --dry-run to see what changes would be made to my local kubeconfig, so that I don't accidentally overwrite important configurations.

Description

The sync command directly modifies the local kubeconfig. A dry-run mode that prints a diff of the changes (clusters added/removed, contexts updated) would greatly increase user confidence and safety.

Acceptance Criteria

  • Add a --dry-run flag to the sync command.
  • When enabled, do not write to the kubeconfig file.
  • Output a summary of proposed changes (e.g., "Would add context: context-a", "Would update cluster: cluster-b").
  • Optionally, use hack/compare_kubeconfigs.go logic to show a diff.

Reference Issues

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    easy-to-useImprovements to User Experience (UX), CLI ergonomics, and simplicityfeatureNew functional capabilities or significant additions to the CLI.safetyFeatures aimed at preventing accidental data loss or misconfiguration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions