csaupgrade

package
v0.26.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpgradeManagedFields

func UpgradeManagedFields(
	obj runtime.Object,
	csaManagerName string,
	ssaManagerName string,
) error

Upgrades the Manager information for fields managed with client-side-apply (CSA) Prepares fields owned by `csaManager` for 'Update' operations for use now with the given `ssaManager` for `Apply` operations.

This transformation should be performed on an object if it has been previously managed using client-side-apply to prepare it for future use with server-side-apply.

Caveats:

  1. This operation is not reversible. Information about which fields the client owned will be lost in this operation.
  2. Supports being performed either before or after initial server-side apply.
  3. Client-side apply tends to own more fields (including fields that are defaulted), this will possibly remove this defaults, they will be re-defaulted, that's fine.
  4. Care must be taken to not overwrite the managed fields on the server if they have changed before sending a patch.

obj - Target of the operation which has been managed with CSA in the past csaManagerName - Name of FieldManager formerly used for `Update` operations ssaManagerName - Name of FieldManager formerly used for `Apply` operations

Types

This section is empty.

Jump to

Keyboard shortcuts

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