kustomization-generator

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

README

kustomization-generator

This tool allows to fully embed external kubernetes resources like Helm Charts, raw URLs or remote Kustomizations into your repository. The general usage is:

  1. Prepare a folder with an configuration (see below), for example vendors/cert-manager/kustomization-generator.yaml
  2. Run kustomization-generator --dir=vendors/cert-manager
  3. Find a ready to use Kustomization locally stored:
    ├── vendors
    │   ├── cert-manager
    │   │   ├── kustomization-generator.yaml
    │   │   ├── kustomization.yaml
    │   │   ├── crds
    │   │   │   ├── kustomization.yaml
    │   │   │   └── ...
    │   │   ├── namespaces
    │   │   │   ├── kustomization.yaml
    │   │   │   └── ...
    │   │   └── resources
    │   │   │   ├── kustomization.yaml
    │   │       └── ...
    │   └── ...
    └── ...
    

Usage helm

This generator allows you to convert a hosted helm chart into locally stored resource definitions.

# kustomization-generator.yaml
type: helm
registry: https://charts.jetstack.io
chart: cert-manager
version: v1.6.1
name: cert-manager
namespace: cert-manager-system
args:
  - --include-crds
values:
  some: value

Usage kustomize

This generator allows you to convert a remote kustomization into a locally stored resource definitions.

# kustomization-generator.yaml
type: kustomize
url: github.com/CrunchyData/postgres-operator-examples/kustomize/install?ref=main
args:
  - --reorder
  - legacy

Usage download

# kustomization-generator.yaml
type: download
url: https://raw.githubusercontent.com/longhorn/longhorn/v1.2.2/deploy/longhorn.yaml

Installation

Docker
cd my-git-directory
docker pull ghcr.io/airfocusio/kustomization-generator:latest
docker run --rm -v $PWD:/workdir ghcr.io/airfocusio/kustomization-generator:latest

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL