Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Scheme = runtime.NewScheme()
Scheme is the default instance of runtime.Scheme to which types in the Kubernetes API are already registered.
Functions ¶
func GetLastApplied ¶
GetLastApplied retrieves the original configuration of the object from the annotation, or nil if no annotation was found.
func SerializeLastApplied ¶
SerializeLastApplied returns the json serialization of the incoming object If annotate is true, the returned serialization will contain a serialized annotation of itself (kubectl.kubernetes.io/last-applied-configuration), otherwise it will not have this annotation.
Types ¶
type Patch ¶
Patch encapsulates a Kubernetes patch operation data Patch contains the patch type as well as the patch request contents.
func GetClientSideApplyPatch ¶
GetClientSideApplyPatch updates a resource using the same approach as running `kubectl apply`. The implementation here has been mostly extracted from the apply command: k8s.io/kubernetes/pkg/kubectl/cmd/apply.go