From 88a17d1ca839ab05b7796f39cf379b5aaf723fce Mon Sep 17 00:00:00 2001 From: okozachenko1203 Date: Fri, 15 Dec 2023 04:15:26 +1100 Subject: [PATCH] chore: tune kubeadmConfigSpec files --- magnum_cluster_api/resources.py | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/magnum_cluster_api/resources.py b/magnum_cluster_api/resources.py index db736673..0b3c3566 100644 --- a/magnum_cluster_api/resources.py +++ b/magnum_cluster_api/resources.py @@ -1594,21 +1594,6 @@ 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 @@ -1629,6 +1614,11 @@ 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"