Documentation
¶
Overview ¶
Package installer contains the implementation of Kubernetes components installation and uninstallation for a given OS and Kubernetes version. All the components are packaged as an ImgPkg bundle hosted on OCI registries.
Index ¶
- Constants
- Variables
- func GetBundleName(normalizedOsVersion, k8sVersion string) string
- func ListSupportedK8s(os string) []string
- func ListSupportedOS() (osFilters, osBundles []string)
- func Main()
- func New(downloadPath string, logger logr.Logger) (*installer, error)
- func PreviewChanges(os, k8sVer string) (install, uninstall string, err error)
- type Error
Constants ¶
const ( ErrDetectOs = Error("Error detecting OS") ErrOsK8sNotSupported = Error("No k8s support for OS") ErrBundleDownload = Error("Error downloading bundle") ErrBundleExtract = Error("Error extracting bundle") ErrBundleInstall = Error("Error installing bundle") ErrBundleUninstall = Error("Error uninstalling bundle") )
Variables ¶
var (
DownloadPathPermissions fs.FileMode = 0777
)
Functions ¶
func GetBundleName ¶
GetBundleName returns the name of the bundle in normalized format.
func ListSupportedK8s ¶
ListSupportedK8s returns the list of supported k8s for a specific OS. Can be invoked on a non-supported OS
func ListSupportedOS ¶
func ListSupportedOS() (osFilters, osBundles []string)
ListSupportedOS returns the list of all supported OS-es. Can be invoked on a non-supported OS.
func New ¶
New returns an installer that downloads bundles for the current OS from OCI repository with address bundleRepo and stores them under downloadPath. Download path is created, if it does not exist.
func PreviewChanges ¶
PreviewChanges describes the changes to install and uninstall K8s on OS without actually applying them. It returns install and uninstall changes Can be invoked on a non-supported OS
Types ¶
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
internal
|
|
algo
Package algo contains the interal implementation of the actual steps required for installation and uninstallation of Kubernetes components.
|
Package algo contains the interal implementation of the actual steps required for installation and uninstallation of Kubernetes components. |