Documentation
¶
Index ¶
- Constants
- func ReconcileCAPIProviderRole(ctx context.Context, c client.Client, createOrUpdate upsert.CreateOrUpdateFN, ...) error
- type Agent
- func (p Agent) CAPIProviderDeploymentSpec(hcluster *hyperv1.HostedCluster, hcp *hyperv1.HostedControlPlane) (*appsv1.DeploymentSpec, error)
- func (Agent) CAPIProviderPolicyRules() []rbacv1.PolicyRule
- func (Agent) DeleteCredentials(ctx context.Context, c client.Client, hc *hyperv1.HostedCluster, ...) error
- func (p Agent) ReconcileCAPIInfraCR(ctx context.Context, c client.Client, createOrUpdate upsert.CreateOrUpdateFN, ...) (client.Object, error)
- func (p Agent) ReconcileCredentials(ctx context.Context, c client.Client, createOrUpdate upsert.CreateOrUpdateFN, ...) error
- func (Agent) ReconcileSecretEncryption(ctx context.Context, c client.Client, createOrUpdate upsert.CreateOrUpdateFN, ...) error
Constants ¶
View Source
const ( CredentialsRBACPrefix = "cluster-api-agent" CAPIProviderRoleName = "capi-provider-role" )
Variables ¶
This section is empty.
Functions ¶
func ReconcileCAPIProviderRole ¶ added in v0.1.80
func ReconcileCAPIProviderRole(ctx context.Context, c client.Client, createOrUpdate upsert.CreateOrUpdateFN, hcluster *hyperv1.HostedCluster, controlPlaneNamespace string) error
ReconcileCAPIProviderRole creates the RBAC Role and RoleBinding in the agent namespace so the CAPI provider can manage Agent resources. Each HostedCluster creates its own Role (named per control plane namespace) to enable proper lifecycle management and watch-based reconciliation.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (Agent) CAPIProviderDeploymentSpec ¶
func (p Agent) CAPIProviderDeploymentSpec(hcluster *hyperv1.HostedCluster, hcp *hyperv1.HostedControlPlane) (*appsv1.DeploymentSpec, error)
func (Agent) CAPIProviderPolicyRules ¶
func (Agent) CAPIProviderPolicyRules() []rbacv1.PolicyRule
func (Agent) DeleteCredentials ¶
func (Agent) DeleteCredentials(ctx context.Context, c client.Client, hc *hyperv1.HostedCluster, controlPlaneNamespace string) error
DeleteCredentials removes this HostedCluster's CAPI provider Role and RoleBinding. Each cluster has its own Role, so both can be safely deleted without affecting other clusters. Also cleans up legacy shared Role (without -<cpNamespace> suffix) if it exists.
func (Agent) ReconcileCAPIInfraCR ¶
func (p Agent) ReconcileCAPIInfraCR(ctx context.Context, c client.Client, createOrUpdate upsert.CreateOrUpdateFN, hcluster *hyperv1.HostedCluster, controlPlaneNamespace string, apiEndpoint hyperv1.APIEndpoint, ) (client.Object, error)
func (Agent) ReconcileCredentials ¶
func (Agent) ReconcileSecretEncryption ¶
Click to show internal directories.
Click to hide internal directories.