From e9c0a672d03053529074b589319a360e62e78b94 Mon Sep 17 00:00:00 2001 From: "Manoj Alva(ma257n)" Date: Mon, 5 Apr 2021 15:59:15 +0000 Subject: [PATCH] Fix for VRRP preKubeadmcommand list concatenating to a single line The following construct in #94 fix using patchesJsonMerge - op: add path: "/spec/kubeadmConfigSpec/preKubeadmCommands/-" value: apt-get update && apt-get install -y bridge-utils keepalived ipset ipvsadm systemctl enable --now keepalived This leads to the prekubeadmcommand listed as a single line. This PS fixes this issue. Also airshipctl #10 needs all system updates/intall to be moved to Imagebuilder. Closes: #212 Change-Id: I624de71d2009178670291dc82bd55824ce59e18d --- .../function/k8scontrol-ha/vrrp_keepalived_patch.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/manifests/function/k8scontrol-ha/vrrp_keepalived_patch.yaml b/manifests/function/k8scontrol-ha/vrrp_keepalived_patch.yaml index e18a0bc35..b6b6196d3 100644 --- a/manifests/function/k8scontrol-ha/vrrp_keepalived_patch.yaml +++ b/manifests/function/k8scontrol-ha/vrrp_keepalived_patch.yaml @@ -29,5 +29,10 @@ - op: add path: "/spec/kubeadmConfigSpec/preKubeadmCommands/-" value: - apt-get update && apt-get install -y bridge-utils keepalived ipset ipvsadm + # Please note the a list of string get appended.It is better to + # add one item at a time using op: add systemctl enable --now keepalived +- op: add + path: "/spec/kubeadmConfigSpec/preKubeadmCommands/-" + value: + systemctl restart keepalived