capi

package
v0.0.0-...-9fc8b42 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: UPL-1.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriverName       = "oci"
	ClusterNameLabel = "cluster.x-k8s.io/cluster-name"

	OciCcmChart         = "oci-ccm"
	OciCcmNamespace     = "kube-system"
	OciCcmRelease       = "oci-ccm"
	OciCcmVersion       = "1.28.0"
	OciCcmSecretName    = "oci-cloud-controller-manager"
	OciCcmCsiSecretName = "oci-volume-provisioner"
)

Variables

View Source
var MachineTemplateImageId []string = []string{"spec", "template", "spec", "imageId"}

These should be treated as constants

View Source
var MachineTemplateShape []string = []string{"spec", "template", "spec", "shape"}

Functions

func CreateDriver

func CreateDriver(config *types.Config, clusterConfig *types.ClusterConfig) (driver.ClusterDriver, error)

Types

type ClusterApiDriver

type ClusterApiDriver struct {
	Ephemeral           bool
	BootstrapKubeConfig string
	KubeConfig          string
	Config              *types.Config
	ClusterConfig       *types.ClusterConfig
	ClusterResources    string
	ResourceNamespace   string
	FromTemplate        bool
	Deleted             bool
}

func (*ClusterApiDriver) Close

func (cad *ClusterApiDriver) Close() error

func (*ClusterApiDriver) DefaultCNIInterfaces

func (Cad *ClusterApiDriver) DefaultCNIInterfaces() []string

func (*ClusterApiDriver) Delete

func (cad *ClusterApiDriver) Delete() error

func (*ClusterApiDriver) GetKubeAPIServerAddress

func (cad *ClusterApiDriver) GetKubeAPIServerAddress() string

func (*ClusterApiDriver) GetKubeconfigPath

func (cad *ClusterApiDriver) GetKubeconfigPath() string

func (*ClusterApiDriver) Join

func (cad *ClusterApiDriver) Join(kubeconfigPath string, controlPlaneNodes int, workerNodes int) error

func (*ClusterApiDriver) PostInstallHelpStanza

func (cad *ClusterApiDriver) PostInstallHelpStanza() string

func (*ClusterApiDriver) PostStart

func (cad *ClusterApiDriver) PostStart() error

func (*ClusterApiDriver) Stage

func (cad *ClusterApiDriver) Stage(version string) (string, string, bool, error)

Stage looks at the resources for an OCI CAPI cluster and generates as much of the material necessary to update a cluster from one version to another. This typically includes uploading new OCI custom images if necessary, getting the OCIDs of the latest OCI custom images, and then creating new OCIMachineTemplates that use them. Finally, some instructions are printed that tell a user how to apply the staged update to their cluster.

func (*ClusterApiDriver) Start

func (cad *ClusterApiDriver) Start() (bool, bool, error)

func (*ClusterApiDriver) Stop

func (cad *ClusterApiDriver) Stop() error

type OciImageData

type OciImageData struct {
	Image            *core.Image
	HasUpdate        bool
	Arch             string
	NewId            string
	WorkRequestId    string
	MachineTemplates []*capi.GraphNode
}

Jump to

Keyboard shortcuts

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