Skip to content

Commit

Permalink
Set State to InstanceCreating for nodes that failed to join cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
vbhargav875 committed Jun 26, 2024
1 parent 47486ed commit 4ab159b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ func (m *ociManagerImpl) GetNodePoolNodes(np NodePool) ([]cloudprovider.Instance
instances = append(instances, cloudprovider.Instance{
Id: *node.Id,
Status: &cloudprovider.InstanceStatus{
State: cloudprovider.InstanceCreating,
ErrorInfo: &cloudprovider.InstanceErrorInfo{
ErrorClass: errorClass,
ErrorCode: *node.NodeError.Code,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func TestGetNodePoolNodes(t *testing.T) {
{
Id: "node6",
Status: &cloudprovider.InstanceStatus{
State: cloudprovider.InstanceCreating,
ErrorInfo: &cloudprovider.InstanceErrorInfo{
ErrorClass: cloudprovider.OtherErrorClass,
ErrorCode: "unknown",
Expand Down

0 comments on commit 4ab159b

Please sign in to comment.