Vladislav Kuzmin 258b81122e Add generic container executor
This executor based on kyaml.RunFns[1].
It allows to execute arbitrary container as RunFns function
and handle any input data as ExecutorBundle.
Be aware that runtimeutils.FunctionSpec used for version 0.4.1[2]
and it can be changed in the future. It means that yaml scheme
of executor can be changed during kyaml uplift.
This executor transforms executor yaml to RunFns function acceptable format.

[1] https://github.com/kubernetes-sigs/kustomize/blob/master/kyaml/runfn/runfn.go
[2] https://github.com/kubernetes-sigs/kustomize/blob/kyaml/v0.4.1/kyaml/fn/runtime/runtimeutil/functiontypes.go#L22

Change-Id: I9eb648783f1ed462d2b8359d9dc86320c4db2a83
Closes: #202
Closes: #369
2020-11-26 17:11:56 +04:00
..

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