Package io.kubernetes.client.examples
Class PatchExample
java.lang.Object
io.kubernetes.client.examples.PatchExample
A simple Example of how to use the Java API.
This example demonstrates patching of deployment using Json Patch and Strategic Merge Patch.
For generating Json Patches, refer http://jsonpatch.com. For generating Strategic Merge Patches, refer strategic-merge-patch.md.
This example demonstrates patching of deployment using Json Patch and Strategic Merge Patch.
For generating Json Patches, refer http://jsonpatch.com. For generating Strategic Merge Patches, refer strategic-merge-patch.md.
- Creates deployment hello-node with terminationGracePeriodSeconds value as 30 and a finalizer.
- Json-Patches deployment hello-node with terminationGracePeriodSeconds value as 27.
- Strategic-Merge-Patches deployment hello-node removing the finalizer.
Easiest way to run this: mvn exec:java -Dexec.mainClass="io.kubernetes.client.examples.PatchExample"
From inside $REPO_DIR/examples
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PatchExample
public PatchExample()
-
-
Method Details
-
main
- Throws:
IOException
-