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.
- Host: GitHub
- URL: https://github.com/jashandeep-sohi/krm-fn-kustomize
- Owner: jashandeep-sohi
- License: gpl-3.0
- Created: 2024-08-08T19:19:08.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-08-08T19:33:28.000Z (10 months ago)
- Last Synced: 2025-02-09T02:34:51.902Z (4 months ago)
- Topics: configuration-management, kpt-functions, krm, kubernetes, kustomization, kustomize, kustomize-plugin
- Language: Nix
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```