Skip to content

Use configured install users for controller components#7594

Open
twz123 wants to merge 1 commit into
k0sproject:mainfrom
twz123:use-install-users-for-execution
Open

Use configured install users for controller components#7594
twz123 wants to merge 1 commit into
k0sproject:mainfrom
twz123:use-install-users-for-execution

Conversation

@twz123

@twz123 twz123 commented May 8, 2026

Copy link
Copy Markdown
Member

Description

Although the install command creates custom system users during installation, the controller components still use hard-coded default user names.

Use the users specified in the config's install section for the generated certificates and kubeconfigs, as well as for executing the supervised processes. The config naming is unfortunate because it is now used during both installation and execution. However, if the users are not used for execution creating them during installation is futile.

Fixes:

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

How Has This Been Tested?

  • Manual test
  • Auto test added

Checklist

  • My code follows the style guidelines of this project
  • My commit messages are signed-off
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

@twz123 twz123 marked this pull request as ready for review May 9, 2026 08:40
@twz123 twz123 requested review from a team as code owners May 9, 2026 08:40
@twz123 twz123 requested review from juanluisvaladas and ncopa May 9, 2026 08:40
ncopa
ncopa previously approved these changes May 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that need to be resolved.

Although the install command creates custom system users during
installation, the controller components still use hard-coded default
user names.

Use the users specified in the config's install section for the generated
certificates and kubeconfigs, as well as for executing the supervised processes.
The config naming is unfortunate because it is now used during both installation
and execution. However, if the users are not used for execution creating them
during installation is futile.

Signed-off-by: Tom Wieczorek <twieczorek@mirantis.com>
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that need to be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants