1
0
mirror of https://github.com/rancher/types.git synced 2025-07-02 08:21:48 +00:00

add name and description for cloud credential

This commit is contained in:
kinarashah 2019-02-07 11:34:18 -08:00 committed by Alena Prokharchyk
parent a3c9a8f461
commit 3c48ece2e0
2 changed files with 6 additions and 1 deletions

View File

@ -302,4 +302,10 @@ type CloudCredential struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CloudCredentialSpec `json:"spec"`
}
type CloudCredentialSpec struct {
Description string `json:"description,omitempty"`
}

View File

@ -61,7 +61,6 @@ func credTypes(schemas *types.Schemas) *types.Schemas {
return schemas.
AddMapperForType(&Version, v3.CloudCredential{},
&mapper.CredentialMapper{},
&m.Move{From: "name", To: "id"},
&m.Drop{Field: "namespaceId"}).
MustImport(&Version, v3.CloudCredential{})
}