Skip to content
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

Systemd free setup #507

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

cbosdo
Copy link
Contributor

@cbosdo cbosdo commented Nov 22, 2024

What does this PR change?

Change the setup to run in a separate pod or Kubernetes job.

Codespace

Check if you already have a running container clicking on Running CodeSpace

Create CodeSpace About billing for Github Codespaces CodeSpace Billing Summary CodeSpace Limit

Test coverage

  • No tests: requires end to end tests
  • DONE

Links

Issue(s): #

  • DONE

Changelogs

Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository

If you don't need a changelog check, please mark this checkbox:

  • No changelog needed

If you uncheck the checkbox after the PR is created, you will need to re-run changelog_test (see below)

Before you merge

Check How to branch and merge properly!

In some cases I had the SSL key changed between the setup container and
the real one and the postgresql key had to be copied to fix the DB
setup.
Having several functions depending how we want the exec to be handled is
cumbersone. This introduces a struct with functions to configure the
exec. So with a single object we can handle all cases.
In the kubernetes world, running the setup as an exec is really dirty as
we can't have it in an operator or helm chart. This commits benefits
from the setup script not needing systemd to run as PID1 to move the
setup in a separate container.
@cbosdo cbosdo force-pushed the systemd-free-setup branch from aea77b5 to ab115c0 Compare December 3, 2024 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant