Documentation ¶
Index ¶
- Constants
- func NewEnterpriseRegistrationCheck() *enterpriseRegistrationCheck
- func NewServerParametersCheck() *parameterCheck
- func RunChecks(ctx context.Context, checkCtx CheckContext, c Component, st Stage) bool
- type Category
- type Check
- type CheckContext
- type CommonContext
- type Component
- type Environment
- type Hint
- type OperateOnAdminPort
- type Result
- type ServerParams
- type Stage
Constants ¶
View Source
const ( PreInstall Stage = "pre-install" PostInstall = "post-install" PreUpgrade = "pre-upgrade" PostUpgrade = "post-upgrade" // Test includes all post-install checks, and may include more checks that are make sure // that all is well with the system (for example, run some pre-install checks to verify the // environment is still OK). Test = "test" )
Variables ¶
This section is empty.
Functions ¶
func NewEnterpriseRegistrationCheck ¶
func NewEnterpriseRegistrationCheck() *enterpriseRegistrationCheck
func NewServerParametersCheck ¶
func NewServerParametersCheck() *parameterCheck
Types ¶
type Check ¶
type Check interface { // description of what is being checked GetDescription() string // Execute the check, pass in the namespace that Gloo Mesh is installed in Run(ctx context.Context, checkCtx CheckContext) *Result }
func NewCrdUpgradeCheck ¶
func NewDeploymentsCheck ¶
func NewDeploymentsCheck() Check
func NewNetworkingCrdCheck ¶
func NewNetworkingCrdCheck() Check
type CheckContext ¶
type CheckContext interface { Environment() Environment Client() client.Client AccessAdminPort(ctx context.Context, deployment string, op OperateOnAdminPort) (error, string) Context() CommonContext CRDMetadata(ctx context.Context, deploymentName string) (*crdutils.CRDMetadata, error) }
type CommonContext ¶
type CommonContext struct { // if true, skip checks SkipChecks bool Env Environment Cli client.Client // server install or upgrade parameters ServerParams *ServerParams }
func (*CommonContext) Client ¶
func (c *CommonContext) Client() client.Client
func (*CommonContext) Environment ¶
func (c *CommonContext) Environment() Environment
type Environment ¶
type OperateOnAdminPort ¶
type Result ¶
type Result struct { // user-facing error message describing failed check Errors []error // an optional suggestion for a next action for the user to take for resolving a failed check or warning Hints []Hint }
type ServerParams ¶
type ServerParams struct {
RelayServerAddress string
}
Click to show internal directories.
Click to hide internal directories.