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

Strict patch #2968

Closed
wants to merge 5 commits into from
Closed

Strict patch #2968

wants to merge 5 commits into from

Conversation

ktsakalozos
Copy link
Member

No description provided.

@ktsakalozos ktsakalozos requested a review from joedborg as a code owner March 8, 2022 13:45
@ktsakalozos ktsakalozos force-pushed the MK-342/split-core-addons-strict branch 8 times, most recently from 68cfa91 to ccb645c Compare March 11, 2022 16:01
@ktsakalozos ktsakalozos force-pushed the MK-342/split-core-addons-strict branch 2 times, most recently from 65e6182 to 9e378a5 Compare March 17, 2022 22:34
@ktsakalozos ktsakalozos changed the title WIP Mk 342/split core addons strict Strict patch Mar 18, 2022
build-scripts/patches/0000-Kubelite-integration.patch Outdated Show resolved Hide resolved
docs/build.md Outdated Show resolved Hide resolved
@@ -123,7 +123,7 @@ refresh_opt_in_local_config() {
if $(grep -qE "^$opt=" $config_file); then
run_with_sudo "$SNAP/bin/sed" -i "s@^$opt=.*@$replace_line@" $config_file
else
run_with_sudo "$SNAP/bin/sed" -i "$ a $replace_line" "$config_file"
run_with_sudo "$SNAP/bin/sed" -i "1i$replace_line" "$config_file"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this on purpose?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this is on purpose. The way run_with_sudo works at the moment does not allow for spaces in the arguments passed.

Comment on lines 669 to 678
if (is_strict)
then
snapctl kill snap.microk8s.daemon-kubelite.service --signal=SIGKILL &>/dev/null || true
snapctl kill snap.microk8s.daemon-kubelet.service --signal=SIGKILL &>/dev/null || true
snapctl kill snap.microk8s.daemon-containerd.service --signal=SIGKILL &>/dev/null || true
else
run_with_sudo systemctl kill snap.microk8s.daemon-kubelite.service --signal=SIGKILL &>/dev/null || true
run_with_sudo systemctl kill snap.microk8s.daemon-kubelet.service --signal=SIGKILL &>/dev/null || true
run_with_sudo systemctl kill snap.microk8s.daemon-containerd.service --signal=SIGKILL &>/dev/null || true
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this diff be reduced already?

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

@ktsakalozos ktsakalozos force-pushed the MK-342/split-core-addons-strict branch from 9e378a5 to bab9881 Compare March 18, 2022 09:46
@ktsakalozos
Copy link
Member Author

The PR #2996 is to be used from now on.

@neoaggelos neoaggelos deleted the MK-342/split-core-addons-strict branch February 28, 2023 22:00
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.

2 participants