-
Notifications
You must be signed in to change notification settings - Fork 56
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
Node Pool Labels does nothing #306
Comments
This is likely an issue in the API but I'll review the logic in govultr to be sure. |
With this update code: newLabels := map[string]string{
"label-test": "test-label",
"label-test-2": "test-label-2",
}
np, _, err := client.Kubernetes.UpdateNodePool(ctx, vkeID, nodePoolID, &govultr.NodePoolReqUpdate{
Labels: newLabels,
}) I get labels in kubernetes.
Will you share what code you're using with govultr to apply the labels? |
Thanks, @optik-aper. I only tried creating a Cluster with Node Pools Labels defined. nps := []govultr.NodePoolReq{
...
Labels: map[string]string{
"key": "val",
},
}
c, _, err := v.client.Kubernetes.CreateCluster(context.Background(), &govultr.ClusterReq{
Label: "<NAME>",
Region: "<REGION>",
Version: "<VERSION>",
NodePools: nps,
}) I haven't tried updating a Node Pool. I thought creating the Cluster with Node Pool Labels defined would be enough |
Ah, yes. It appears that the create node pool doesn't process labels. But that's not govultr's doing; the create params don't include them in the API. We'll have to address that there. But you ought to be able to create and then update at this point. |
Ah, thank you for the heads up, @optik-aper. It's great to know that this can be achieved with Update |
I'll keep this open until we decide how to fix the create labels but I think it will be added soon. |
Vultr API - Create NodePools
I added multiple key/value pairs for
labels
usinggovultr
, but these labels are not applied to the nodes according tokubectl get no --show-labels
I'm confused what is the point of specifying
labels
if they are not applied to nodes. Also, these labels don't appear in the Vultr Web UIBasically, the
labels
field does nothingThe text was updated successfully, but these errors were encountered: