func IsImmutableError(err error) bool
IsImmutableError checks if the given error indicates that a recoverable immutability error has been encountered, which occurs when an object failed to be applied strictly due to updating immutable fields. If there are additional causes detected (e.g., the error is caused both by an immutable field being changed and another field being invalid), the immutability error is considered non-recoverable and this function returns false. This is because the only method for recovering from an immutability error is to delete the object and re-create it -- if the next apply will not succeed due to invalid fields, the immutability error cannot be recovered from.
Error evaluation logic:
Name | Synopsis |
---|---|
.. | |
client | |
conditions | Package conditions implements generic functionality for working with kstatus compliant K8s resource conditions. |
controller | |
metrics | |
reconcile | Package reconcile implements functionality for processing reconciliation results and errors to return to controller-runtime. |
recerr | Package recerr implements custom controller reconciliation error types and utilities used during reconciliaton result summarization. |
events | Package events provides a Recorder to record Kubernetes Events. |
inventory | Package inventory provides functionality for working with resource inventories being managed by K8s controllers or other actors. |
objectrestarter | Package objectrestarter provides a utility for restarting workloads using the kubectl annotation used by K8s for graceful restarting. |
patch | |
sap | Package sap implements a server-side apply (SSA) resource manager for K8s. |
install | Package install implements naive one-shot application of K8s objects using server-side apply. |
statusreaders |