|
92 | 92 | ) |
93 | 93 |
|
94 | 94 | const ( |
95 | | - writeFilePermission = 0644 |
96 | | - lockTimeout = 30 |
97 | 95 | notInstalledMessage = "Not installed yet and action is uninstall" |
98 | 96 | defaultMaxHistory = 2 |
99 | 97 | defaultDeletionPropagation = "background" |
@@ -183,7 +181,11 @@ func deployHelmCharts(ctx context.Context, c client.Client, |
183 | 181 | return nil |
184 | 182 | } |
185 | 183 |
|
186 | | - return postProcessDeployedHelmCharts(ctx, clusterSummary, kubeconfig, mgmtResources, logger) |
| 184 | + err = postProcessDeployedHelmCharts(ctx, clusterSummary, kubeconfig, mgmtResources, logger) |
| 185 | + if err != nil { |
| 186 | + logger.V(logs.LogInfo).Error(err, "failed to deploy helmCharts") |
| 187 | + } |
| 188 | + return err |
187 | 189 | } |
188 | 190 |
|
189 | 191 | func postProcessDeployedHelmCharts(ctx context.Context, clusterSummary *configv1beta1.ClusterSummary, |
@@ -338,7 +340,11 @@ func undeployHelmCharts(ctx context.Context, c client.Client, |
338 | 340 | } |
339 | 341 | defer closer() |
340 | 342 |
|
341 | | - return undeployHelmChartResources(ctx, c, clusterSummary, kubeconfig, logger) |
| 343 | + err = undeployHelmChartResources(ctx, c, clusterSummary, kubeconfig, logger) |
| 344 | + if err != nil { |
| 345 | + logger.V(logs.LogInfo).Error(err, "failed to undeploy HelmCharts") |
| 346 | + } |
| 347 | + return err |
342 | 348 | } |
343 | 349 |
|
344 | 350 | func undeployHelmChartsInPullMode(ctx context.Context, c client.Client, clusterSummary *configv1beta1.ClusterSummary, |
|
0 commit comments