create

package
v0.0.0-...-0e2c39a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: UPL-1.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OciDhcpScriptPath = "oci.sh"
	OciDhcpScript     = `` /* 775-byte string literal not displayed */

	// This script actually gathers and sets the networking configuration.
	// It is lifted verbatim from a vanilla OL8 instance.
	OciDhclientScriptPath = "oci-dhclient.sh"
	OciDhclientScript     = `` /* 18681-byte string literal not displayed */

	// OCI requires custom scripting to set the hostname, as well
	// set other networking parameters.  These are gathered from
	// the instance metadata.
	//
	// Note: this is lifted verbatim from a regular OL instance.
	//  dhclientPath = "/etc/NetworkManager/dispatcher.d/11-dhclient"
	OciDhclientPath = "11-dhclient"
	OciDhclient     = `` /* 964-byte string literal not displayed */

)
View Source
const ProviderTypeOCI = "oci"
View Source
const ProviderTypeOstree = "ostree"

Variables

This section is empty.

Functions

func Create

func Create(startConfig *otypes.Config, clusterConfig *otypes.ClusterConfig, options CreateOptions) error

Create creates a qcow2 image for the specified provider type

func DefaultImagePath

func DefaultImagePath(providerID string, kubeVersion string, arch string) (string, error)

Types

type CreateOptions

type CreateOptions struct {
	// IgnitionProvider is the provider type for ignition
	IgnitionProvider string

	// KernelArguments is any extra kernel command line arguments to append
	KernelArguments string

	// ProviderConfigPath is the path for the provider config (e.g ~/.oci/config)
	ProviderConfigPath string

	// ProviderType is the provider type (e.g. oci)
	ProviderType string

	// Architecture of the image to create ("amd64", "arm64")
	Architecture string

	// Destination
	Destination string
}

CreateOptions are the options for the create image command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL