Skip to content

Commit

Permalink
Remove unusable labels docker_registry_enabled, ingress_controller, p…
Browse files Browse the repository at this point in the history
…rometheus_monitoring from kubernetes resource_cluster
  • Loading branch information
paaanic authored and Александр Прохоров committed Sep 18, 2023
1 parent fcd09ea commit e2f579f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ description: |-
---

# VKCS Provider's changelog

#### v0.4.3 (unreleased)
- Fix Kubernetes addon state refresh panic on error

#### v0.4.2
- Add data source for images
Expand Down
8 changes: 5 additions & 3 deletions vkcs/kubernetes/addon.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ func addonStateRefreshFunc(client *gophercloud.ServiceClient, id string) retry.S
if _, ok := err.(gophercloud.ErrDefault404); ok {
return a, addonStatusDeleted, nil
}
if a.Status == addonStatusFailed {
return a, a.Status, fmt.Errorf("there was an error creating the kubernetes cluster addon: %s", err)
}
return nil, "", err
}

if a.Status == addonStatusFailed {
return a, a.Status, fmt.Errorf("the addon in failed status, retry the operation or contact support")
}

return a, a.Status, nil
}
}
Expand Down

0 comments on commit e2f579f

Please sign in to comment.