common

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package common contains utilities shared between the opnictl commands and the CLI logic that is not tied to any specific command.

Index

Constants

View Source
const (
	DefaultOpniNamespace                  = "opni-system"
	DefaultOpniDemoName                   = "opni-demo"
	DefaultOpniDemoNamespace              = "opni-demo"
	DefaultOpniDemoMinioAccessKey         = "minioadmin"
	DefaultOpniDemoMinioSecretKey         = "minioadmin"
	DefaultOpniDemoMinioVersion           = "8.0.10"
	DefaultOpniDemoNatsVersion            = "2.2.1"
	DefaultOpniDemoNatsPassword           = "password"
	DefaultOpniDemoNatsReplicas           = 3
	DefaultOpniDemoNatsMaxPayload         = 10485760
	DefaultOpniDemoNvidiaVersion          = "1.0.0-beta6"
	DefaultOpniDemoElasticUser            = "admin"
	DefaultOpniDemoElasticPassword        = "admin"
	DefaultOpniDemoNulogServiceCPURequest = "1"
	DefaultOpniDemoQuickstart             = false
)

Variables

View Source
var (
	TimeoutFlagValue         time.Duration
	NamespaceFlagValue       string
	ContextOverrideFlagValue string
	ExplicitPathFlagValue    string
	K8sClient                client.Client
	RestConfig               *rest.Config
	APIConfig                *api.Config
)

Log is a shared logger that can be used in all opnictl commands.

Functions

func GetClientOrDie added in v0.4.2

func GetClientOrDie(inCluster bool) client.Client

func LoadDefaultClientConfig

func LoadDefaultClientConfig()

func MaybeContextOverride

func MaybeContextOverride() []cliutil.ClientOption

MaybeContextOverride will return 0 or 1 ClientOptions, depending on if the user provided a specific kubectl context or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL