Skip to content

Commit

Permalink
Merge pull request denverdino#492 from Pangjiping/pjp/feature/kubelet…
Browse files Browse the repository at this point in the history
…_fix

fix struct
  • Loading branch information
menglingwei authored Aug 5, 2022
2 parents 1c3c5cd + 8c26e89 commit 076d420
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cs/node_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ type UpgradeConf struct {
}

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

type KubeletConfiguration struct {
Expand Down Expand Up @@ -154,7 +154,7 @@ type CreateNodePoolRequest struct {
AutoScaling `json:"auto_scaling"`
TEEConfig `json:"tee_config"`
Management `json:"management"`
NodeConfig `json:"node_config,omitempty"`
NodeConfig *NodeConfig `json:"node_config,omitempty"`
}

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

type NodePoolsDetail struct {
Expand Down

0 comments on commit 076d420

Please sign in to comment.