From 3c48ece2e00384e51ea7f0423967bc8df5e95241 Mon Sep 17 00:00:00 2001 From: kinarashah Date: Thu, 7 Feb 2019 11:34:18 -0800 Subject: [PATCH] add name and description for cloud credential --- apis/management.cattle.io/v3/machine_types.go | 6 ++++++ apis/management.cattle.io/v3/schema/schema.go | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apis/management.cattle.io/v3/machine_types.go b/apis/management.cattle.io/v3/machine_types.go index 24fa6a3c..a8ddf968 100644 --- a/apis/management.cattle.io/v3/machine_types.go +++ b/apis/management.cattle.io/v3/machine_types.go @@ -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"` } diff --git a/apis/management.cattle.io/v3/schema/schema.go b/apis/management.cattle.io/v3/schema/schema.go index e8f91ac3..9f7a6dec 100644 --- a/apis/management.cattle.io/v3/schema/schema.go +++ b/apis/management.cattle.io/v3/schema/schema.go @@ -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{}) }