From 05c0a0a7a96fed4078db5d4ddddcff65e1d6261c Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Fri, 8 Feb 2019 21:29:20 +0200 Subject: [PATCH] Add rotate certificate output --- apis/management.cattle.io/v3/cluster_types.go | 4 ++++ apis/management.cattle.io/v3/schema/schema.go | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) 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", } }) }