Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit a2fd3dd

Browse files
change the type of parameter InitialNodeCount from 'int' to '*int' to allow 0 value
1 parent 73af80b commit a2fd3dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openstack/cce/v3/nodepools/requests.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ type CreateSpec struct {
113113
// Node template
114114
NodeTemplate nodes.Spec `json:"nodeTemplate" required:"true"`
115115
// Initial number of expected nodes
116-
InitialNodeCount int `json:"initialNodeCount" required:"true"`
116+
InitialNodeCount *int `json:"initialNodeCount" required:"true"`
117117
// Auto scaling parameters
118118
Autoscaling AutoscalingSpec `json:"autoscaling"`
119119
// Node management parameters
@@ -185,7 +185,7 @@ type UpdateSpec struct {
185185
// Node template
186186
NodeTemplate nodes.Spec `json:"nodeTemplate"`
187187
// Initial number of expected nodes
188-
InitialNodeCount int `json:"initialNodeCount" required:"true"`
188+
InitialNodeCount *int `json:"initialNodeCount" required:"true"`
189189
// Auto scaling parameters
190190
Autoscaling AutoscalingSpec `json:"autoscaling"`
191191
}

0 commit comments

Comments
 (0)