Documentation ¶
Index ¶
Constants ¶
View Source
const ( Skip = "skip" Create = "create" Update = "update" Delete = "delete" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericObjFunc ¶ added in v1.2.2
type SyncManager ¶
SyncManager watch and sync resource from cluster master to cluster member
func (*SyncManager) Initialize ¶
func (s *SyncManager) Initialize() error
func (*SyncManager) Run ¶
func (s *SyncManager) Run(stop <-chan struct{})
func (*SyncManager) SetupCtrlWithManager ¶ added in v1.2.2
func (s *SyncManager) SetupCtrlWithManager(resource client.Object, objFunc GenericObjFunc) error
1. native resource should not be affected? 2. what if sync resource changed manually in member cluster? use webhook? 3. update operation is valid? 4. how to record log? 5. use reflect of not to copy interface value?
setupCtrlWithManager add reconcile func for each sync resource resync reference to https://github.com/cloudnativeto/sig-kubernetes/issues/11
Click to show internal directories.
Click to hide internal directories.