Uploaded image for project: 'ENTSBT'
  1. ENTSBT
  2. ENTSBT-1562

Lack of documentation information explaining how to configure the propagationMethod -> configDrive

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

        1. Issue

      Lack of documentation information explaining how to configure the propagationMethod -> configDrive

      When we would like to pass a ssh public key mounted as kubernetes secret, the documentation explains that the VirtualMachine must include the following config

      accessCredentials:
        - sshPublicKey:
            source:
              secret:
                secretName: my-pub-key
            propagationMethod:
              configDrive: {}

      BUT if we configure the "configDrive: {}" as documented, then the process fails 

      Error from server: error when creating "vm-ocp.yml": admission webhook "mutatevirtualmachines.kubemacpool.io" denied the request: json: cannot unmarshal array into Go struct field SSHPublicKeyAccessCredentialPropagationMethod.spec.template.spec.accessCredentials.sshPublicKey.propagationMethod.configDrive of type v1.ConfigDriveSSHPublicKeyAccessCredentialPropagation

      So the documentation should be improved to explain :

      • How to create a kubernetes secret containing the user's public key
      • How to properly configure the "accessCredentials" section
      • If the "volumes/cloudInitNoCloud' should be modified
        etc

              Unassigned Unassigned
              cmoullia Charles Moulliard
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: