Skip to content

Commit

Permalink
delete commented out code
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Sep 30, 2024
1 parent ddbaca0 commit 879f40c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/internal/packager/helm/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,6 @@ func (h *Helm) InstallOrUpgradeChart(ctx context.Context) (types.ConnectStrings,
return nil, "", fmt.Errorf("unable to build the resource list: %w", err)
}

// healthChecks := []object.ObjMetadata{}
// for _, resource := range resourceList {
// gvk := resource.Object.GetObjectKind().GroupVersionKind()
// healthChecks = append(healthChecks, object.ObjMetadata{
// GroupKind: schema.GroupKind{
// Group: gvk.Group,
// Kind: gvk.Kind,
// },
// Name: resource.Name,
// Namespace: resource.Namespace,
// })
// }
healthChecks := []v1alpha1.NamespacedObjectKindReference{}
for _, resource := range resourceList {
apiVersion, kind := resource.Object.GetObjectKind().GroupVersionKind().ToAPIVersionAndKind()
Expand All @@ -152,10 +140,6 @@ func (h *Helm) InstallOrUpgradeChart(ctx context.Context) (types.ConnectStrings,
healthChecksCtx, cancel := context.WithTimeout(ctx, h.timeout)
defer cancel()
spinner.Updatef("Running health checks")
fmt.Println("this is the health checks", healthChecks)
// if err := healthchecks.Assess(healthChecksCtx, time.Second, h.cluster, time.Minute*5, healthChecks...); err != nil {
// return nil, "", err
// }
if err := healthchecks.Run(healthChecksCtx, h.cluster.Watcher, healthChecks); err != nil {
return nil, "", err
}
Expand Down

0 comments on commit 879f40c

Please sign in to comment.