Documentation ¶
Index ¶
- func NewInClusterCheckContext() (checks.CheckContext, error)
- func NewOutOfClusterCheckContext(mgmtKubeConfig string, mgmtKubeContext string, gmInstallationNamespace string, ...) (checks.CheckContext, error)
- func NewTestCheckContext(client client.Client, gmInstallationNamespace string, ...) checks.CheckContext
- type InClusterCheckContext
- type OutOfClusterCheckContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInClusterCheckContext ¶
func NewInClusterCheckContext() (checks.CheckContext, error)
func NewOutOfClusterCheckContext ¶
func NewOutOfClusterCheckContext( mgmtKubeConfig string, mgmtKubeContext string, gmInstallationNamespace string, localPort, remotePort uint32, serverParams *checks.ServerParams, ignoreChecks bool, crdMd map[string]*crdutils.CRDMetadata, ) (checks.CheckContext, error)
func NewTestCheckContext ¶
func NewTestCheckContext( client client.Client, gmInstallationNamespace string, localPort, remotePort uint32, serverParams *checks.ServerParams, ignoreChecks bool, crdMd map[string]*crdutils.CRDMetadata, ) checks.CheckContext
exposed for testing, allows injecting mock k8s client
Types ¶
type InClusterCheckContext ¶
type InClusterCheckContext struct { checks.CommonContext // contains filtered or unexported fields }
func (*InClusterCheckContext) AccessAdminPort ¶
func (*InClusterCheckContext) CRDMetadata ¶
func (c *InClusterCheckContext) CRDMetadata(ctx context.Context, deploymentName string) (*crdutils.CRDMetadata, error)
func (*InClusterCheckContext) Context ¶
func (c *InClusterCheckContext) Context() checks.CommonContext
type OutOfClusterCheckContext ¶
type OutOfClusterCheckContext struct { checks.CommonContext // contains filtered or unexported fields }
func (*OutOfClusterCheckContext) AccessAdminPort ¶
func (*OutOfClusterCheckContext) CRDMetadata ¶
func (c *OutOfClusterCheckContext) CRDMetadata(ctx context.Context, deploymentName string) (*crdutils.CRDMetadata, error)
func (*OutOfClusterCheckContext) Context ¶
func (c *OutOfClusterCheckContext) Context() checks.CommonContext
Click to show internal directories.
Click to hide internal directories.