Documentation ¶
Index ¶
- type Client
- func (c *Client) GetJobLogs(ctx context.Context, name, namespace string) (string, error)
- func (c *Client) GetPodLogs(ctx context.Context, name, namespace string) (string, error)
- func (c *Client) HCPClusterHealthy(ctx context.Context, computeNodes int, timeout time.Duration) error
- func (c *Client) Impersonate(user string, groups ...string) (*Client, error)
- func (c *Client) OSDClusterHealthy(ctx context.Context, jobName, reportDir string, timeout time.Duration) error
- func (c *Client) UpgradeOperator(ctx context.Context, name, namespace string) error
- func (c *Client) WatchJob(ctx context.Context, namespace string, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewFromKubeconfig ¶
func NewFromRestConfig ¶
func (*Client) GetJobLogs ¶
GetJobLogs fetches the logs of a job's first container
func (*Client) GetPodLogs ¶
GetPodLogs fetches the logs of a pod's default container
func (*Client) HCPClusterHealthy ¶
func (c *Client) HCPClusterHealthy(ctx context.Context, computeNodes int, timeout time.Duration) error
HCPClusterHealthy waits for the cluster to be in a health "ready" state by confirming nodes are available
func (*Client) Impersonate ¶
Impersonate returns a copy of the client with a new ImpersonationConfig established on the underlying client, acting as the provided user
backplaneUser, _ := oc.Impersonate("test-user@redhat.com", "dedicated-admins")
func (*Client) OSDClusterHealthy ¶
func (c *Client) OSDClusterHealthy(ctx context.Context, jobName, reportDir string, timeout time.Duration) error
OSDClusterHealthy waits for the cluster to be in a healthy "ready" state by confirming the osd-ready-job finishes successfully
func (*Client) UpgradeOperator ¶
Click to show internal directories.
Click to hide internal directories.