Documentation ¶
Index ¶
- Constants
- Variables
- func CreateDriver(config *types.Config, clusterConfig *types.ClusterConfig) (driver.ClusterDriver, error)
- type ClusterApiDriver
- func (cad *ClusterApiDriver) Close() error
- func (Cad *ClusterApiDriver) DefaultCNIInterfaces() []string
- func (cad *ClusterApiDriver) Delete() error
- func (cad *ClusterApiDriver) GetKubeAPIServerAddress() string
- func (cad *ClusterApiDriver) GetKubeconfigPath() string
- func (cad *ClusterApiDriver) Join(kubeconfigPath string, controlPlaneNodes int, workerNodes int) error
- func (cad *ClusterApiDriver) PostInstallHelpStanza() string
- func (cad *ClusterApiDriver) PostStart() error
- func (cad *ClusterApiDriver) Stage(version string) (string, string, bool, error)
- func (cad *ClusterApiDriver) Start() (bool, bool, error)
- func (cad *ClusterApiDriver) Stop() error
- type OciImageData
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 ¶
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) Stop ¶
func (cad *ClusterApiDriver) Stop() error
Click to show internal directories.
Click to hide internal directories.