Backup restore sample config yaml on documentation has a typo
This restore backup yaml on the documentation at https://stackgres.io/doc/1.0/runbooks/restore-backup/
apiVersion: stackgres.io/v1
kind: SGCluster
metadata:
name: demo-restore
namespace: ongres-db
spec:
instances: 1
postgres:
version: '12'
sgInstanceProfile: 'size-s'
pods:
persistentVolume:
size: '10Gi'
initialData:
restore:
fromBackup: 0a3bb287-6b3f-4309-87bf-8d7c4c9e1beb
should be like
apiVersion: stackgres.io/v1
kind: SGCluster
metadata:
name: demo-restore
namespace: ongres-db
spec:
instances: 1
postgres:
version: '12'
sgInstanceProfile: 'size-s'
pods:
persistentVolume:
size: '10Gi'
initialData:
restore:
fromBackup:
uid: 0a3bb287-6b3f-4309-87bf-8d7c4c9e1beb
Otherwise will it will complain it expects a map not a string:
error: error validating "restore.yaml": error validating data: ValidationError(SGCluster.spec.initialData.restore.fromBackup): invalid type for io.stackgres.v1.SGCluster.spec.initialData.restore.fromBackup: got "string", expected "map"; if you choose to ignore these errors, turn validation off with --validate=false
I can patch it quickly on a pull request if you want.
Regards, Álvaro