This is a simple golang projects that takes a set of openshift buildconfigs and converts them to the equivalent build manifests used in 'shipwright'.
This was succesfully tested with golang 1.19.3. I have tried to keep coverage over 90%
git clone git@github.com:lmzuccarelli/golang-buildconfig-converter
cd golang-buildconfig-converter-
make clean
make build
Generate the relevant build manifests by pointing to a directory with buildconfigs
Execute the following command
# setup a simple config.yaml file
cat << EOF > config.yaml
apiVersion: 0.0.1
kind: Config
metadata:
name: converter-config
spec:
workingDirectory: working-dir
buildConfigPath: ../okd-payload-pipeline/buildconfigs
EOF
# this will generate the shipwright builds to the working directory
./build/convert -c config.yaml