Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

MachineDeployment customizations with nested arrays, fail , due to ProcessYamlObjectArrayInterfaceType. #4526

Open
@jayunit100

Description

In the MachineDeployment customizations, we parse incoming cluster objects, which look something like this:

    workers:
      machineDeployments:
      - class: tkg-worker
        metadata:
          annotations:
            run.tanzu.vmware.com/resolve-os-image: image-type=ova,os-name=ubuntu
        name: md-0
        replicas: 1
      - class: tkg-worker
        metadata:
          annotations:
            run.tanzu.vmware.com/resolve-os-image: image-type=ova,os-name=ubuntu
        name: md-1-gpu
        replicas: 1
        variables:
          overrides:
          - name: worker
            value:
              count: 1
              machine:
                customVMXKeys:
                  pciPassthru.64bitMMIOSizeGB: "16"
                  pciPassthru.RelaxACSforP2P: "true"
                  pciPassthru.allowP2P: "true"
                  pciPassthru.use64bitMMIO: "true"
                diskGiB: 300
                memoryMiB: 16384
                numCPUs: 4
                hardwareVersion: vmx-17

The above code works fine, but if we add another map, which has an array in it `map[string]interface .....

                devices:
                - deviceId: 1234 <-- this fails
                  vendorId: 6789

It fails. Thats because it appears we dont parse nested lists. In the linked PR ive attached a PR that reproduces this, so it can be easy to fix now.

Metadata

Assignees

No one assigned

    Labels

    area/lcmRelated to Cluster Lifecycle managementkind/bugPR/Issue related to a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions