File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2329,13 +2329,13 @@ client.pods().inNamespace("test").withName("foo").usingTimestamps().getLog();
2329
2329
```
2330
2330
2331
2331
#### Serializing to yaml
2332
- Resources can be exported to a yaml String via the ` SerializationUtils ` class:
2332
+ Resources can be exported to a YAML String via the ` Serialization ` class:
2333
2333
```
2334
2334
Pod myPod;
2335
2335
2336
- String myPodAsYaml = SerializationUtils.dumpAsYaml (myPod);
2336
+ String myPodAsYaml = Serialization.asYaml (myPod);
2337
2337
// Your pod might have some state that you don't really care about, to remove it:
2338
- String myPodAsYamlWithoutRuntimeState = SerializationUtils.dumpWithoutRuntimeStateAsYaml (myPod);
2338
+ String myPodAsYamlWithoutRuntimeState = PatchUtils.withoutRuntimeState (myPod, YAML, false );
2339
2339
```
2340
2340
2341
2341
#### Running a Pod
You can’t perform that action at this time.
0 commit comments