Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add unit tests #44

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

add unit tests #44

wants to merge 15 commits into from

Conversation

QuantumEnigmaa
Copy link
Contributor

@QuantumEnigmaa QuantumEnigmaa self-assigned this Sep 27, 2023

// Reconciler creation
var mgr manager.Manager
Eventually(func() error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the idea is that we do not use a manager in tests

}

loggingReconciler := loggingreconciler.LoggingReconciler{
Client: mgr.GetClient(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'd replace the getClient by te k8sClient


promtailReconciler := promtailtoggle.Reconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And we probably do not even need a scheme here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants