Skip to content

Duplicate array entries inserted into machine config when running talm apply #77

@hochbit

Description

@hochbit

Talos Version: TalosOS 1.11.1
Talm Version: 0.16.1

Running ´´´talm apply´´´ results in duplicated array entries in the machine config, preventing new Talos nodes from becoming ready.

The effected arrays are:

  • cluster.apiServer.certSANs
  • cluster.apiServer.admissionControl.[name=PodSecurity].exemptions.namespaces

Command:

talm apply -f nodes/node-cp-2.yaml --dry-run

Result:

@@ -63,6 +72,10 @@
         image: registry.k8s.io/kube-apiserver:v1.34.0
         certSANs:
              - 10.1.1.222
+           - 10.1.1.222    # <<<<<<< even if the template contains nothing it duplicates the entries
+            - ...
         disablePodSecurityPolicy: true
         admissionControl:
             - name: PodSecurity
@@ -78,6 +91,7 @@
                 exemptions:
                     namespaces:
                         - kube-system
+                       - kube-system     #   <<<<<<<<<
                     runtimeClasses: []
                     usernames: []
                 kind: PodSecurityConfiguration

Workaround

Apply "full" (Chart.yaml Setting) configuration with talosctl

talm -n IP -e IP  template -t templates/controlplane.yaml > nodes/mycontrolplane.yaml
talosctl apply-config -f nodes/mycontrolplane.yaml  -n IP -e IP -i

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions