Documentation
¶
Index ¶
- type Checker
- type CheckerCmdOptions
- type Installer
- func (remote *Installer) Cleanup() error
- func (remote *Installer) Init() error
- func (remote *Installer) InstallByContainerOptimizedOS() error
- func (remote *Installer) InstallByPackageManager() (string, error)
- func (remote *Installer) NewDaemonSetForPackageManager() *appsv1.DaemonSet
- func (remote *Installer) Run() (string, error)
- type InstallerCmdOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
CheckerCmdOptions
// contains filtered or unexported fields
}
Checker provide functions for the preflight check.
type CheckerCmdOptions ¶
type CheckerCmdOptions struct {
types.GlobalCmdOptions
EnableSpdk bool
HugePageSize int
UserspaceDriver string
}
CheckerCmdOptions holds the options for the command.
type Installer ¶
type Installer struct {
InstallerCmdOptions
// contains filtered or unexported fields
}
Installer provide functions for the preflight install.
func (*Installer) Cleanup ¶
Cleanup deletes the DaemonSet created for the preflight install when it's installed with package manager.
func (*Installer) InstallByContainerOptimizedOS ¶
InstallByContainerOptimizedOS installs the dependencies on Container Optimized OS. It creates a ConfigMap and a DaemonSet. Then it waits for the DaemonSet to be ready.
func (*Installer) InstallByPackageManager ¶
InstallByPackageManager installs the dependencies with package manager. It creates a DaemonSet. Then it waits for the DaemonSet to complete and return the logs of output container within the DaemonSet, for example: ip-192-168-208-117:
info: - Successfully installed package nfs-client - Successfully installed package open-iscsi - Successfully installed package cryptsetup - Successfully probed module nfs - Successfully probed module iscsi_tcp - Successfully probed module dm_crypt - Successfully started service iscsid
func (*Installer) NewDaemonSetForPackageManager ¶
NewDaemonSetForPackageManager prepares a DaemonSet for installing dependencies with the package manager.