Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigOwner ¶
type ConfigOwner struct {
*unstructured.Unstructured
}
ConfigOwner provides a data interface for different config owner types.
func GetConfigOwner ¶
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.
Click to show internal directories.
Click to hide internal directories.