karpenter

package
v0.1.53 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KarpenterDeployment

func KarpenterDeployment(namespace string) *appsv1.Deployment

func KarpenterRole

func KarpenterRole(controlPlaneNamespace string) *rbacv1.Role

func KarpenterRoleBinding

func KarpenterRoleBinding(controlPlaneNamespace string) *rbacv1.RoleBinding

func KarpenterServiceAccount

func KarpenterServiceAccount(controlPlaneNamespace string) *corev1.ServiceAccount

func ReconcileKarpenterDeployment

func ReconcileKarpenterDeployment(deployment *appsv1.Deployment,
	hcp *hyperv1.HostedControlPlane,
	sa *corev1.ServiceAccount,
	kubeConfigSecret *corev1.Secret,
	availabilityProberImage, tokenMinterImage string,
	credentialsSecret *corev1.Secret,
	setDefaultSecurityContext bool,
	ownerRef config.OwnerRef) error

func ReconcileKarpenterRole

func ReconcileKarpenterRole(role *rbacv1.Role, owner config.OwnerRef) error

func ReconcileKarpenterRoleBinding

func ReconcileKarpenterRoleBinding(binding *rbacv1.RoleBinding, role *rbacv1.Role, sa *corev1.ServiceAccount, owner config.OwnerRef) error

Types

type MachineApproverController

type MachineApproverController struct {
	// contains filtered or unexported fields
}

func (*MachineApproverController) Reconcile

func (*MachineApproverController) SetupWithManager

func (r *MachineApproverController) SetupWithManager(mgr ctrl.Manager) error

type Reconciler

type Reconciler struct {
	ManagementClient          client.Client
	GuestClient               client.Client
	Namespace                 string
	ControlPlaneOperatorImage string
	upsert.CreateOrUpdateProvider
}

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, managementCluster cluster.Cluster) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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