include crd def. in kustomization

This commit is contained in:
Felix Kunde 2019-11-25 15:50:02 +01:00
parent 9e54b70227
commit 734a334736
2 changed files with 3 additions and 2 deletions

View File

@ -56,8 +56,8 @@ kubectl create -f manifests/postgres-operator.yaml # deployment
``` ```
There is a [Kustomization](https://github.com/kubernetes-sigs/kustomize) There is a [Kustomization](https://github.com/kubernetes-sigs/kustomize)
manifest that [combines the mentioned resources](../manifests/kustomization.yaml) manifest that [combines the mentioned resources](../manifests/kustomization.yaml).
(except for the CRD) - it can be used with kubectl 1.14 or newer as easy as: It can be used with kubectl 1.14 or newer as easy as:
```bash ```bash
kubectl apply -k github.com/zalando/postgres-operator/manifests kubectl apply -k github.com/zalando/postgres-operator/manifests

View File

@ -1,6 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- operatorconfiguration.crd.yaml
- postgresql-operator-default-configuration.yaml - postgresql-operator-default-configuration.yaml
- operator-service-account-rbac.yaml - operator-service-account-rbac.yaml
- postgres-operator.yaml - postgres-operator.yaml