![Vladimir Kozhukalov](/assets/img/avatar_default.png)
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
Generating zz_generated.deepcopy.go in api/v1alpha1
This directory contains the data types needed by airshipctl phase run command.
When you add a new data structure in this directory you will need to generate the file zz_generated.deepcopy.go. To generate this file you will need the tool *controller-gen" executable.
If you don't have controller-gen in your machine, clone the following repository and compile it.
git clone https://github.com/kubernetes-sigs/controller-tools.git
cd controller-tools/cmd/controller-gen
go build -o controller-gen
Now you can generate the zz_generated.deepcopy.go using controller-gen as follow:
/path/to/controller-gen object paths=/path/to/airshipctl/pkg/api/v1alpha1/
At this point you should have a newly generated zz_generated.deepcopy.go. Just check if your data structure has been added to this file and you are good to go.
TODO: Add this task in the Makefile