Documentation
¶
Index ¶
- func GetUserStrategy(ctx context.Context, namespace, resourceKind string) (config.USDEUserStrategy, error)
- func ResourceMetadataHasDataLossRisk(ctx context.Context, newDef, existingDef *unstructured.Unstructured) bool
- func ResourceNeedsUpdating(ctx context.Context, newDef, existingDef *unstructured.Unstructured, ...) (bool, apiv1.UpgradeStrategy, bool, unstructured.UnstructuredList, ...)
- func RidersNeedUpdating(ctx context.Context, namespace string, childKind string, childName string, ...) (bool, apiv1.UpgradeStrategy, unstructured.UnstructuredList, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserStrategy ¶ added in v0.7.0
func ResourceMetadataHasDataLossRisk ¶ added in v0.24.4
func ResourceMetadataHasDataLossRisk(ctx context.Context, newDef, existingDef *unstructured.Unstructured) bool
func ResourceNeedsUpdating ¶ added in v0.7.0
func ResourceNeedsUpdating( ctx context.Context, newDef, existingDef *unstructured.Unstructured, newRiders []riders.Rider, existingRiders unstructured.UnstructuredList) (bool, apiv1.UpgradeStrategy, bool, unstructured.UnstructuredList, unstructured.UnstructuredList, unstructured.UnstructuredList, error)
ResourceNeedsUpdating calculates the upgrade strategy to use during the resource reconciliation process based on configuration and user preference (see design doc for details). It returns the following values: - bool: Indicates whether the resource needs an update. - apiv1.UpgradeStrategy: The most conservative upgrade strategy to be used for updating the resource. - bool: Indicates if the controller managed resources should be recreated (delete-recreate). - unstructured.UnstructuredList: Resources that require addition - unstructured.UnstructuredList: Resources that require modification - unstructured.UnstructuredList: Resources that require deletion - error: Any error encountered during the function execution.
func RidersNeedUpdating ¶ added in v0.22.0
func RidersNeedUpdating(ctx context.Context, namespace string, childKind string, childName string, newRiders []riders.Rider, existingRiders unstructured.UnstructuredList) (bool, apiv1.UpgradeStrategy, unstructured.UnstructuredList, unstructured.UnstructuredList, unstructured.UnstructuredList, error)
return required upgrade strategy, list of additions, modifications, deletions required
Types ¶
This section is empty.