1
0
mirror of https://github.com/rancher/types.git synced 2025-06-28 06:26:49 +00:00

Add rotate certificate output

This commit is contained in:
galal-hussein 2019-02-08 21:29:20 +02:00 committed by Alena Prokharchyk
parent d8b411ad21
commit 05c0a0a7a9
2 changed files with 7 additions and 1 deletions

View File

@ -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"`

View File

@ -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",
}
})
}