Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[traffic-gen-in-vm] Attach traffic-gen's ConfigMap to traffic gen VMI #148

Merged

Commits on Jul 19, 2023

  1. vmi: Add ConfigMap volume and disk

    In order to attach the TRex ConfigMap to the traffic gen VMI:
    1. Add a function to attach a volume pointing to an existing ConfigMap
    2. Add a function to add a disk pointing to the ConfigMap volume.
    
    Signed-off-by: Orel Misan <[email protected]>
    orelmisan committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    2dcfd00 View commit details
    Browse the repository at this point in the history
  2. Checkup: Extend cloudInit to take boot commands

    In order to mount the files from the TRex ConfigMap,
    additional boot commands should be passed in cloudInit.
    
    Enable the addition of boot commands to the function generating
    the cloud init string.
    
    Signed-off-by: Orel Misan <[email protected]>
    orelmisan committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    2003d4b View commit details
    Browse the repository at this point in the history
  3. Checkup, Setup: Attach TRex CM to traffic gen

    Pass the name of the ConfigMap when creating the traffic gen VMI.
    Use it to attach the ConfigMap volume.
    
    Add a disk to the traffic gen VMI, which will have the files from
    the ConfigMap.
    
    Add the required cloud init boot commands to mount the above disk [1].
    
    [1] http://kubevirt.io/user-guide/virtual_machines/disks_and_volumes/#configmap
    
    Signed-off-by: Orel Misan <[email protected]>
    orelmisan committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    142c2fd View commit details
    Browse the repository at this point in the history