Skip to content

Commit

Permalink
Merge pull request denverdino#491 from Pangjiping/pjp/feature/kubelet
Browse files Browse the repository at this point in the history
nodepool support kubelet params
  • Loading branch information
menglingwei authored Aug 5, 2022
2 parents 7034e8b + f7682e2 commit 1c3c5cd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions cs/node_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,31 @@ type UpgradeConf struct {
KeepSurgeOnFailed *bool `json:"keep_surge_on_failed"`
}

type NodeConfig struct {
KubeletConfiguration `json:"kubelet_configuration,omitempty"`
RolloutPolicy `json:"rollout_policy,omitempty"`
}

type KubeletConfiguration struct {
CpuManagerPolicy *string `json:"cpuManagerPolicy,omitempty"`
EventBurst *int64 `json:"eventBurst,omitempty"`
EventRecordQPS *int64 `json:"eventRecordQPS,omitempty"`
EvictionHard map[string]interface{} `json:"evictionHard,omitempty"`
EvictionSoft map[string]interface{} `json:"evictionSoft,omitempty"`
EvictionSoftGracePeriod map[string]interface{} `json:"evictionSoftGracePeriod,omitempty"`
KubeAPIBurst *int64 `json:"kubeAPIBurst,omitempty"`
KubeAPIQPS *int64 `json:"kubeAPIQPS,omitempty"`
KubeReserved map[string]interface{} `json:"kubeReserved,omitempty"`
RegistryBurst *int64 `json:"registryBurst,omitempty"`
RegistryPullQPS *int64 `json:"registryPullQPS,omitempty"`
SerializeImagePulls *bool `json:"serializeImagePulls,omitempty"`
SystemReserved map[string]interface{} `json:"systemReserved,omitempty"`
}

type RolloutPolicy struct {
MaxUnavailable *int64 `json:"max_unavailable,omitempty"`
}

type CreateNodePoolRequest struct {
RegionId common.Region `json:"region_id"`
Count int64 `json:"count"`
Expand All @@ -129,6 +154,7 @@ type CreateNodePoolRequest struct {
AutoScaling `json:"auto_scaling"`
TEEConfig `json:"tee_config"`
Management `json:"management"`
NodeConfig `json:"node_config,omitempty"`
}

type BasicNodePool struct {
Expand Down Expand Up @@ -172,6 +198,7 @@ type UpdateNodePoolRequest struct {
KubernetesConfig `json:"kubernetes_config"`
AutoScaling `json:"auto_scaling"`
Management `json:"management"`
NodeConfig `json:"node_config,omitempty"`
}

type NodePoolsDetail struct {
Expand Down

0 comments on commit 1c3c5cd

Please sign in to comment.