Skip to content

A simple golang program that converts openshift buildconfigs to shipwright builds

Notifications You must be signed in to change notification settings

lmzuccarelli/golang-buildconfig-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple openshift buildconfig converter to shipwright build manifests

Intro

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%

Clone the repository and build

git clone git@github.com:lmzuccarelli/golang-buildconfig-converter

cd golang-buildconfig-converter-
make clean
make build

Usage

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

About

A simple golang program that converts openshift buildconfigs to shipwright builds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published