8000 Install/uninstall system-controller container by nluaces · Pull Request #2148 · skupperproject/skupper · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Install/uninstall system-controller container #2148

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

Open
wants to merge 25 commits into
base: main
Choose a base branch
from

Conversation

nluaces
Copy link
Member
@nluaces nluaces commented Jun 4, 2025

Resolves #2149

@nluaces nluaces self-assigned this Jun 4, 2025
@nluaces nluaces requested review from fgiorgetti and c-kruse June 4, 2025 18:16
@nluaces nluaces marked this pull request as draft June 27, 2025 18:04
@nluaces nluaces force-pushed the system-install-system-controller branch from ba25364 to 09983eb Compare July 3, 2025 13:26
@nluaces nluaces requested a review from fgiorgetti July 7, 2025 17:16
10000
@nluaces nluaces marked this pull request as ready for review July 10, 2025 15:05
@nluaces nluaces requested a review from fgiorgetti July 10, 2025 15:05
Noe Luaces added 3 commits July 10, 2025 17:06
Copy link
Member
@fgiorgetti fgiorgetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is the last change needed @nluaces.
Other than that, it is working great to me with docker, podman using both rootless and rootful modes.

@@ -130,7 +130,7 @@ func (s *systemdServiceInfo) GetServiceFile() string {
if s.GetUid() == 0 {
return path.Join(s.rootSystemdBasePath, s.GetServiceName())
}
return path.Join(api.GetSystemConfigHome(), "systemd/user", s.GetServiceName())
return path.Join(api.GetHostDataHome(), "systemd/user", s.GetServiceName())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that this function should return something similar to what internal/nonkube/common/systemd.go returns on rootless cases. Example:

	if s.GetUid() == 0 {
		return path.Join(s.rootSystemdBasePath, s.GetServiceName())
	}
	return path.Join(api.GetConfigHome(), "systemd/user", s.GetServiceName())

As the intention is to get the config home to place the .service file.
And this won't be useful if the install command itself is running in a container.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now it is getting the GetConfigHome value instead. Thanks!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Along with what you have done, I believe you need to get rid of the if block api.IsRunningInContainer,
as it will only be used when running outside of a container anyway.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@nluaces nluaces requested a review from fgiorgetti July 14, 2025 15:47
Copy link
Member
@fgiorgetti fgiorgetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

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.

Include system-controller container as part of the system install command
2 participants
0