Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.3 KB

README.md

File metadata and controls

59 lines (42 loc) · 1.3 KB

kustomize-plugins

Various plugins for kustomize. These are ones I needed, YMMV on how useful they are. They are all released under Apache 2.0 license.

Install: cp -pr agilicus ~/.config/kustomize/plugin/

(you can also install live, e.g. ln -s $PWD/agilicus ~/.config/kustomize/plugin/)

More info on the blog post.

NamespaceGenerator

This takes a config file like:

---
apiVersion: agilicus/v1
kind: NamespaceGenerator
metadata:
  name: not-used
labels:
  a1: val1
  a2: val2 b
namespaces:
  - ns1
  - ns2

and generates the namespaces requested with the labels given.

ValueTransformer

This is a very simple sed. It runs over 100 of the input, applying the sed expressions given (as OneLiner or as input file).

It takes a config file like:

apiVersion: agilicus/v1
kind: ValueTransformer
metadata:
  name: not-really-used
argsOneLiner: s/500.500.500.500/35.203.108.37/g
#argsFromFile: sed-input.txt

IstioIngressGenerator

This will auto-generate an istio VirtualService + Gateway + Certificate. Use with cert-manager to have Istio behave the same as nginx-ingress.

BranchRestrict

Prevent users from applying a set of yaml when not on master

CertificateTransformer

Change all certificates to e.g. Let's Encrypt Staging