Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sourceability/kustomize-plugins
Info: latest kustomize release has KEP-897 implemented
https://github.com/sourceability/kustomize-plugins
Last synced: about 1 month ago
JSON representation
Info: latest kustomize release has KEP-897 implemented
- Host: GitHub
- URL: https://github.com/sourceability/kustomize-plugins
- Owner: sourceability
- License: mit
- Created: 2019-06-17T14:18:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-17T16:47:31.000Z (over 5 years ago)
- Last Synced: 2023-03-03T15:17:48.355Z (almost 2 years ago)
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sourceability Kustomize Plugins
## KEP 897
This plugin addresses [kubernetes-sigs/kustomize#720](https://github.com/kubernetes-sigs/kustomize/issues/720) by implementing the
`StrategicMergePatch` from [KEP 897](https://github.com/kubernetes/enhancements/pull/897).Note that I've encountered issues applying patches to resources with prefixes/suffixes.
I'm assuming that other issues like exist with this plugin.This repository contains one very simple example kustomization, that can be built with:
```
docker run \
-it --rm \
-w /app -v $PWD:/app \
sourceability/kustomize-plugins \
build --enable_alpha_plugins examples/deployment-patch
```Which should output:
```
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: elasticsearch
name: elasticsearch
spec:
selector:
matchLabels:
app: elasticsearch
template:
metadata:
labels:
app: elasticsearch
spec:
containers:
- image: elasticsearch
name: elasticsearch
nodeSelector:
env: prod
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginx
name: nginx
spec:
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: nginx
name: nginx
nodeSelector:
env: prod
```