compare

package
v0.999.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndLogServiceChanges

func CheckAndLogServiceChanges(ctx context.Context, c client.Client, desired *unstructured.Unstructured) error

CheckAndLogServiceChanges encapsulates the full logic to fetch the current service, compare it against the desired state, and log any unexpected changes.

func HasUnexpectedServiceChanges

func HasUnexpectedServiceChanges(desired, current *corev1.Service) (bool, string)

HasUnexpectedServiceChanges checks for any unexpected mutations between two Service objects. It returns true and a diff string if a change is found in any field that is not explicitly managed by the operator or the cluster.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL