Documentation
¶
Index ¶
- type ContainerOptions
- type ManagementResourceReconciler
- func (mr *ManagementResourceReconciler) ReconcileConfigmap(ctx context.Context, hostedControlPlane *v1alpha1.HostedControlPlane, ...) error
- func (mr *ManagementResourceReconciler) ReconcileDeployment(ctx context.Context, hostedControlPlane *v1alpha1.HostedControlPlane, ...) (*appsv1.Deployment, bool, error)
- func (mr *ManagementResourceReconciler) ReconcileSecret(ctx context.Context, hostedControlPlane *v1alpha1.HostedControlPlane, ...) error
- func (mr *ManagementResourceReconciler) ReconcileService(ctx context.Context, hostedControlPlane *v1alpha1.HostedControlPlane, ...) (*corev1.Service, bool, error)
- func (mr *ManagementResourceReconciler) ReconcileStatefulset(ctx context.Context, hostedControlPlane *v1alpha1.HostedControlPlane, ...) (*appsv1.StatefulSet, bool, error)
- type PodDisruptionBudgetMode
- type PodDisruptionBudgetType
- type PodOptions
- type WorkloadResourceReconciler
- func (wr *WorkloadResourceReconciler) ReconcileConfigmap(ctx context.Context, namespace string, name string, deleteResource bool, ...) error
- func (wr *WorkloadResourceReconciler) ReconcileDaemonSet(ctx context.Context, namespace string, name string, deleteResource bool, ...) (*appsv1.DaemonSet, bool, error)
- func (wr *WorkloadResourceReconciler) ReconcileDeployment(ctx context.Context, namespace string, name string, deleteResource bool, ...) (*appsv1.Deployment, bool, error)
- func (wr *WorkloadResourceReconciler) ReconcileService(ctx context.Context, namespace string, name string, labels map[string]string, ...) (*corev1.Service, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerOptions ¶
type ContainerOptions struct {
Root bool
ReadWriteRootFilesystem bool
Capabilities []corev1.Capability
}
type ManagementResourceReconciler ¶
type ManagementResourceReconciler struct {
Tracer string
ManagementClusterClient *alias.ManagementClusterClient
CiliumClient ciliumclient.Interface
WorldComponent string
ControllerNamespace string
ControllerComponent string
}
func (*ManagementResourceReconciler) ReconcileConfigmap ¶
func (*ManagementResourceReconciler) ReconcileDeployment ¶
func (mr *ManagementResourceReconciler) ReconcileDeployment( ctx context.Context, hostedControlPlane *v1alpha1.HostedControlPlane, cluster *capiv2.Cluster, replicas int32, priorityClassName string, component string, ingressPolicyTargets map[int32][]networkpolicy.IngressNetworkPolicyTarget, egressPolicyTargets map[int32][]networkpolicy.EgressNetworkPolicyTarget, targetComponent string, initContainers []slices.Tuple2[*corev1ac.ContainerApplyConfiguration, ContainerOptions], containers []slices.Tuple2[*corev1ac.ContainerApplyConfiguration, ContainerOptions], volumes []*corev1ac.VolumeApplyConfiguration, ) (*appsv1.Deployment, bool, error)
func (*ManagementResourceReconciler) ReconcileSecret ¶
func (*ManagementResourceReconciler) ReconcileService ¶
func (mr *ManagementResourceReconciler) ReconcileService( ctx context.Context, hostedControlPlane *v1alpha1.HostedControlPlane, cluster *capiv2.Cluster, namespace string, name string, serviceType corev1.ServiceType, headless bool, component string, ports []*corev1ac.ServicePortApplyConfiguration, ) (*corev1.Service, bool, error)
func (*ManagementResourceReconciler) ReconcileStatefulset ¶
func (mr *ManagementResourceReconciler) ReconcileStatefulset( ctx context.Context, hostedControlPlane *v1alpha1.HostedControlPlane, cluster *capiv2.Cluster, name string, namespace string, podOptions PodOptions, serviceName string, podManagementPolicy appsv1.PodManagementPolicyType, updateStrategy *appsv1ac.StatefulSetUpdateStrategyApplyConfiguration, component string, ingressPolicyTargets map[int32][]networkpolicy.IngressNetworkPolicyTarget, egressPolicyTargets map[int32][]networkpolicy.EgressNetworkPolicyTarget, replicas int32, containers []slices.Tuple2[*corev1ac.ContainerApplyConfiguration, ContainerOptions], volumes []*corev1ac.VolumeApplyConfiguration, volumeClaimTemplates []*corev1ac.PersistentVolumeClaimApplyConfiguration, volumeClaimRetentionPolicy *appsv1ac.StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration, ) (*appsv1.StatefulSet, bool, error)
type PodDisruptionBudgetMode ¶ added in v1.1.0
type PodDisruptionBudgetMode struct {
Type PodDisruptionBudgetType
Value int32
}
type PodDisruptionBudgetType ¶ added in v1.1.0
type PodDisruptionBudgetType = string
var ( PodDisruptionBudgetTypeMinAvailable PodDisruptionBudgetType = "MinAvailable" )
type PodOptions ¶
type WorkloadResourceReconciler ¶
type WorkloadResourceReconciler struct {
Tracer string
WorkloadClusterClient *alias.WorkloadClusterClient
CiliumClient ciliumclient.Interface
}
func (*WorkloadResourceReconciler) ReconcileConfigmap ¶
func (*WorkloadResourceReconciler) ReconcileDaemonSet ¶
func (wr *WorkloadResourceReconciler) ReconcileDaemonSet( ctx context.Context, namespace string, name string, deleteResource bool, podOptions PodOptions, labels map[string]string, ingressPolicyTargets map[int32][]networkpolicy.IngressNetworkPolicyTarget, egressPolicyTargets map[int32][]networkpolicy.EgressNetworkPolicyTarget, containers []slices.Tuple2[*corev1ac.ContainerApplyConfiguration, ContainerOptions], volumes []*corev1ac.VolumeApplyConfiguration, ) (*appsv1.DaemonSet, bool, error)
func (*WorkloadResourceReconciler) ReconcileDeployment ¶
func (wr *WorkloadResourceReconciler) ReconcileDeployment( ctx context.Context, namespace string, name string, deleteResource bool, replicas int32, podOptions PodOptions, labels map[string]string, ingressPolicyTargets map[int32][]networkpolicy.IngressNetworkPolicyTarget, egressPolicyTargets map[int32][]networkpolicy.EgressNetworkPolicyTarget, containers []slices.Tuple2[*corev1ac.ContainerApplyConfiguration, ContainerOptions], volumes []*corev1ac.VolumeApplyConfiguration, ) (*appsv1.Deployment, bool, error)
func (*WorkloadResourceReconciler) ReconcileService ¶
Click to show internal directories.
Click to hide internal directories.