You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jq 'walk(if type == "object" and has("metadata") then .metadata |= (del(.uid) | del(.resourceVersion)) else . end)' \
55
+
backup.json | kubectl apply -f -
55
56
```
56
57
58
+
Note:
59
+
If your backup contains resources such as Certificate objects that were generated by annotated Ingress resources, be aware that those Certificate resources may contain `ownerReferences` with `uid` fields that are required to maintain their association with the Ingress.
60
+
61
+
The above command safely removes the `uid` from the top-level metadata, but preserves the `uid` in `ownerReferences`, ensuring that the ownership relationship between Ingress and Certificate is retained.
62
+
63
+
57
64
## Full cluster backup and restore
58
65
59
66
This section refers to backing up and restoring 'all' Kubernetes resources in a
@@ -197,4 +204,4 @@ velero restore create \
197
204
[^1]: there is an edge case where certain changes to `Certificate` spec may not
198
205
trigger re-issuance if there is no `CertificateRequest` for that
199
206
`Certificate`. See [documentation on when do certificates get
0 commit comments