doc: add other jsonpatch annotation examples
Add an example about how to
configure kubevirt pods to log
more verbosely
Add an example about how to use
kubevirt.kubevirt.io/jsonpatch annotation to customize
the configuration of virt-handler via
/spec/customizeComponents/patches
on the kubevirt CR.
@@ -541,6 +541,50 @@ $ kubectl get hco -n kubevirt-hyperconverged kubevirt-hyperconverged -o json \
}
```
+* The user wants to configure kubevirt pods to log more verbosely
+```yaml
+metadata:
+ annotations:
+ kubevirt.kubevirt.io/jsonpatch: |-
+ [
+ {
+ "op":"add",
+ "path":"/spec/configuration/developerConfiguration/logVerbosity",
+ "value":{
+ "virtAPI":4,
+ "virtController":4,
+ "virtHandler":4,
+ "virtLauncher":4,
+ "virtOperator":4
+ }
+ }
+ ]
+```
+
+From CLI it will be:
+```bash
+$ patch hco kubevirt-hyperconverged --type=merge -p='{"metadata":{"annotations":{"kubevirt.kubevirt.io/jsonpatch":"[{\"op\":\"add\",\"path\":\"/spec/configuration/developerConfiguration/logVerbosity\",\"value\":{\"virtAPI\":4,\"virtController\":4,\"virtHandler\":4,\"virtLauncher\":4,\"virtOperator\":4}}]"}}}'
+```
+
+* The user wants to forcefully customize virt-handler configuration by setting custom values under `/spec/customizeComponents/patches` or the KV CR. In order to do that, the following annotation should be added to the HyperConverged CR:
+```yaml
+metadata:
+ annotations:
+ kubevirt.kubevirt.io/jsonpatch: |-
+ [
+ {
+ "op": "add",
+ "path": "/spec/customizeComponents/patches",
+ "value": [{
+ "patch": "[{\"op\":\"add\",\"path\":\"/spec/template/spec/containers/0/command/-\",\"value\":\"--max-devices=250\"}]",
+ "resourceName": "virt-handler",
+ "resourceType": "Daemonset",
+ "type": "json"
+ }]
+ }
+ ]
+```
+
* The user wants to override the default URL used when uploading to a DataVolume, by setting the CDI CR's `spec.config.uploadProxyURLOverride` to `myproxy.example.com`. In order to do that, the following annotation should be added to the HyperConverged CR:
```yaml
metadata:
