-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
None
-
False
-
-
False
-
-
-
- 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