Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkab committed Jul 1, 2019
1 parent dc287da commit c021ec8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions components/kyma-operator/pkg/kymainstallation/stepsfactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ func newStepsFactory(helmClient kymahelm.ClientInterface) (*stepFactory, error)

installedReleases := make(map[string]bool)

releasesRes, err := helmClient.ListReleases()
list, err := helmClient.ListReleases()
if err != nil {
return nil, errors.New("Helm error: " + err.Error())
}

if releasesRes != nil {
if list != nil {
log.Println("Helm releases list:")
for _, release := range releasesRes.Releases {
for _, release := range list.Releases {
statusCode := release.Info.Status.Code
log.Printf("%s status: %s", release.Name, statusCode)
if statusCode == rls.Status_DEPLOYED {
Expand Down
4 changes: 2 additions & 2 deletions components/kyma-operator/pkg/steps/installation.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ func (steps *InstallationSteps) UninstallKyma(installationData *config.Installat
err := steps.DeprovisionAzureResources(DefaultDeprovisionConfig(), installationData.Context)
steps.errorHandlers.LogError("An error during deprovisioning: ", err)

_ = steps.statusManager.InProgress("Verify installed components")
_ = steps.statusManager.InProgress("Verify components to uninstall")

stepsFactory, factoryErr := kymainstallation.NewUninstallStepFactory(steps.helmClient)
if factoryErr != nil {
_ = steps.statusManager.Error("Kyma Operator", "Verify installed components", factoryErr)
_ = steps.statusManager.Error("Kyma Operator", "Verify components to uninstall", factoryErr)
return factoryErr
}

Expand Down

0 comments on commit c021ec8

Please sign in to comment.