Sign inSign up

dchevallier/crdtokcl

By dchevallier

Updated about 2 years ago

CRDtoKCL Auto Module converter

Image
Languages & frameworks
Developer tools
0

1.0K

dchevallier/crdtokcl repository overview

CRDtoKCL Auto Module converter

Build

git clone [email protected]:DavidChevallier/CRDtoKCL.git

Usage

1. GitHub URL and Module Name
./ -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
2. Usage with a config file
go run . -config <Pfad zur JSON config> [-debug]
  • -config
  • -debug

Example:

go run . -config config.json -debug

config

{
    "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"
    }
}

Build Multiarch Docker Container

docker buildx build --no-cache --platform linux/amd64,linux/arm64 -t dchevallier/crdtokcl:latest -t dchevallier/crdtokcl:v1.0.0 . --push
Use crdtokcl Docker Container in ZSH
function crdtokcl() {
    docker run --rm -v $(pwd):/app dchevallier/crdtokcl:latest "$@"
}

Tag summary

Content type

Image

Digest

sha256:371c3ea86

Size

57.4 MB

Last updated

about 2 years ago

docker pull dchevallier/crdtokcl