This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix/cleanup] This PR fixes using of multiple sources and cleans up H…
…elm provisioner - Create a new fs from source, only if destination is specified. This allows specifying multiple sources. - Remove helm provisioner related manifests and controller. Signed-off-by: Varsha Prasad Narsing <[email protected]>
- Loading branch information
1 parent
7136f73
commit f4dbc9b
Showing
20 changed files
with
78 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ import ( | |
"sigs.k8s.io/controller-runtime/pkg/cache" | ||
"sigs.k8s.io/controller-runtime/pkg/client/apiutil" | ||
"sigs.k8s.io/controller-runtime/pkg/reconcile" | ||
"sigs.k8s.io/controller-runtime/pkg/source" | ||
|
||
v1alpha2deployer "github.com/operator-framework/rukpak/internal/controllers/v1alpha2/deployer" | ||
v1alpha2source "github.com/operator-framework/rukpak/internal/controllers/v1alpha2/source" | ||
|
@@ -50,7 +51,6 @@ import ( | |
"sigs.k8s.io/controller-runtime/pkg/handler" | ||
"sigs.k8s.io/controller-runtime/pkg/log" | ||
"sigs.k8s.io/controller-runtime/pkg/manager" | ||
"sigs.k8s.io/controller-runtime/pkg/source" | ||
crsource "sigs.k8s.io/controller-runtime/pkg/source" | ||
) | ||
|
||
|
@@ -100,7 +100,6 @@ func WithDeployer(u v1alpha2deployer.Deployer) Option { | |
// For more details, check Reconcile and its Result here: | ||
// - https://pkg.go.dev/sigs.k8s.io/[email protected]/pkg/reconcile | ||
func (b *bundleDeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { | ||
fmt.Println("reconciling") | ||
log := log.FromContext(ctx) | ||
|
||
existingBD := &v1alpha2.BundleDeployment{} | ||
|
@@ -116,6 +115,7 @@ func (b *bundleDeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Req | |
|
||
// Skip reconciling if `spec.paused` is set. | ||
if existingBD.Spec.Paused { | ||
log.Info("bundledeployment has been paused for reconciliation", "bundle deployment name", existingBD.Name) | ||
return ctrl.Result{}, nil | ||
} | ||
|
||
|
@@ -192,7 +192,6 @@ func (b *bundleDeploymentReconciler) reconcile(ctx context.Context, bd *v1alpha2 | |
return ctrl.Result{}, fmt.Errorf("unkown deploy state %q for bundle deployment %s: %v", deployRes.State, bd.GetName(), bd.Generation) | ||
} | ||
|
||
fmt.Println("deplpoy done") | ||
for _, obj := range deployRes.AppliedObjects { | ||
uMap, err := runtime.DefaultUnstructuredConverter.ToUnstructured(obj) | ||
if err != nil { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.