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
This commit is contained in:
Manoj Alva(ma257n) 2021-04-05 15:59:15 +00:00
parent 1db18e72c9
commit e9c0a672d0

View File

@ -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