Conversation
|
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
TurboTurtle
left a comment
There was a problem hiding this comment.
Overall, pretty solid. Just a couple notes, but nothing major.
| @classmethod | ||
| def check(cls, remote=""): | ||
| """This method checks to see if we are running on Arch Linux. | ||
| It returns True or False.""" |
There was a problem hiding this comment.
No need to define this in the subclass, as it is handled in the base LinuxPolicy. Just set the os_release_name class attr.
There was a problem hiding this comment.
Thanks for the feedback. I did this to support ID_LIKE as well. See: https://www.man7.org/linux/man-pages/man5/os-release.5.html#OPTIONS
Or am I missing something, and is this also supported in the base LinuxPolicy? Or should I handle this differently?
There was a problem hiding this comment.
So then it is better to extend https://github.com/sosreport/sos/blob/main/sos/policies/distros/__init__.py#L118, rather than having an extra care for one distro..?
| from sos.report.plugins.kubernetes import Kubernetes | ||
|
|
||
|
|
||
| class K3s(Kubernetes, ArchPlugin): |
There was a problem hiding this comment.
We don't have a pattern of subclassing Plugins like this (into new plugin sources).
If there is truly nothing different about the collections except the kube_cmd and a single yaml file, I'd suggest we move this into the base kubernetes plugin. I'm not super familiar with k3s myself, but aren't there a reduced number of features with k3s? If so, we'd probably see a lot of collection failures when just directly subclassing the "normal" plugin, but I definitely get not wanting to re-write a plugin as large as that one just to strip out what may not actually be a lot of collection attempts.
@pmoravec or @arif-ali happy to hear your thoughts here too.
There was a problem hiding this comment.
As far as I'm concerned, we're welcome to move this to kubernetes. I haven't noticed any issues with the collection process in the past. However, the plugin from my fork hasn't been used for quite some time. Alternatively, we could just drop it entirely, as far as I'm concerned. It doesn't have any direct connection to Arch Linux, and k3s is only available in the AUR.
There was a problem hiding this comment.
+1 for moving it under Kubernetes.
There was a problem hiding this comment.
Moved it to kubernetes as suggested.
| self.package_manager = PacmanPackageManager( | ||
| chroot=self.sysroot, remote_exec=remote_exec | ||
| ) |
Check warning
Code scanning / CodeQL
Overwriting attribute in super-class or sub-class
Thanks, @TurboTurtle for the fast feedback! Do you have any suggestions on how I can best handle the |
Signed-off-by: Marcel Wiegand <wiegand@linux.com>
Signed-off-by: Marcel Wiegand <wiegand@linux.com>
817a3ea to
8671eac
Compare
Signed-off-by: Marcel Wiegand <wiegand@linux.com>
Signed-off-by: Marcel Wiegand <wiegand@linux.com>
Signed-off-by: Marcel Wiegand <wiegand@linux.com>
Signed-off-by: Marcel Wiegand <wiegand@linux.com>
Signed-off-by: Marcel Wiegand <wiegand@linux.com>
Signed-off-by: Marcel Wiegand <wiegand@linux.com>
Signed-off-by: Marcel Wiegand <wiegand@linux.com>
Signed-off-by: Marcel Wiegand <wiegand@linux.com>
8671eac to
f178c8d
Compare
I think there are two possibilities here, one quick and easy, the other one a bit more complex:
Note: We may want to change that self.add_cmd_output to:
This solution will need that you add the _tmp_dir variable in the Arch policy, but I think that's something you should do anyway so it's consistent with most of the other policies. |
Hey,
I’d like to see support for Arch Linux, and since there hasn’t been any progress on #1198 for a while, I’ve created a new pull request to introduce a policy for Arch Linux. I’d be thrilled if the policy made it into a release. I look forward to your feedback and/or any next steps I can take to make this happen!
Thanks! 🙂
Resolves #1198
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines