-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix linting and add some type_aliases #5
Conversation
rwaffen
commented
Feb 23, 2023
- Fix linitng od classes and defines
- Add Types to have shorter class headers
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.
A first glance looks reasonable, though I've got some thoughts on the choice of several of the type names
sure, will change the names. just took 'em from the variable names. |
uff, there are a lot of rubocop recommendations 😓 but i din't touched this, was it like this before? |
Stdlib::Fqdn, | ||
Stdlib::IP::Address::Nosubnet, |
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.
This feels like Stdlib::Host, but isn't quite that. Perhaps stdlib should start using the non-compat IP addresses instead.
These comes in with the module sync. I was thinking about to take care of these later this week or next week |
I'd suggest to disable RuboCop in CI until you fix it. voxpupuli/modulesync_config@89c424e should make it easy. That at least gives you unit tests etc. |
@ananace had to change it like this, otherwise i couldn't get the tests running again ¯_(ツ)_/¯ you recommended this in #5 (comment)
|
@@ -157,11 +154,7 @@ | |||
|
|||
file { '/etc/sysctl.d/99-k8s.conf': |
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.
for future refrence: we should replace this with our sysctl module
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.
was thinking of this, but didnt wanted to inflate the pr much more ^^
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 added #7 to keep track of that
@@ -137,10 +137,7 @@ | |||
|
|||
file { '/etc/modules-load.d/k8s': | |||
ensure => $ensure, |
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.
for future reference: we should update this with our kmod module.
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.
#8 is there to keep track
Co-authored-by: Tim Meusel <tim@bastelfreak.de>
@rwaffen The comment was more that there were two types with the only difference being that one was Optional, the code as listed here is correct - a.k.a. in this case it should be an empty array I should probably go through and make sure things are more consistent in the use of Optional and default values |
I've only done some cursory glances as said, but only got a couple of nitpicks with casing and such left, things that don't necessarily need to be part of this PR |