Documentation ¶
Index ¶
- Constants
- Variables
- func BuildSuggestedUpgradeCommand(binaryName string, mismatches []*versionutils.Version) string
- func CallParentPrerun(cmd *cobra.Command, args []string) error
- func EnableConsulClients(opts *options.Options) error
- func EnableVaultClients(ctx context.Context, vault options.Vault) error
- func GetOpenSourceVersions(podVersions []*versiondiscovery.ServerVersion) (versions []*versionutils.Version, err error)
- func HarmonizeDryRunAndOutputFormat(opts *options.Options, cmd *cobra.Command) error
- func SetKubeConfigEnv(opts *options.Options, cmd *cobra.Command) error
- func SetPodNamespaceEnv(opts *options.Options, cmd *cobra.Command) error
- func VersionMismatchWarning(opts *options.Options, cmd *cobra.Command) error
- func WarnOnMismatch(ctx context.Context, binaryName string, sv versioncmd.ServerVersion, ...) error
- type ContainerVersion
- type Logger
Constants ¶
View Source
const ( // If the gateway pod is present use the image tag on that to get the gloo server version // Otherwise, look for the annotation on the gloo pod ContainerNameToCheckTag = "gateway" )
Variables ¶
View Source
var ( ContainerNamesToCheckAnnotation = map[string]bool{ "gloo": true, "gloo-ee": true, } )
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 GetOpenSourceVersions ¶ added in v1.12.14
func GetOpenSourceVersions(podVersions []*versiondiscovery.ServerVersion) (versions []*versionutils.Version, err error)
return an array of open source gloo versions found in the cluster this is determined by looking at either the version of gateway (if the pod is present) or the annotation in the gloo pod.
func HarmonizeDryRunAndOutputFormat ¶ added in v0.18.42
func SetKubeConfigEnv ¶ added in v0.18.43
func SetPodNamespaceEnv ¶ added in v1.9.0
func VersionMismatchWarning ¶ added in v0.21.2
func WarnOnMismatch ¶ added in v0.21.2
func WarnOnMismatch(ctx context.Context, 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.