MCPcopy
hub / github.com/helm/helm / ClientUpdateOptionUpgradeClientSideFieldManager

Function ClientUpdateOptionUpgradeClientSideFieldManager

pkg/kube/client.go:782–788  ·  view source on GitHub ↗

ClientUpdateOptionUpgradeClientSideFieldManager specifies that resources client-side field manager should be upgraded to server-side apply (before applying the object server-side) This is required when upgrading a chart from client-side to server-side apply, otherwise the client-side field managemen

(upgradeClientSideFieldManager bool)

Source from the content-addressed store, hash-verified

780// - https://github.com/kubernetes/kubernetes/pull/112905
781// - `UpgradeManagedFields` / https://github.com/kubernetes/kubernetes/blob/f47e9696d7237f1011d23c9b55f6947e60526179/staging/src/k8s.io/client-go/util/csaupgrade/upgrade.go#L81
782func ClientUpdateOptionUpgradeClientSideFieldManager(upgradeClientSideFieldManager bool) ClientUpdateOption {
783 return func(o *clientUpdateOptions) error {
784 o.upgradeClientSideFieldManager = upgradeClientSideFieldManager
785
786 return nil
787 }
788}
789
790// Update takes the current list of objects and target list of objects and
791// creates resources that don't already exist, updates resources that have been

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…