Some updates
Some checks failed
Lint / Run on Ubuntu (push) Has been cancelled
E2E Tests / Run on Ubuntu (push) Has been cancelled
Tests / Run on Ubuntu (push) Has been cancelled

Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit is contained in:
2025-07-15 20:30:21 +02:00
parent 7c2294d9df
commit 1659245f00
5 changed files with 23 additions and 32 deletions

View File

@@ -28,6 +28,7 @@ import (
yahov1alpha1 "github.com/allanger/yaho/api/v1alpha1"
"github.com/allanger/yaho/internal/downloader"
"github.com/allanger/yaho/internal/tools/helm"
k8serrors "k8s.io/apimachinery/pkg/api/errors"
)
@@ -78,9 +79,10 @@ func (r *HelmReleaseReconciler) Reconcile(ctx context.Context, req ctrl.Request)
return reconcileResult, nil
}
log.Info("Pulled a chart", "path", path)
//path, err := downloader.PullChart(repository, chart, version)
//if err != nil { return ... }
//err := helm.InstallOrUpdate(); if err != nil { return ...}
helmlib := &helm.HelmLib{}
if err := helmlib.InstallChart(ctx, path, helmReleaseCR.Name, helmReleaseCR.Namespace); err != nil {
return reconcileResult, nil
}
return ctrl.Result{}, nil
}