mirror of
https://github.com/rancher/types.git
synced 2025-08-29 09:02:45 +00:00
Add rotate certificate type
This commit is contained in:
parent
b6a9d9c737
commit
2d5dcebc24
@ -231,3 +231,7 @@ type IngressCapabilities struct {
|
||||
type MonitoringInput struct {
|
||||
Answers map[string]string `json:"answers,omitempty"`
|
||||
}
|
||||
type RotateCertificateInput struct {
|
||||
CACertificates bool `json:"caCertificates,omitempty"`
|
||||
Services []string `json:"services,omitempty" norman:"type=enum,options=etcd|kubelet|kube-apiserver|kube-proxy|kube-scheduler|kube-controller-manager"`
|
||||
}
|
||||
|
@ -41,6 +41,8 @@ type RancherKubernetesEngineConfig struct {
|
||||
BastionHost BastionHost `yaml:"bastion_host" json:"bastionHost,omitempty"`
|
||||
// Monitoring Config
|
||||
Monitoring MonitoringConfig `yaml:"monitoring" json:"monitoring,omitempty"`
|
||||
// Rotating Certificates Option
|
||||
RotateCertificates *RotateCertificates `yaml:"-" json:"rotateCertificates,omitempty"`
|
||||
}
|
||||
|
||||
type BastionHost struct {
|
||||
@ -573,3 +575,10 @@ type MonitoringConfig struct {
|
||||
// Metrics server options
|
||||
Options map[string]string `yaml:"options" json:"options,omitempty"`
|
||||
}
|
||||
|
||||
type RotateCertificates struct {
|
||||
// Rotate CA Certificates
|
||||
CACertificates bool `json:"caCertificates,omitempty"`
|
||||
// Services to rotate their certs
|
||||
Services []string `json:"services,omitempty" norman:"type=enum,options=etcd|kubelet|kube-apiserver|kube-proxy|kube-scheduler|kube-controller-manager"`
|
||||
}
|
||||
|
@ -145,6 +145,7 @@ func clusterTypes(schemas *types.Schemas) *types.Schemas {
|
||||
MustImport(&Version, v3.ClusterRegistrationToken{}).
|
||||
MustImport(&Version, v3.GenerateKubeConfigOutput{}).
|
||||
MustImport(&Version, v3.ImportClusterYamlInput{}).
|
||||
MustImport(&Version, v3.RotateCertificateInput{}).
|
||||
MustImport(&Version, v3.ImportYamlOutput{}).
|
||||
MustImport(&Version, v3.ExportOutput{}).
|
||||
MustImport(&Version, v3.MonitoringInput{}).
|
||||
@ -177,6 +178,9 @@ func clusterTypes(schemas *types.Schemas) *types.Schemas {
|
||||
Input: "monitoringInput",
|
||||
}
|
||||
schema.ResourceActions["disableMonitoring"] = types.Action{}
|
||||
schema.ResourceActions["rotateCertificates"] = types.Action{
|
||||
Input: "rotateCertificateInput",
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user