Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Scheme = func() *runtime.Scheme { s := runtime.NewScheme() utilruntime.Must(clientgoscheme.AddToScheme(s)) utilruntime.Must(sandboxv1alpha1.AddToScheme(s)) utilruntime.Must(sandboxv1beta1.AddToScheme(s)) return s }()
Scheme registers the types sandbox controllers need on their client.
Functions ¶
func GetNumericHash ¶
GetNumericHash generates a raw FNV-1a hash value.
func MergeVolumeClaimVolumes ¶
MergeVolumeClaimVolumes merges PVC-backed volumes into an existing volume list, replacing any volumes with matching names. This follows StatefulSet semantics where volumeClaimTemplate volumes take priority.
Types ¶
type PodMutator ¶
type PodMutator interface {
MutatePod(context.Context, *sandboxv1beta1.Sandbox, *corev1.Pod) error
}
PodMutator applies runtime-specific defaults to a newly-created Sandbox Pod. Implementations must preserve every field explicitly supplied through the Sandbox API and return an error instead of silently overriding conflicts.
type SandboxReconciler ¶
type SandboxReconciler struct {
client.Client
Scheme *runtime.Scheme
Tracer asmetrics.Instrumenter
ClusterDomain string
PodMutator PodMutator
}
SandboxReconciler reconciles a Sandbox object.
func (*SandboxReconciler) Reconcile ¶
Reconcile drives a Sandbox toward its declared spec: child Service/Pod/PVCs, status conditions, and expiry.
func (*SandboxReconciler) SetupWithManager ¶
func (r *SandboxReconciler) SetupWithManager(mgr ctrl.Manager, concurrentWorkers int) error
SetupWithManager sets up the controller with the Manager.