Aks-engine: Multiple SSH keys in linuxProfile

Created on 15 Feb 2019  路  3Comments  路  Source: Azure/aks-engine

Is this a request for help?:

YES


Is this an ISSUE or FEATURE REQUEST? (choose one):

ISSUE


What version of aks-engine?:

v0.30


Kubernetes version:
1.13.3

What happened:
Adding multiple SSH keys results in validation error
FATA[0000] error loading API model in generateCmd: error parsing the api model: Namespace Properties.LinuxProfile.SSH.PublicKeys is not caught, Key: 'Properties.LinuxProfile.SSH.PublicKeys' Error:Field validation for 'PublicKeys' failed on the 'len' tag

What you expected to happen:
multiple keys added to user profile

How to reproduce it (as minimally and precisely as possible):

try to generate templates from following linuxProfile

    "linuxProfile": {
      "adminUsername": "tech",
      "ssh": {
        "publicKeys": [
          {
            "keyData": "ssh-rsa key1"
          },
          {
            "keyData": "ssh-rsa key2"
          }
        ]
      }

All 3 comments

Was this page helpful?
0 / 5 - 0 ratings