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 ¶ added in v1.3.0
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.