git clone git@github.com:DavidChevallier/CRDtoKCL.git
./ -url <GitHub-URL> -name <Modulname> [-debug]
-url
: The GitHub URL of the directory.-name
: Name of the module.-debug
: Enable debugging.
Example:
go run . -name "traefik" -url "https://github.com/traefik/traefik-helm-chart/tree/master/traefik/crds" -debug
go run . -config <Pfad zur JSON config> [-debug]
-config
-debug
Example:
go run . -config config.json -debug
{
"moduleName": "fooobar",
"crds": {
"crd1": "https://raw.githubusercontent.com/DavidChevallier/repo/main/crds/crd1.yaml",
"crd2": "https://raw.githubusercontent.com/DavidChevallier/repo/main/crds/crd2.yaml"
}
}
docker buildx build --no-cache --platform linux/amd64,linux/arm64 -t dchevallier/crdtokcl:latest -t dchevallier/crdtokcl:v1.0.0 . --push
function crdtokcl() {
docker run --rm -v $(pwd):/app dchevallier/crdtokcl:latest "$@"
}