From 6adafad92a58e65c1d894124c8e5406b955afd3b Mon Sep 17 00:00:00 2001 From: rajashree Date: Thu, 22 Aug 2019 10:54:26 -0700 Subject: [PATCH] Disable update on some etcdbackup fields --- apis/management.cattle.io/v3/backup_types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apis/management.cattle.io/v3/backup_types.go b/apis/management.cattle.io/v3/backup_types.go index 098e696d..f85e17dd 100644 --- a/apis/management.cattle.io/v3/backup_types.go +++ b/apis/management.cattle.io/v3/backup_types.go @@ -54,13 +54,13 @@ type EtcdBackup struct { type EtcdBackupSpec struct { // cluster ID - ClusterID string `json:"clusterId,omitempty" norman:"required,type=reference[cluster]"` + ClusterID string `json:"clusterId,omitempty" norman:"required,type=reference[cluster],noupdate"` // manual backup flag Manual bool `yaml:"manual" json:"manual,omitempty"` // actual file name on the target - Filename string `yaml:"filename" json:"filename,omitempty"` + Filename string `yaml:"filename" json:"filename,omitempty" norman:"noupdate"` // backupConfig - BackupConfig BackupConfig `yaml:",omitempty" json:"backupConfig,omitempty"` + BackupConfig BackupConfig `yaml:",omitempty" json:"backupConfig,omitempty" norman:"noupdate"` } type EtcdBackupStatus struct {