Version: v1.1.4 Latest Latest

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 11 Imported by: 7



Package util implements kubeadm utility functionality.



This section is empty.


This section is empty.


This section is empty.


type ConfigOwner

type ConfigOwner struct {

ConfigOwner provides a data interface for different config owner types.

func GetConfigOwner

func GetConfigOwner(ctx context.Context, c client.Client, obj metav1.Object) (*ConfigOwner, error)

GetConfigOwner returns the Unstructured object owning the current resource.

func GetOwnerByRef

func GetOwnerByRef(ctx context.Context, c client.Client, ref *corev1.ObjectReference) (*ConfigOwner, error)

GetOwnerByRef finds and returns the owner by looking at the object reference.

func (ConfigOwner) ClusterName

func (co ConfigOwner) ClusterName() string

ClusterName extracts spec.clusterName from the config owner.

func (ConfigOwner) DataSecretName

func (co ConfigOwner) DataSecretName() *string

DataSecretName extracts spec.bootstrap.dataSecretName from the config owner.

func (ConfigOwner) IsControlPlaneMachine

func (co ConfigOwner) IsControlPlaneMachine() bool

IsControlPlaneMachine checks if an unstructured object is Machine with the control plane role.

func (ConfigOwner) IsInfrastructureReady

func (co ConfigOwner) IsInfrastructureReady() bool

IsInfrastructureReady extracts infrastructure status from the config owner.

func (ConfigOwner) IsMachinePool added in v0.3.12

func (co ConfigOwner) IsMachinePool() bool

IsMachinePool checks if an unstructured object is a MachinePool.

func (ConfigOwner) KubernetesVersion added in v0.3.15

func (co ConfigOwner) KubernetesVersion() string

KubernetesVersion returns the Kuberentes version for the config owner object.

Source Files

Jump to

Keyboard shortcuts

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