opsgenie / kubernetes-event-exporter

Export Kubernetes events to multiple destinations with routing and filtering
Apache License 2.0
1.04k stars 353 forks source link

Support kustomize #55

Open nstogner opened 4 years ago

nstogner commented 4 years ago

Kustomize is a popular tool for deploying to kubernetes. It could be supported by adding a kustomization.yaml file into the deploy/ dir:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- 00-roles.yaml
- 01-config.yaml
- 02-deployment.yaml

To make the namespace customizable, it would be nice to split the Namespace object definition out to another file (00-namespace.yaml - not included in the .resources array above).

A user's kustomization.yaml might look like:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/opsgenie/kubernetes-event-exporter//deploy?ref=v0.8
nstogner commented 4 years ago

Happy to submit the PR

mustafaakin commented 4 years ago

Sure, We don't use it but happy to merge it a PR is raised.