storage/kubernetes: remove shadowed ResourceVersion from Connector (#1673)
This commit is contained in:
@@ -595,10 +595,9 @@ type Connector struct {
|
||||
k8sapi.TypeMeta `json:",inline"`
|
||||
k8sapi.ObjectMeta `json:"metadata,omitempty"`
|
||||
|
||||
ID string `json:"id,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
ResourceVersion string `json:"resourceVersion,omitempty"`
|
||||
ID string `json:"id,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
// Config holds connector specific configuration information
|
||||
Config []byte `json:"config,omitempty"`
|
||||
}
|
||||
@@ -613,11 +612,10 @@ func (cli *client) fromStorageConnector(c storage.Connector) Connector {
|
||||
Name: c.ID,
|
||||
Namespace: cli.namespace,
|
||||
},
|
||||
ID: c.ID,
|
||||
Type: c.Type,
|
||||
Name: c.Name,
|
||||
ResourceVersion: c.ResourceVersion,
|
||||
Config: c.Config,
|
||||
ID: c.ID,
|
||||
Type: c.Type,
|
||||
Name: c.Name,
|
||||
Config: c.Config,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -626,7 +624,7 @@ func toStorageConnector(c Connector) storage.Connector {
|
||||
ID: c.ID,
|
||||
Type: c.Type,
|
||||
Name: c.Name,
|
||||
ResourceVersion: c.ResourceVersion,
|
||||
ResourceVersion: c.ObjectMeta.ResourceVersion,
|
||||
Config: c.Config,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user