-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
add unit tests #44
Conversation
6ceca40
to
d1a58db
Compare
b38cfe9
to
61df9ae
Compare
ff8b08d
to
eae7221
Compare
|
||
// Reconciler creation | ||
var mgr manager.Manager | ||
Eventually(func() error { |
There was a problem hiding this comment.
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(), |
There was a problem hiding this comment.
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(), |
There was a problem hiding this comment.
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
Towards https://github.com/giantswarm/giantswarm/issues/28196