Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PVEventHandler handler.Funcs = handler.Funcs{ CreateFunc: func(ctx context.Context, e event.CreateEvent, q workqueue.RateLimitingInterface) { if match, key := isMatchingPV(e.Object); match { q.Add(reconcile.Request{NamespacedName: *key}) } }, UpdateFunc: func(ctx context.Context, e event.UpdateEvent, q workqueue.RateLimitingInterface) { if match, key := isMatchingPV(e.ObjectNew); match { q.Add(reconcile.Request{NamespacedName: *key}) } }, DeleteFunc: func(ctx context.Context, e event.DeleteEvent, q workqueue.RateLimitingInterface) { if match, key := isMatchingPV(e.Object); match { q.Add(reconcile.Request{NamespacedName: *key}) } }, }
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
func NewReconciler ¶
func NewReconciler(kymaRef klog.ObjectRef, kcpCluster cluster.Cluster, skrCluster cluster.Cluster) Reconciler
type State ¶
type State struct { composed.State KymaRef klog.ObjectRef KcpCluster composed.StateCluster KcpNfsInstance *cloudcontrolv1beta1.NfsInstance KcpIpRange *cloudcontrolv1beta1.IpRange SkrCluster composed.StateCluster PV *v1.PersistentVolume }
func (*State) ObjAsGcpNfsVolume ¶
func (s *State) ObjAsGcpNfsVolume() *cloudresourcesv1beta1.GcpNfsVolume
type StateFactory ¶
func NewStateFactory ¶
func NewStateFactory(kymaRef klog.ObjectRef, kcpCluster composed.StateCluster, skrCluster composed.StateCluster) StateFactory
Source Files ¶
- addFinalizer.go
- createPersistenceVolume.go
- deleteKcpNfsInstance.go
- deletePersistenceVolume.go
- loadKcpIpRange.go
- loadKcpNfsInstance.go
- loadPersistenceVolume.go
- modifyKcpNfsInstance.go
- modifyPersistenceVolume.go
- pvEventHandler.go
- reconciler.go
- removeFinalizer.go
- removePersistenceVolumeFinalizer.go
- state.go
- updateStatus.go
- validateSpec.go
Click to show internal directories.
Click to hide internal directories.