Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PatchForResourceUpdate ¶
func PatchForResourceUpdate( client discovery.OpenAPISchemaInterface, lastSubmitted, currentSubmitted, liveOldObj *unstructured.Unstructured, ) ([]byte, types.PatchType, error)
PatchForResourceUpdate introspects on the OpenAPI spec exposed by some client, and attempts to generate a strategic merge patch for use in a resource update. If there is no specification of how to generate a strategic merge patch, we fall back to JSON merge patch.
func ValidateAgainstSchema ¶
func ValidateAgainstSchema( client discovery.OpenAPISchemaInterface, obj *unstructured.Unstructured, ) error
ValidateAgainstSchema validates a document against the schema.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.