MCPcopy
hub / github.com/helm/helm / ClientUpdateOptionServerSideApply

Function ClientUpdateOptionServerSideApply

pkg/kube/client.go:727–738  ·  view source on GitHub ↗

ClientUpdateOptionServerSideApply enables performing object apply server-side (default) see: https://kubernetes.io/docs/reference/using-api/server-side-apply/ Must not be enabled when ClientUpdateOptionThreeWayMerge is enabled `forceConflicts` forces conflicts to be resolved (may be enabled when se

(serverSideApply, forceConflicts bool)

Source from the content-addressed store, hash-verified

725// `forceConflicts` forces conflicts to be resolved (may be enabled when serverSideApply enabled only)
726// see: https://kubernetes.io/docs/reference/using-api/server-side-apply/#conflicts
727func ClientUpdateOptionServerSideApply(serverSideApply, forceConflicts bool) ClientUpdateOption {
728 return func(o *clientUpdateOptions) error {
729 if !serverSideApply && forceConflicts {
730 return errors.New("forceConflicts enabled when serverSideApply disabled")
731 }
732
733 o.serverSideApply = serverSideApply
734 o.forceConflicts = forceConflicts
735
736 return nil
737 }
738}
739
740// ClientUpdateOptionForceReplace forces objects to be replaced rather than updated via patch
741// Must not be enabled when ClientUpdateOptionForceConflicts is enabled

Callers 4

performInstallMethod · 0.92
releasingUpgradeMethod · 0.92
performRollbackMethod · 0.92
TestUpdateFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestUpdateFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…