Documentation ¶
Index ¶
- Constants
- func AffinityMatchesTopology(affinity *corev1.VolumeNodeAffinity, topos []*csi.Topology) bool
- func ApplyAffinity(topos []*csi.Topology) *applyv1core.VolumeNodeAffinityApplyConfiguration
- func ApplyCSI(csi *corev1.CSIPersistentVolumeSource) *applyv1core.CSIPersistentVolumeSourceApplyConfiguration
- func ApplyClaimRef(reference *corev1.ObjectReference) *applyv1core.ObjectReferenceApplyConfiguration
- func ApplySecretRef(ref *corev1.SecretReference) *applyv1core.SecretReferenceApplyConfiguration
- func EqualSelection(segments map[string]string, term corev1.NodeSelectorTerm) bool
- func IndexByResourceDefinition(obj interface{}) ([]string, error)
- func KLogV(level klog.Level) client.Logger
- type AffinityReconciler
- type Config
Constants ¶
View Source
const (
SavedPVPropKey = linstor.NamespcAuxiliary + "/affinity-updater-saved-pv"
)
Variables ¶
This section is empty.
Functions ¶
func AffinityMatchesTopology ¶
func AffinityMatchesTopology(affinity *corev1.VolumeNodeAffinity, topos []*csi.Topology) bool
func ApplyAffinity ¶
func ApplyAffinity(topos []*csi.Topology) *applyv1core.VolumeNodeAffinityApplyConfiguration
func ApplyCSI ¶
func ApplyCSI(csi *corev1.CSIPersistentVolumeSource) *applyv1core.CSIPersistentVolumeSourceApplyConfiguration
func ApplyClaimRef ¶
func ApplyClaimRef(reference *corev1.ObjectReference) *applyv1core.ObjectReferenceApplyConfiguration
func ApplySecretRef ¶
func ApplySecretRef(ref *corev1.SecretReference) *applyv1core.SecretReferenceApplyConfiguration
func EqualSelection ¶
func EqualSelection(segments map[string]string, term corev1.NodeSelectorTerm) bool
Types ¶
type AffinityReconciler ¶
type AffinityReconciler struct {
// contains filtered or unexported fields
}
func NewReconciler ¶
func NewReconciler(cfg *Config) (*AffinityReconciler, error)
Click to show internal directories.
Click to hide internal directories.