Skip to content

Commit

Permalink
fix issues reported by linter
Browse files Browse the repository at this point in the history
  • Loading branch information
m00g3n committed May 8, 2024
1 parent 3c23b68 commit 8fb13aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
11 changes: 0 additions & 11 deletions internal/controller/runtime_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,9 @@ type RuntimeReconciler struct {
//+kubebuilder:rbac:groups=infrastructuremanager.kyma-project.io,resources=runtimes/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=infrastructuremanager.kyma-project.io,resources=runtimes/finalizers,verbs=update

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
// TODO(user): Modify the Reconcile function to compare the state specified by
// the Runtime object against the actual cluster state, and then
// perform operations to make the cluster state reflect the state specified by
// the user.
//
// For more details, check Reconcile and its Result here:
// - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.3/pkg/reconcile
func (r *RuntimeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
_ = log.FromContext(ctx)

// TODO(user): your logic here

return ctrl.Result{}, nil
}

Expand Down
3 changes: 0 additions & 3 deletions internal/controller/runtime_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ var _ = Describe("Runtime Controller", func() {
})

AfterEach(func() {
// TODO(user): Cleanup logic after each test, like removing the resource instance.
resource := &imv1.Runtime{}
err := k8sClient.Get(ctx, typeNamespacedName, resource)
Expect(err).NotTo(HaveOccurred())
Expand All @@ -83,8 +82,6 @@ var _ = Describe("Runtime Controller", func() {
NamespacedName: typeNamespacedName,
})
Expect(err).NotTo(HaveOccurred())
// TODO(user): Add more specific assertions depending on your controller's reconciliation logic.
// Example: If you expect a certain status condition after reconciliation, verify it here.
})
})
})

0 comments on commit 8fb13aa

Please sign in to comment.