Documentation
¶
Index ¶
- type ReconciliationResult
- type SyncContext
- type SyncOpt
- func WithHealthOverride(override health.HealthOverride) SyncOpt
- func WithInitialState(phase common.OperationPhase, message string, ...) SyncOpt
- func WithManifestValidation(enabled bool) SyncOpt
- func WithOperationSettings(dryRun bool, prune bool, force bool, skipHooks bool) SyncOpt
- func WithPermissionValidator(validator common.PermissionValidator) SyncOpt
- func WithResourcesFilter(...) SyncOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReconciliationResult ¶
type ReconciliationResult struct { Live []*unstructured.Unstructured Target []*unstructured.Unstructured Hooks []*unstructured.Unstructured }
func Reconcile ¶
func Reconcile(targetObjs []*unstructured.Unstructured, liveObjByKey map[kube.ResourceKey]*unstructured.Unstructured, namespace string, resInfo kubeutil.ResourceInfoProvider) ReconciliationResult
type SyncContext ¶
type SyncContext interface { Terminate() Sync() GetState() (common.OperationPhase, string, []common.ResourceSyncResult) }
type SyncOpt ¶
type SyncOpt func(ctx *syncContext)
func WithHealthOverride ¶
func WithHealthOverride(override health.HealthOverride) SyncOpt
func WithInitialState ¶
func WithInitialState(phase common.OperationPhase, message string, results []common.ResourceSyncResult) SyncOpt
func WithManifestValidation ¶
func WithOperationSettings ¶
func WithPermissionValidator ¶
func WithPermissionValidator(validator common.PermissionValidator) SyncOpt
func WithResourcesFilter ¶
func WithResourcesFilter(resourcesFilter func(key kube.ResourceKey, target *unstructured.Unstructured, live *unstructured.Unstructured) bool) SyncOpt
Source Files
¶
Click to show internal directories.
Click to hide internal directories.