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:
parent
a3c9a8f461
commit
3c48ece2e0
@ -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"`
|
||||
}
|
||||
|
@ -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{})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user