Documentation ¶
Index ¶
- func GetNamespacedName(o metav1.Object) types.NamespacedName
- type Cluster
- func (g *Cluster) AddFinalizer(ctx context.Context, capiCluster *capi.Cluster, finalizer string) error
- func (g *Cluster) ContainsFinalizer(capiCluster *capi.Cluster, finalizer string) bool
- func (g *Cluster) Get(ctx context.Context, namespacedName types.NamespacedName) (*capi.Cluster, error)
- func (g *Cluster) GetAWSCluster(ctx context.Context, namespacedName types.NamespacedName) (*capa.AWSCluster, error)
- func (g *Cluster) GetAWSClusterRoleIdentity(ctx context.Context, namespacedName types.NamespacedName) (*capa.AWSClusterRoleIdentity, error)
- func (g *Cluster) GetManagementCluster(ctx context.Context) (*capi.Cluster, error)
- func (g *Cluster) GetManagementClusterNamespacedName() types.NamespacedName
- func (g *Cluster) IsManagementCluster(ctx context.Context, cluster *capi.Cluster) bool
- func (g *Cluster) Patch(ctx context.Context, cluster *capi.Cluster, patch client.Patch) (*capi.Cluster, error)
- func (g *Cluster) RemoveFinalizer(ctx context.Context, capiCluster *capi.Cluster, finalizer string) error
- func (g *Cluster) UpdateStatus(ctx context.Context, cluster *capi.Cluster) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNamespacedName ¶ added in v1.5.0
func GetNamespacedName(o metav1.Object) types.NamespacedName
Types ¶
type Cluster ¶
func NewCluster ¶
func NewCluster(client client.Client, managementCluster types.NamespacedName) *Cluster
NewCluster returns a new Cluster client
func (*Cluster) AddFinalizer ¶
func (g *Cluster) AddFinalizer(ctx context.Context, capiCluster *capi.Cluster, finalizer string) error
AddFinalizer adds the given finalizer to the cluster
func (*Cluster) ContainsFinalizer ¶ added in v1.4.0
ContainsFinalizer checks if the given finalizer is present on the Cluster resource
func (*Cluster) Get ¶
func (g *Cluster) Get(ctx context.Context, namespacedName types.NamespacedName) (*capi.Cluster, error)
Get retrieves a Cluster based on the given namespace/name
func (*Cluster) GetAWSCluster ¶
func (g *Cluster) GetAWSCluster(ctx context.Context, namespacedName types.NamespacedName) (*capa.AWSCluster, error)
GetAWSCluster retrieves an AWSCluster based on the provided namespace/name
func (*Cluster) GetAWSClusterRoleIdentity ¶ added in v0.1.2
func (g *Cluster) GetAWSClusterRoleIdentity(ctx context.Context, namespacedName types.NamespacedName) (*capa.AWSClusterRoleIdentity, error)
GetAWSCluster retrieves an AWSCluster based on the provided namespace/name
func (*Cluster) GetManagementCluster ¶
GetManagementCluster retrieves the Cluster for the management cluster namespace/name provided at client creation
func (*Cluster) GetManagementClusterNamespacedName ¶ added in v1.0.0
func (g *Cluster) GetManagementClusterNamespacedName() types.NamespacedName
func (*Cluster) IsManagementCluster ¶
IsManagementCluster checks if the given cluster matches the namespace/name of the management cluster provided on client creation
func (*Cluster) Patch ¶
func (g *Cluster) Patch(ctx context.Context, cluster *capi.Cluster, patch client.Patch) (*capi.Cluster, error)
Patch applies the given patches to the cluster