Skip to content

Commit

Permalink
Attempt to fix flatcar - remove duplicate preKubeadmCommands
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbonney committed Jan 10, 2024
1 parent 85684cf commit c9bc344
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions magnum_cluster_api/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,14 @@ def get_object(self) -> objects.ClusterClass:
),
},
},
{
"op": "add",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands",
"value": [
"systemctl daemon-reload",
"systemctl restart containerd",
],
},
],
},
{
Expand Down Expand Up @@ -1279,6 +1287,14 @@ def get_object(self) -> objects.ClusterClass:
),
},
},
{
"op": "add",
"path": "/spec/template/spec/preKubeadmCommands",
"value": [
"systemctl daemon-reload",
"systemctl restart containerd",
],
},
],
},
],
Expand All @@ -1303,6 +1319,8 @@ def get_object(self) -> objects.ClusterClass:
textwrap.dedent(
"""\
bash -c "sed -i 's/__REPLACE_NODE_NAME__/$(hostname -s)/g' /etc/kubeadm.yml"
systemctl daemon-reload
systemctl restart containerd
""" # noqa: E501
)
],
Expand Down Expand Up @@ -1368,6 +1386,8 @@ def get_object(self) -> objects.ClusterClass:
textwrap.dedent(
"""\
bash -c "sed -i 's/__REPLACE_NODE_NAME__/$(hostname -s)/g' /etc/kubeadm.yml"
systemctl daemon-reload
systemctl restart containerd
""" # noqa: E501
)
],
Expand Down Expand Up @@ -1753,14 +1773,6 @@ def get_object(self) -> objects.ClusterClass:
)
},
},
{
"op": "add",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands",
"value": [
"systemctl daemon-reload",
"systemctl restart containerd",
],
},
],
},
{
Expand Down Expand Up @@ -1834,14 +1846,6 @@ def get_object(self) -> objects.ClusterClass:
),
},
},
{
"op": "add",
"path": "/spec/template/spec/preKubeadmCommands",
"value": [
"systemctl daemon-reload",
"systemctl restart containerd",
],
},
],
},
],
Expand Down

0 comments on commit c9bc344

Please sign in to comment.