The restoring guide doesn't mention that in order to restore the secrets and configmaps in another environment / project you must delete the following metadata:
- For secrets, you must delete .metadata.creationTimestamp, .metadata.namespace, .metadata.resourceVersion, .metadata.uid
- For configmaps, the same as above plus . metadata.ownerReferences.
If the metadata is not deleted, the configmap restoration fails silently.
These steps are not mentioned in the documentation and it creates confusion to customers.
Update the backup and restoring guide with the commands shown in this KCS for the configmaps and secrets which doesn't copy the metadata.