Documentation ¶
Index ¶
Constants ¶
View Source
const KubectlFbReleaseURL = "https://api.github.com/repos/FoundationDB/fdb-kubernetes-operator/releases/latest"
KubectlFbReleaseURL is the public GitHub URL we read the latest version from
View Source
const LocalTempVersionFileName = "kubectl-fdb-version.txt"
LocalTempVersionFileName is where we cache plugin version for 24 hours, so we don't call GitHub for every single command(also rate-limit issue on GitHub api calls)
Variables ¶
This section is empty.
Functions ¶
func NewRootCmd ¶ added in v0.26.0
func NewRootCmd(streams genericclioptions.IOStreams, pluginVersionChecker VersionChecker) *cobra.Command
NewRootCmd provides a cobra command wrapping FDB actions
Types ¶
type PluginVersionDetails ¶ added in v1.29.0
type PluginVersionDetails struct { ID int64 `json:"id"` Version string `json:"tag_name"` Name string `json:"name"` }
PluginVersionDetails Contains [partial] plugin version details from GitHub
type RealVersionChecker ¶ added in v1.29.0
type RealVersionChecker struct{}
RealVersionChecker will do actual call to GitHub API to get version
type VersionChecker ¶ added in v1.29.0
type VersionChecker interface {
// contains filtered or unexported methods
}
VersionChecker interface to help us mock test the version checker
Source Files ¶
- analyze.go
- buggify.go
- buggify_crash_loop.go
- buggify_empty_monitor_conf.go
- buggify_no_schedule.go
- configuration.go
- cordon.go
- deprecation.go
- exclusion_status.go
- exec.go
- fix_coordinator_ips.go
- get.go
- k8s_client.go
- plugin_version_checker.go
- recover_multi_region_cluster.go
- remove.go
- remove_process_group.go
- restart.go
- root.go
- version.go
Click to show internal directories.
Click to hide internal directories.