airshipctl/krm-functions/cloud-init/README.md
Vladimir Kozhukalov 6523c800ad Build ephemeral iso using generic container
We build iso image in two steps
 1) We prepare cloud-init data using a krm function
    krm-functions/cloud-init which uses arishipctl capabilities
    to gather necessary data from the executor document bundle.
    Cloud-init data files are written into a directory mounted
    to the krm function container.
 2) We build iso image using image-builder. While doing this
    we mount the directory with cloud-init data files and set
    necessary environment variables defined in the executor
    document.

Relates-To: #440
Change-Id: Id0b34822e95f494d2e2f8fb407700b7f873e7c69
2021-02-25 13:08:31 +00:00

7 lines
403 B
Markdown

# Cloud-init
This function generates yaml files (user-data and network-data) needed for building the bootstrap ISO image.
It assumes a `ResourceList` is passed to its input where `items` field is a phase executor document bundle
that contains necessary data. To get the data from the bundle the `functionConfig` field must contain
`IsoConfiguration` document that defines document selector parameters.