prune

package
v1.9.0-preview1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveIrrelevantField

func RemoveIrrelevantField(workload *unstructured.Unstructured, extraHooks ...func(*unstructured.Unstructured)) error

RemoveIrrelevantField used to remove fields that generated by kube-apiserver and no need(or can't) propagate to member clusters.

func RemoveJobTTLSeconds

func RemoveJobTTLSeconds(workload *unstructured.Unstructured)

RemoveJobTTLSeconds removes the '.spec.ttlSecondsAfterFinished' from a Job. The reason for removing it is that the Job propagated by Karmada probably be automatically deleted from member clusters(by 'ttl-after-finished' controller in member clusters). That will cause a conflict if Karmada tries to re-create it. See https://github.com/karmada-io/karmada/issues/2197 for more details.

It is recommended to enable the `ttl-after-finished` controller in the Karmada control plane. See https://karmada.io/docs/administrator/configuration/configure-controllers#ttl-after-finished for more details.

Types

This section is empty.

Jump to

Keyboard shortcuts

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