Discrepancy between spec.installConfig.users
and users used to run components
#4265
Open
4 tasks done
Labels
bug
Something isn't working
Before creating an issue, make sure you've checked the following:
Platform
Version
main branch
Sysinfo
N/A
What happened?
K0s provides a way to specify users to be created during installation. That's what
spec.installConfig.users
is used for. However, these users are not used for anything else. In particular, the users used to run the components are hard-coded.Steps to reproduce
spec.installConfig.users
so that it deviates from the defaults.k0s install
with that config.Expected behavior
I suppose the most common expectation would be that the users to be installed are also the users used to run the supervised components.
Actual behavior
The configured users are being created. However, the default users are tried when running the components.
Screenshots and logs
No response
Additional context
The location and naming of the users within the config spec hierarchy seems appropriate for their actual use, although the current implementation makes me wonder if having these config fields at all is useful.
On the other hand, changing the hard-coded defaults to use the configured usernames would make the config naming bad.
The text was updated successfully, but these errors were encountered: