Skip to content

refactor: remove KfCluster functionality and related code #547

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

Merged
merged 1 commit into from
May 12, 2025
Merged

Conversation

uzaxirr
Copy link
Contributor

@uzaxirr uzaxirr commented May 9, 2025

No description provided.

@uzaxirr uzaxirr requested a review from Copilot May 9, 2025 15:50
@uzaxirr uzaxirr self-assigned this May 9, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes all KFCluster-related functionality and command registrations from the codebase. The key changes include:

  • Removing the KFCluster case from the SizeType function in utility/kubernetes.go
  • Removing the KFCluster command registration from cmd/root.go
  • Deleting the entire KFCluster command implementation files from the cmd/kfcluster directory

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

File Description
utility/kubernetes.go Removed the KFCluster size-case from the SizeType function
cmd/root.go Removed the KFCluster command import and registration
cmd/kfcluster/* Deleted all KFCluster-related command files (create, update, list, delete, size, and the package root)
Comments suppressed due to low confidence (3)

utility/kubernetes.go:297

  • Removal of the '.kf.' case from SizeType is intentional; please confirm that downstream code does not rely on receiving a 'KfCluster' value.
case strings.Contains(size, ".kf."):

cmd/root.go:13

  • The KFCluster command registration has been removed; ensure related documentation and migration guides are updated accordingly.
rootCmd.AddCommand(kfcluster.KFClusterCmd)

cmd/kfcluster/kfcluster.go:1

  • The complete removal of the kfcluster package files is consistent with the refactor; please verify that any dependent tests or configuration references have also been updated or removed.
// Package kfcluster is the root command for Civo KFCluster

@uzaxirr uzaxirr merged commit 4327e58 into master May 12, 2025
1 check 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