 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package patch provides method to calculate JSON patch between 2 k8s objects.
Calculate JSON patch
oldDeployment := appsv1.Deployment{
	// some fields
}
newDeployment := appsv1.Deployment{
	// some different fields
}
patch, err := NewJSONPatch(oldDeployment, newDeployment)
if err != nil {
	// handle error
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJSONPatch ¶
func NewJSONPatch(original, current runtime.Object) ([]jsonpatch.JsonPatchOperation, error)
NewJSONPatch calculates the JSON patch between original and current objects.
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.