Skip to content

Commit

Permalink
Revert "chore: tune kubeadmConfigSpec files"
Browse files Browse the repository at this point in the history
This reverts commit 88a17d1.
  • Loading branch information
okozachenko1203 authored Dec 15, 2023
1 parent f4a5b20 commit ad90864
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions magnum_cluster_api/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1594,6 +1594,21 @@ def get_object(self) -> objects.ClusterClass:
"variable": "kubeletTLSCipherSuites",
},
},
{
"op": "add",
"path": "/spec/template/spec/kubeadmConfigSpec/files/-",
"valueFrom": {
"template": textwrap.dedent(
"""\
path: "/etc/containerd/config.toml"
owner: "root:root"
permissions: "0644"
content: "{{ .containerdConfig }}"
encoding: "base64"
"""
)
},
},
{
"op": "add",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/certSANs", # noqa: E501
Expand All @@ -1614,11 +1629,6 @@ def get_object(self) -> objects.ClusterClass:
"valueFrom": {
"template": textwrap.dedent(
"""\
- path: "/etc/containerd/config.toml"
owner: "root:root"
permissions: "0644"
content: "{{ .containerdConfig }}"
encoding: "base64"
- path: "/etc/kubernetes/cloud.conf"
owner: "root:root"
permissions: "0600"
Expand Down

0 comments on commit ad90864

Please sign in to comment.