Skip to content

reevaluate APIs in cli for healthcheck / k8s client / public api client #2735

@siggy

Description

@siggy

Background

The CLI's code for running healthchecks, creating k8s clients, and public API clients has evolved organically. Much of it currently lives in:

Proposal

Reevaluate the underlying APIs provided to the CLI, with these basic use cases:

  • Consolidate k8s APIs #2747 create a k8s client (maybe strictly a clientset, consider deprecating KubernetesAPI?)
  • create a public API client
  • run some arbitrary set of healthchecks
  • use cobra.SilenceUsage, so we can return errors from RunE, rather than calling os.Exit(1) as we do in
    func exitIfClusterExists() {
  • move public_api.go out of ./cli/cmd, since it's not really a command

motivated by: #2719 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions