An open API service indexing awesome lists of open source software.

https://github.com/jashandeep-sohi/krm-fn-kustomize

KRM function to run Kustomize.
https://github.com/jashandeep-sohi/krm-fn-kustomize

configuration-management kpt-functions krm kubernetes kustomization kustomize kustomize-plugin

Last synced: about 2 months ago
JSON representation

KRM function to run Kustomize.

Awesome Lists containing this project

README

        

# krm-fn-kustomize

[KRM](https://github.com/kubernetes-sigs/kustomize/blob/master/cmd/config/docs/api-conventions/functions-spec.md) function
to run [Kustomize](https://kustomize.io/).

## Usage

By default this function will build the Kustomization and output it to `build.yaml`.

```shell
kpt fn eval --image ghcr.io/jashandeep-sohi/krm-fn-kustomize
```

You can override the kustomize command using the `cmd` option:

```shell
kpt fn eval --image ghcr.io/jashandeep-sohi/krm-fn-kustomize -- cmd='kustomize build --output test.yaml'
```

Or declaratively:

```yaml
apiVersion: kpt.dev/v1
kind: Kptfile
metadata:
name: example
annotations:
config.kubernetes.io/local-config: "true"
pipeline:
mutators:

# This will build the Kustomization and output it to build.yaml
- image: ghcr.io/jashandeep-sohi/krm-fn-kustomize

# Override the command
- image: ghcr.io/jashandeep-sohi/krm-fn-kustomize
configMap:
cmd: kustomize build --output test.yaml
```