Documentation ¶
Index ¶
- Constants
- func BuildSuggestedUpgradeCommand(binaryName string, mismatches []*versionutils.Version) string
- func CallParentPrerun(cmd *cobra.Command, args []string) error
- func EnableConsulClients(opts *options.Options) error
- func EnableVaultClients(vault options.Vault) error
- func HarmonizeDryRunAndOutputFormat(opts *options.Options, cmd *cobra.Command) error
- func ReportUsage(opts *options.Options, cmd *cobra.Command) error
- func SetKubeConfigEnv(opts *options.Options, cmd *cobra.Command) error
- func VersionMismatchWarning(opts *options.Options, cmd *cobra.Command) error
- func WarnOnMismatch(binaryName string, sv versioncmd.ServerVersion, logger Logger) error
- type ContainerVersion
- type Logger
Constants ¶
View Source
const (
ContainerNameToCheck = "discovery"
)
Variables ¶
This section is empty.
Functions ¶
func BuildSuggestedUpgradeCommand ¶ added in v0.21.2
func BuildSuggestedUpgradeCommand(binaryName string, mismatches []*versionutils.Version) string
visible for testing
func CallParentPrerun ¶
the purpose of this function is to manually run PersistenPreRunE of parent CLI commands. this allows PersistenPreRunE to be defined on multiple nodes in the command tree
func EnableConsulClients ¶
func EnableVaultClients ¶
func HarmonizeDryRunAndOutputFormat ¶ added in v0.18.42
func ReportUsage ¶ added in v1.0.0
func SetKubeConfigEnv ¶ added in v0.18.43
func VersionMismatchWarning ¶ added in v0.21.2
func WarnOnMismatch ¶ added in v0.21.2
func WarnOnMismatch(binaryName string, sv versioncmd.ServerVersion, logger Logger) error
visible for testing
Types ¶
type ContainerVersion ¶ added in v0.21.2
type ContainerVersion struct { ContainerName string Version *versionutils.Version }
Click to show internal directories.
Click to hide internal directories.