diff --git a/apis/management.cattle.io/v3/cluster_types.go b/apis/management.cattle.io/v3/cluster_types.go index f947a801..b5832ba5 100644 --- a/apis/management.cattle.io/v3/cluster_types.go +++ b/apis/management.cattle.io/v3/cluster_types.go @@ -245,6 +245,10 @@ type RotateCertificateInput struct { Services []string `json:"services,omitempty" norman:"type=enum,options=etcd|kubelet|kube-apiserver|kube-proxy|kube-scheduler|kube-controller-manager"` } +type RotateCertificateOutput struct { + Message string `json:"message,omitempty"` +} + type LocalClusterAuthEndpoint struct { Enabled bool `json:"enabled"` FQDN string `json:"fqdn,omitempty"` diff --git a/apis/management.cattle.io/v3/schema/schema.go b/apis/management.cattle.io/v3/schema/schema.go index 9f7a6dec..01493d72 100644 --- a/apis/management.cattle.io/v3/schema/schema.go +++ b/apis/management.cattle.io/v3/schema/schema.go @@ -177,6 +177,7 @@ func clusterTypes(schemas *types.Schemas) *types.Schemas { MustImport(&Version, v3.GenerateKubeConfigOutput{}). MustImport(&Version, v3.ImportClusterYamlInput{}). MustImport(&Version, v3.RotateCertificateInput{}). + MustImport(&Version, v3.RotateCertificateOutput{}). MustImport(&Version, v3.ImportYamlOutput{}). MustImport(&Version, v3.ExportOutput{}). MustImport(&Version, v3.MonitoringInput{}). @@ -215,7 +216,8 @@ func clusterTypes(schemas *types.Schemas) *types.Schemas { Input: "restoreFromEtcdBackupInput", } schema.ResourceActions["rotateCertificates"] = types.Action{ - Input: "rotateCertificateInput", + Input: "rotateCertificateInput", + Output: "rotateCertificateOutput", } }) }