Documentation ¶
Index ¶
- Constants
- func NewAgentParametersCheck() *parameterCheck
- func NewEnterpriseRegistrationCheck() *enterpriseRegistrationCheck
- func NewRelayConnectivityCheck(preinstall bool) *relayConnectivityCheck
- func RunChecks(ctx context.Context, checkCtx CheckContext, c Component, st Stage) bool
- type AgentParams
- type Category
- type Check
- type CheckContext
- type CommonContext
- type Component
- type Environment
- type Hint
- type OperateOnAdminPort
- type RelayDialer
- type Result
- type Stage
Constants ¶
View Source
const ( PreInstall Stage = "pre-install" PostInstall = "post-install" PreUpgrade = "pre-upgrade" PostUpgrade = "post-upgrade" )
Variables ¶
This section is empty.
Functions ¶
func NewAgentParametersCheck ¶
func NewAgentParametersCheck() *parameterCheck
func NewEnterpriseRegistrationCheck ¶
func NewEnterpriseRegistrationCheck() *enterpriseRegistrationCheck
func NewRelayConnectivityCheck ¶
func NewRelayConnectivityCheck( preinstall bool, ) *relayConnectivityCheck
Types ¶
type AgentParams ¶
type AgentParams struct { RelayServerAddress string RelayAuthority string Insecure bool RootCertSecretRef client.ObjectKey ClientCertSecretRef client.ObjectKey }
agent install/upgrade parameters
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 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 RelayDialer RelayDialer AgentParams *AgentParams CrdMetadata map[string]*crdutils.CRDMetadata // k8s clients AppsClientset appsv1.Clientset CoreClientset corev1.Clientset NetworkingClientset networkingv1.Clientset KubernetesClusterClient skv2multiclusterv1alpha1.KubernetesClusterClient CrdClient apiextv1beta1.CustomResourceDefinitionClient }
func (*CommonContext) Environment ¶
func (c *CommonContext) Environment() Environment
type Environment ¶
type OperateOnAdminPort ¶
type RelayDialer ¶
type RelayDialer interface { DialIdentity( ctx context.Context, relayServerDialOpts grpcutils.DialOpts, secretClient v1.SecretClient, rootCertSecretRef client.ObjectKey, ) error DialServer( ctx context.Context, relayServerDialOpts grpcutils.DialOpts, ) error }
func NewRelayDialer ¶
func NewRelayDialer() RelayDialer
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 }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock_checks is a generated GoMock package.
|
Package mock_checks is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.