Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUT method ​/k8s​/{k8sClusterId}​/nodepools​/{nodepoolId} #5

Open
LiviusP opened this issue Apr 9, 2021 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@LiviusP
Copy link
Collaborator

LiviusP commented Apr 9, 2021

Description

I am running a K8s in the IC and need an important feature in from the CloudAPIv6. I noticed a bug in the Swagger API. We need in a DHCP: false in the Kubernetes LANs. Only this field is marked as not requierd in the swagger api. Which causes an omit in the data model when generating code. Now if I use the SDK/generated code and set DHCP=> False the JSON object will not have the DHCP as a field. But the default in the API is on "server" side that then DHCP-True is set. But this is not my intention.

KubernetesNodePoolLan struct for KubernetesNodePoolLan
type KubernetesNodePoolLan struct {
	// The LAN ID of an existing LAN at the related datacenter
	Id *int32 `json:"id,omitempty"`
	// Indicates if the Kubernetes Node Pool LAN will reserve an IP using DHCP
	Dhcp *bool `json:"dhcp,omitempty"`
	// array of additional LANs attached to worker nodes
	Routes *[]KubernetesNodePoolLanRoutes `json:"routes,omitempty"`
}
PUT
​/k8s​/{k8sClusterId}​/nodepools​/{nodepoolId}
Modify Kubernetes Node Pool

Expected behavior

Please check the entire PUT method ​/k8s​/{k8sClusterId}​/nodepools​/{nodepoolId} as it seems other parameters are missing too.

Environment

GO version:

SDK version:

6.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant