Versions in this module Expand all Collapse all v0 v0.7.5 Nov 26, 2024 v0.7.4 Nov 26, 2024 Changes in this version + const AnnotationLastAppliedConfig + func CreateTwoWayMergePatch(orig, new, dataStruct interface{}) ([]byte, bool, error) + func GetLastAppliedConfigAnnotation(live *unstructured.Unstructured) (*unstructured.Unstructured, error) + func HideSecretData(target *unstructured.Unstructured, live *unstructured.Unstructured, ...) (*unstructured.Unstructured, *unstructured.Unstructured, error) + func Normalize(un *unstructured.Unstructured, opts ...Option) + func NormalizeSecret(un *unstructured.Unstructured, opts ...Option) + type DiffResult struct + Modified bool + NormalizedLive []byte + PredictedLive []byte + func Diff(config, live *unstructured.Unstructured, opts ...Option) (*DiffResult, error) + func ServerSideDiff(config, live *unstructured.Unstructured, opts ...Option) (*DiffResult, error) + func StructuredMergeDiff(config, live *unstructured.Unstructured, gvkParser *managedfields.GvkParser, ...) (*DiffResult, error) + func ThreeWayDiff(orig, config, live *unstructured.Unstructured) (*DiffResult, error) + func TwoWayDiff(config, live *unstructured.Unstructured) (*DiffResult, error) + type DiffResultList struct + Diffs []DiffResult + Modified bool + func DiffArray(configArray, liveArray []*unstructured.Unstructured, opts ...Option) (*DiffResultList, error) + type K8sServerSideDryRunner struct + func NewK8sServerSideDryRunner(kubeApplier KubeApplier) *K8sServerSideDryRunner + func (kdr *K8sServerSideDryRunner) Run(ctx context.Context, obj *unstructured.Unstructured, manager string) (string, error) + type KubeApplier interface + ApplyResource func(ctx context.Context, obj *unstructured.Unstructured, ...) (string, error) + type Normalizer interface + Normalize func(un *unstructured.Unstructured) error + func GetNoopNormalizer() Normalizer + type Option func(*options) + func IgnoreAggregatedRoles(ignore bool) Option + func WithGVKParser(parser *managedfields.GvkParser) Option + func WithIgnoreMutationWebhook(mw bool) Option + func WithLogr(log logr.Logger) Option + func WithManager(manager string) Option + func WithNormalizer(normalizer Normalizer) Option + func WithServerSideDiff(ssd bool) Option + func WithServerSideDryRunner(ssadr ServerSideDryRunner) Option + func WithStructuredMergeDiff(smd bool) Option + type SMDParams struct + type ServerSideDryRunner interface + Run func(ctx context.Context, obj *unstructured.Unstructured, manager string) (string, error)