1
0
mirror of https://github.com/rancher/types.git synced 2025-08-30 19:23:06 +00:00

Add fail swap on option to kubelet in rke

This commit is contained in:
galal-hussein 2018-02-03 04:09:58 +02:00 committed by Darren Shepherd
parent 3c50ca8493
commit bfd6a6afc4
2 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,8 @@ type KubeletService struct {
InfraContainerImage string `yaml:"infra_container_image" json:"infraContainerImage,omitempty"`
// Cluster DNS service ip
ClusterDNSServer string `yaml:"cluster_dns_server" json:"clusterDnsServer,omitempty"`
// Fail if swap is enabled
FailSwapOn bool `yaml:"fail_swap_on" json:"failSwapOn,omitempty"`
}
type KubeproxyService struct {

View File

@ -5,6 +5,7 @@ const (
KubeletServiceFieldClusterDNSServer = "clusterDnsServer"
KubeletServiceFieldClusterDomain = "clusterDomain"
KubeletServiceFieldExtraArgs = "extraArgs"
KubeletServiceFieldFailSwapOn = "failSwapOn"
KubeletServiceFieldImage = "image"
KubeletServiceFieldInfraContainerImage = "infraContainerImage"
)
@ -13,6 +14,7 @@ type KubeletService struct {
ClusterDNSServer string `json:"clusterDnsServer,omitempty"`
ClusterDomain string `json:"clusterDomain,omitempty"`
ExtraArgs map[string]string `json:"extraArgs,omitempty"`
FailSwapOn *bool `json:"failSwapOn,omitempty"`
Image string `json:"image,omitempty"`
InfraContainerImage string `json:"infraContainerImage,omitempty"`
}