Skip to content

Commit

Permalink
allow getting node pool name
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodeassassin committed Jul 2, 2022
1 parent 5e0115d commit 9032d78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions node_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const (

type NodePool struct {
ID string `json:"id"`
Name string `json:"name"`
NodeTypeName string `json:"nodeTypeName"`
ClusterName string `json:"clusterName"`
DesiredQuantity int `json:"desiredQuantity"`
Expand Down
2 changes: 2 additions & 0 deletions node_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
const nodePoolJSON = `
{
"Id": "test",
"name": "test",
"clusterName": "test",
"nodeTypeName": "general-1",
"quantity": 2,
Expand Down Expand Up @@ -49,6 +50,7 @@ func TestDescribeNodePool(t *testing.T) {

assert.Nil(t, err)
assert.Equal(t, fakeNodePool, nodePool)
assert.Equal(t, fakeNodePool.Name, "test")
assert.Equal(t, fakeNodePool.Labels[0].Key, "hello")
assert.Equal(t, fakeNodePool.Labels[0].Value, "world")
assert.Equal(t, fakeNodePool.Taints[0].Effect, EFFECT_NO_SCHEDULE)
Expand Down

0 comments on commit 9032d78

Please sign in to comment.