Some updates
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user