Skip to content

Commit

Permalink
kustomization support (hjacobs#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs authored Apr 25, 2020
1 parent 06c8f77 commit 64cdba6
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
rev: 0.2.0
hooks:
- id: kube-manifest-lint
exclude: ^helm/templates/.*$
exclude: ^helm/templates/.*$|kustomization.yaml

- repo: https://github.com/ambv/black
rev: 19.10b0
Expand Down
5 changes: 2 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ Usage

Deploy the janitor into your cluster via (also works with Minikube_):

Warning: if you want to deploy janitor to namespace other than ``default``, you need to edit ``/deploy/common/rbac.yaml`` first.
Warning: if you want to deploy janitor to namespace other than ``default``, you need to edit ``/deploy/rbac.yaml`` first.

.. code-block:: bash
$ kubectl apply -f deploy/common/
$ kubectl apply -f deploy/deployment/
$ kubectl apply -f deploy/
The example configuration uses the ``--dry-run`` as a safety flag to prevent any deletion --- remove it to enable the janitor, e.g. by editing the deployment:

Expand Down
44 changes: 0 additions & 44 deletions deploy/cronjob/cronjob.yaml

This file was deleted.

File renamed without changes.
6 changes: 6 additions & 0 deletions deploy/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- rbac.yaml
- rules-config.yaml
File renamed without changes.
File renamed without changes.

0 comments on commit 64cdba6

Please sign in to comment.