cannot edit a backup config
Summary
On the UI, is not possible to edit a backup configuration.
Current Behaviour
After opening the UI and try to edit a backup configuration, the screen turns blank and nothing else happens. On the console an error is shown:
[Vue warn]: Error in render: "TypeError: config.data.spec.baseBackups.performance is undefined"
found in
---> <CreateBackupConfig>
<Root> vue.js:634:17
---
TypeError: config.data.spec.baseBackups.performance is undefined
Steps to reproduce
Create a backup configuration using a YAML and kubectl. try to edit the same one on the UI.
The same error doesn't occur if the config is created using the UI.
Expected Behaviour
backup configs can be edited regardless of the creation method.
Possible Solution
Environment
EKS cluster on GCP. check the stackgres-tutorial for instructions.
➜ kubectl get deployments -n stackgres stackgres-operator --template '{{ printf "%s\n" (index .spec.template.spec.containers 0).image }}'
stackgres/operator:0.9-jvm
stackgres-tutorial/02-helm_more_advanced_example 1-add-support-to-gcp [✘!?]
➜ kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.4", GitCommit:"c96aede7b5205121079932896c4ad89bb93260af", GitTreeState:"clean", BuildDate:"2020-06-17T11:41:22Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.13-gke.1", GitCommit:"688c6543aa4b285355723f100302d80431e411cc", GitTreeState:"clean", BuildDate:"2020-07-21T02:37:26Z", GoVersion:"go1.13.9b4", Compiler:"gc", Platform:"linux/amd64"}
backup config:
apiVersion: stackgres.io/v1beta1
kind: SGBackupConfig
metadata:
namespace: demo
name: backupconfig1
spec:
baseBackups:
cronSchedule: "*/5 * * * *"
retention: 6
storage:
type: "gcs"
gcs:
bucket: backup-demo-of-stackgres-io
gcpCredentials:
secretKeySelectors:
serviceAccountJSON:
name: gcp-backup-bucket-secret
key: my-creds.json